Incorrect reference to updated row length when meant to compare old row length
Caixin89 opened this issue · comments
Zheng Xin Chai commented
In line 66 of util.py, if tmp > len(row):
, I think the intention is to compare tmp against the length of the row just after reading a line of the data file.
However, in line 60, row is updated to be a subarray of length tmp. This is the else clause of tmp == len(row)
.
This means line 66 will never be satisfied.
Weihua Hu commented
Thanks. We adopted code and raw data from this repo: https://github.com/muhanzhang/pytorch_DGCNN
Specifically, load_data is from here