用法:
forward(is_train=False, **kwargs)
- is_train:(
bool
,
optional
) - 此轉發是否用於評估目的。如果為 True,則預計將進行反向調用。 - **kwargs:- 輸入參數的附加規範。
- is_train:(
參數:
計算綁定符號指定的輸出。
例子:
>>> # doing forward by specifying data >>> texec.forward(is_train=True, data=mydata) >>> # doing forward by not specifying things, but copy to the executor before hand >>> mydata.copyto(texec.arg_dict['data']) >>> texec.forward(is_train=True) >>> # doing forward by specifying data and get outputs >>> outputs = texec.forward(is_train=True, data=mydata) >>> print(outputs[0].asnumpy())
相關用法
- Python mxnet.executor.Executor.copy_params_from用法及代碼示例
- Python mxnet.executor.Executor.set_monitor_callback用法及代碼示例
- Python mxnet.executor.Executor.reshape用法及代碼示例
- Python mxnet.executor.Executor.debug_str用法及代碼示例
- Python mxnet.executor.Executor.backward用法及代碼示例
- Python mxnet.executor.Executor用法及代碼示例
- Python mxnet.engine.bulk用法及代碼示例
- Python mxnet.symbol.op.broadcast_logical_xor用法及代碼示例
- Python mxnet.test_utils.get_zip_data用法及代碼示例
- Python mxnet.ndarray.op.uniform用法及代碼示例
- Python mxnet.symbol.op.log_softmax用法及代碼示例
- Python mxnet.symbol.space_to_depth用法及代碼示例
- Python mxnet.ndarray.op.sample_negative_binomial用法及代碼示例
- Python mxnet.ndarray.NDArray.ndim用法及代碼示例
- Python mxnet.module.BaseModule.get_outputs用法及代碼示例
- Python mxnet.module.BaseModule.forward用法及代碼示例
- Python mxnet.symbol.random_pdf_poisson用法及代碼示例
- Python mxnet.ndarray.op.khatri_rao用法及代碼示例
- Python mxnet.ndarray.op.unravel_index用法及代碼示例
- Python mxnet.symbol.argmin用法及代碼示例
注:本文由純淨天空篩選整理自apache.org大神的英文原創作品 mxnet.executor.Executor.forward。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。