用法:
mxnet.ndarray.op.broadcast_like(lhs=None, rhs=None, lhs_axes=_Null, rhs_axes=_Null, out=None, name=None, **kwargs)
out:- 此函數的輸出。
NDArray 或 NDArray 列表
參數:
返回:
返回類型:
廣播 lhs 使其具有與 rhs 相同的形狀。
廣播是一種機製,它允許 NDArrays 有效地對不同形狀的數組執行算術運算,而無需創建數組的多個副本。另請參閱Broadcasting 以獲得更多解釋。
在大小為 1 的軸上允許廣播,例如從
(2,1,3,1)
到(2,8,3,9)
。元素將在廣播軸上複製。例如:
broadcast_like([[1,2,3]], [[5,6,7],[7,8,9]]) = [[ 1., 2., 3.], [ 1., 2., 3.]]) broadcast_like([9], [1,2,3,4,5], lhs_axes=(0,), rhs_axes=(-1,)) = [9,9,9,9,9]
相關用法
- Python mxnet.ndarray.op.broadcast_lesser_equal用法及代碼示例
- Python mxnet.ndarray.op.broadcast_lesser用法及代碼示例
- Python mxnet.ndarray.op.broadcast_logical_and用法及代碼示例
- Python mxnet.ndarray.op.broadcast_logical_xor用法及代碼示例
- Python mxnet.ndarray.op.broadcast_logical_or用法及代碼示例
- Python mxnet.ndarray.op.broadcast_minus用法及代碼示例
- Python mxnet.ndarray.op.broadcast_mul用法及代碼示例
- Python mxnet.ndarray.op.broadcast_axes用法及代碼示例
- Python mxnet.ndarray.op.broadcast_greater用法及代碼示例
- Python mxnet.ndarray.op.broadcast_minimum用法及代碼示例
- Python mxnet.ndarray.op.broadcast_power用法及代碼示例
- Python mxnet.ndarray.op.broadcast_mod用法及代碼示例
- Python mxnet.ndarray.op.broadcast_plus用法及代碼示例
- Python mxnet.ndarray.op.broadcast_not_equal用法及代碼示例
- Python mxnet.ndarray.op.broadcast_div用法及代碼示例
- Python mxnet.ndarray.op.broadcast_maximum用法及代碼示例
- Python mxnet.ndarray.op.broadcast_to用法及代碼示例
- Python mxnet.ndarray.op.broadcast_greater_equal用法及代碼示例
- Python mxnet.ndarray.op.broadcast_add用法及代碼示例
- Python mxnet.ndarray.op.broadcast_equal用法及代碼示例
注:本文由純淨天空篩選整理自apache.org大神的英文原創作品 mxnet.ndarray.op.broadcast_like。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。