asyml / texar-pytorch

Integrating the Best of TF into PyTorch, for Machine Learning, Natural Language Processing, and Text Generation. This is part of the CASL project: http://casl-project.ai/
https://asyml.io
Apache License 2.0
745 stars 117 forks source link

Fix `DataIterator.__len__` #351

Closed mylibrar closed 2 years ago

mylibrar commented 2 years ago

This PR fixes #350. There is also a previous PR(#334) that tried to address the same problem.

codecov[bot] commented 2 years ago

Codecov Report

Merging #351 (89d8e38) into master (d66258a) will not change coverage. The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #351   +/-   ##
=======================================
  Coverage   80.43%   80.43%           
=======================================
  Files         135      135           
  Lines       11359    11359           
=======================================
  Hits         9137     9137           
  Misses       2222     2222           
Impacted Files Coverage Δ
texar/torch/data/data/data_iterators.py 82.24% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5d67ae9...89d8e38. Read the comment docs.