Skip to content

Commit

Permalink
fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
BulatVakhitov committed Jul 16, 2024
1 parent 38d68aa commit 3d68e21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions batchflow/models/torch/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,13 +1042,13 @@ def train(self, inputs, targets, outputs=None, mode='train', lock=True, profile=
Returns
-------
Calculated values of requested tensors from `outputs` in the same order.
Calculated values of requested tensors from `outputs`.
Examples
--------
.. code-block:: python
model.train(B('images'), B('labels'), fetches='loss')
model.train(B('images'), B('labels'), outputs='loss')
"""
if self.disable_training:
raise RuntimeError('Training model after ONNX conversion is not allowed!')
Expand Down Expand Up @@ -1343,7 +1343,7 @@ def predict(self, inputs, targets=None, outputs=None, lock=True, microbatch_size
Returns
-------
Calculated values of tensors in `outputs` in the same order.
Calculated values of tensors in `outputs`.
Examples
--------
Expand Down

0 comments on commit 3d68e21

Please sign in to comment.