Skip to content

Commit

Permalink
Fix some bug in reading file.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyk423 authored and lyk423 committed Jul 23, 2015
1 parent 9f31128 commit 4a8ed89
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 0 additions & 4 deletions TransE/Test_TransE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,13 @@ class Test{
relation_vec.resize(relation_num_fb);
for (int i=0; i<relation_num_fb;i++)
{
int tmp;
fscanf(f1,"%d",&tmp);
relation_vec[i].resize(n);
for (int ii=0; ii<n; ii++)
fscanf(f1,"%lf",&relation_vec[i][ii]);
}
entity_vec.resize(entity_num);
for (int i=0; i<entity_num;i++)
{
int tmp;
fscanf(f3,"%d",&tmp);
entity_vec[i].resize(n);
for (int ii=0; ii<n; ii++)
fscanf(f3,"%lf",&entity_vec[i][ii]);
Expand Down

0 comments on commit 4a8ed89

Please sign in to comment.