mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
fix: do_constant_folding arg when exporting ONNX (#71348)
Summary: Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/71348 Reviewed By: H-Huang Differential Revision: D33662228 Pulled By: msaroufim fbshipit-source-id: a69c72838b7ff41a2305453ef00666c060ade593
This commit is contained in:
parent
4cb02e62a6
commit
75dd62b406
|
|
@ -186,7 +186,7 @@ def export(model, args, f, export_params=True, verbose=False, training=TrainingM
|
|||
opset_version (int, default 9): The version of the
|
||||
`default (ai.onnx) opset <https://github.com/onnx/onnx/blob/master/docs/Operators.md>`_
|
||||
to target. Must be >= 7 and <= 15.
|
||||
do_constant_folding (bool, default False): Apply the constant-folding optimization.
|
||||
do_constant_folding (bool, default True): Apply the constant-folding optimization.
|
||||
Constant-folding will replace some of the ops that have all constant inputs
|
||||
with pre-computed constant nodes.
|
||||
dynamic_axes (dict<string, dict<int, string>> or dict<string, list(int)>, default empty dict):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user