samples/graph_ops.c
rml_op CreateScalarOp(rml_graph graph, const char* name, rml_dtype dtype, const void* value)
{
    rml_op_desc op_desc = {RML_OP_CONST, name, .constant = {{dtype, RML_LAYOUT_SCALAR}, value}};
    rml_op op_const = NULL;
    RML_CHECK(rmlCreateOperation(graph, &op_desc, &op_const));
    return op_const;
}
/*
 * Create operation that stores scalar int data
 *
 * @param graph - graph where operation is created
 * @param name - unique operation name
 * @param dtype - tensor data type
 * @param value - scalar value
 * @return - created scalar operation
 */
Create operation that stores scalar int data


Create operation that stores scalar int data
rml_op CreateScalarOp(rml_graph graph, const char* name, rml_dtype dtype, const void* value)
{
    rml_op_desc op_desc = {RML_OP_CONST, name, .constant = {{dtype, RML_LAYOUT_SCALAR}, value}};
    rml_op op_const = NULL;
    RML_CHECK(rmlCreateOperation(graph, &op_desc, &op_const));
    return op_const;
}
rml_op CreateScalarOp ( rml_graph graph , const char * name , rml_dtype dtype , const void * value ) { rml_op_desc op_desc = { RML_OP_CONST , name , . constant = { { dtype , RML_LAYOUT_SCALAR } , value } } ; rml_op op_const = NULL ; RML_CHECK ( rmlCreateOperation ( graph , & op_desc , & op_const ) ) ; return op_const ; }
Create operation that stores scalar int data
Create operation that stores scalar int data