Table Of Contents
Table Of Contents

mxnet.test_utils.simple_forward

mxnet.test_utils.simple_forward(sym, ctx=None, is_train=False, **inputs)[source]

A simple forward function for a symbol.

Primarily used in doctest to test the functionality of a symbol. Takes NumPy arrays as inputs and outputs are also converted to NumPy arrays.

Parameters
  • ctx (Context) – If None, will take the default context.

  • inputs (keyword arguments) – Mapping each input name to a NumPy array.

Returns

  • The result as a numpy array. Multiple results will

  • be returned as a list of NumPy arrays.