Graph
import com.mindspore.Graph;
Model defines computational graph in MindSpore.
Public Member Functions
function |
Supported At Cloud-side Inference |
Supported At Device-side Inference |
---|---|---|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
load
boolean load(String file)
Load the MindSpore model from file.
Parameters
File
: Model File.
Returns
Whether the load is successful.
getGraphPtr
public long getGraphPtr()
Get the MindSpore computational graph pointer.
Returns
The graph pointer.
free
public void free()
Free the computational graph memory.