Commit a334c431 by xiaotong

bug fixes

parent 13d3feea
......@@ -1294,7 +1294,7 @@ void XTensor::Read(FILE * file, const char * label)
fgetc(file);
if (fscanf(file, "order=%d dimsize=%s dtype=%s dense=%f",
&dimNum, dimSizeName, &typeName, &dRatio) < 4) {
&dimNum, dimSizeName, typeName, &dRatio) < 4) {
ShowNTErrors("Incorrect format when reading the tensor!");
}
......
......@@ -925,11 +925,9 @@ test the model
*/
void Test(const char * test, const char * result, FNNModel &model)
{
int epoch = -1;
int wordCount = 0;
int sentCount = 0;
float loss = 0;
bool isEnd = false;
NGram * ngrams = new NGram[MAX_LINE_LENGTH_HERE];
......
......@@ -19,7 +19,7 @@
* $Created by: Xu Chen (email: hello_master1954@163.com) 2018-06-15
*/
#include "TMatrixMULBatched.h"
#include "TMatrixMulBatched.h"
namespace nts { // namespace nts(NiuTrans.Tensor)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论