Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Improve apply_prediction #523

Merged
merged 19 commits into from
Mar 5, 2018
Prev Previous commit
Next Next commit
fix docs
  • Loading branch information
Hakuyume committed Mar 1, 2018
commit a4e7c2e8dbe4e158d7830d80a97592dbb6122c32
4 changes: 2 additions & 2 deletions chainercv/utils/iterator/apply_to_iterator.py
Original file line number Diff line number Diff line change
@@ -24,10 +24,10 @@ def apply_to_iterator(func, iterator, n_input=1, hook=None):
return batch(es) of computed values.
Here is an illustration of the expected behavior of the function.

>>> out_vals = func(in_val0, ..., in_val{n_input})
>>> out_vals = func([in_val0], ..., [in_val{n_input}])
>>> # out_vals: [out_val]
or
>>> out_vals0, out_vals1, ... = func(in_val0, ..., in_val{n_input})
>>> out_vals0, out_vals1, ... = func([in_val0], ..., [in_val{n_input}])
>>> # out_vals0: [out_val0]
>>> # out_vals1: [out_val1]