Skip to content

Commit

Permalink
[Doc] Add desc of keep_orig_output_dtype for ToMixedPrecision (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
elvin-n authored Nov 9, 2022
1 parent 244bceb commit 65dbee7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/tvm/relay/transform/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,13 @@ def ToMixedPrecision(mixed_precision_type="float16", missing_op_mode=1):
1: Allow missing ops but emit warnings.
2: Allow missing ops and silently ignore them.
relay.ToMixedPrecision.keep_orig_output_dtype: boolean
Defines if outputs should be retained in original data type or convert to
mixed_precision_type. By default this parameter is False and transformation
modifies the data types of outputs to mixed_precision_type.
This parameter is not part of explicit arguments of the transformation, but should
be passed through tvm.transform.PassContext.
Returns
-------
ret : tvm.transform.Pass
Expand Down

0 comments on commit 65dbee7

Please sign in to comment.