rmlCreateModelFromGraph
Creates a model from a supplied graph.
rml_status rmlCreateModelFromGraph( |
rml_context context, |
rml_graph graph, |
|
rml_model* model); |
API
Main
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
context |
input |
A valid context handle. |
graph |
input |
A valid graph handle. |
model |
output |
A pointer to a resulting model handle. |
Return and Status Codes
Returns a valid tensor handle in case of success and status:
RML_OK
if the operation is successfulRML_ERROR_BAD_PARAMETER
if context or graph is invalid or model isNULL
To get more details in case of failure, call rmlGetLastError().