megengine.functional.external.cambricon_runtime_opr

cambricon_runtime_opr(inputs, data, symbol, tensor_dim_mutable)[源代码]

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

参数
  • 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.