Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问为什么train.py在训练模型时res=0? #3

Open
7231 opened this issue May 22, 2021 · 0 comments
Open

请问为什么train.py在训练模型时res=0? #3

7231 opened this issue May 22, 2021 · 0 comments

Comments

@7231
Copy link

7231 commented May 22, 2021

我在运行transE.py时,设置self.testFlag = False,self.loadFromData = False,运行结果打印出来所有的res都为0。为了找到res=0的原因,我尝试打印出config.batch_size和lib.getTripleTotal() ,发现config.batch_size和lib.getTripleTotal() 也都等于0。我在init.cpp文件中找到了getTripleTotal(),按道理来说,如果fscanf(fin, "%d", &trainList[tripleTotal].h) == 1,TripleTotal就应该不为0,这与实际运行的结果不符合,请问这是怎么回事呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant