mindspore_gl.translate

mindspore_gl.translate(obj, method_name: str, translate_path: None or str = None)[source]

Translate the vertex central code into MindSpore understandable code.

After translation, a new function will generate in /.mindspore_gl. The origin method will be replaced with this function.

Parameters
  • obj – (Object): The object.

  • translate_path (str) – The path for save the construct file.

  • method_name (str) – The name of the method to be translated.