Graph
import com.mindspore.Graph;
Graph定义了MindSpore的计算图。
公有成员函数
| function | 云侧推理是否支持 | 端侧推理是否支持 | 
|---|---|---|
| √ | √ | |
| √ | √ | |
| √ | √ | 
load
public boolean load(String file)
从指定文件加载MindSpore模型。
- 参数 - file: 模型文件名。
 
- 返回值 - 是否加载成功。 
getGraphPtr
public long getGraphPtr()
获取底层计算图指针。
- 返回值 - 底层计算图指针。 
free
public void free()
释放计算图内存。