megengine.functional.external.cambricon_runtime_opr#

cambricon_runtime_opr(inputs, data, symbol, tensor_dim_mutable)[source]#

Load a serialized Cambricon model as a runtime operator in MegEngine.

Parameters:
  • inputs – list of input tensors.

  • data – the serialized Cambricon model.

  • symbol – name of the function in Cambricon model.

  • tensor_dim_mutable – whether the input tensors’ shapes are mutable in cnrtModel_t.