Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions torch/jit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,9 +1006,9 @@ def trace_module(mod,

Arguments:
mod (torch.nn.Module): A ``torch.nn.Module`` containing methods whose names are
specified in ``example_inputs``. The given methods will be compiled
specified in ``inputs``. The given methods will be compiled
as a part of a single `ScriptModule`.
example_inputs (dict): A dict containing sample inputs indexed by method names in ``mod``.
inputs (dict): A dict containing sample inputs indexed by method names in ``mod``.
The inputs will be passed to methods whose names correspond to inputs'
keys while tracing.
``{ 'forward' : example_forward_input, 'method2': example_method2_input}``
Expand Down