blob: 225dbdaea0da3c2f835dbe5f2a4a969d30577799 [file] [log] [blame]
``mx.nd.amp.multicast``
==============================================
Description
----------------------
Cast function used by AMP, that casts its inputs to the common widest type.
It casts only between low precision float/FP32 and does not do anything for other types.
Arguments
------------------
+----------------------------------------+------------------------------------------------------------+
| Argument | Description |
+========================================+============================================================+
| ``data`` | NDArray-or-Symbol[]. |
| | |
| | Weights |
+----------------------------------------+------------------------------------------------------------+
| ``num.outputs`` | int, required. |
| | |
| | Number of input/output pairs to be casted to the widest |
| | type. |
+----------------------------------------+------------------------------------------------------------+
| ``cast.narrow`` | boolean, optional, default=0. |
| | |
| | Whether to cast to the narrowest type |
+----------------------------------------+------------------------------------------------------------+
Value
----------
``out`` The result mx.ndarray
Link to Source Code: http://github.com/apache/incubator-mxnet/blob/1.6.0/src/operator/tensor/amp_cast.cc#L71