Open Deep Learning API
Loading...
Searching...
No Matches
Functions
odla_ops_basic.h File Reference

Go to the source code of this file.

Functions

ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateArgument (const odla_value_type value_type, const odla_value_id value_id)
 
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateValue (const odla_value_type value_type, const odla_value_id value_id)
 Create a regular value. More...
 
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateConstant (const odla_value_type value_type, const odla_void *data_ptr, const odla_value_id value_id)
 
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CloneValue (const odla_value src_value, const odla_value_id value_id)
 
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CloneValueById (const odla_value_id src_value_id, const odla_value_id value_id)
 
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateVariable (const odla_value_type value_type, const odla_value_id value_id)
 

Detailed Description

This file defines the ODLA basic operators.

Definition in file odla_ops_basic.h.

Function Documentation

◆ odla_CloneValue()

ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CloneValue ( const odla_value  src_value,
const odla_value_id  value_id 
)
Parameters
src_valuethe src value
value_ida unique value id (can be NULL)
Returns
odla_value

◆ odla_CloneValueById()

ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CloneValueById ( const odla_value_id  src_value_id,
const odla_value_id  value_id 
)
Parameters
src_value_idthe src value id
value_ida unique value id (can be NULL)
Returns
odla_value

◆ odla_CreateArgument()

ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateArgument ( const odla_value_type  value_type,
const odla_value_id  value_id 
)
Parameters
value_typeargument value type
value_ida unique value id (can be NULL)
Returns
odla_value

◆ odla_CreateConstant()

ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateConstant ( const odla_value_type  value_type,
const odla_void data_ptr,
const odla_value_id  value_id 
)
Parameters
value_typeconstant value type
data_ptrthe pointer to the raw data
value_ida unique value id (can be NULL)
Returns
odla_value

◆ odla_CreateValue()

ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateValue ( const odla_value_type  value_type,
const odla_value_id  value_id 
)

Create a regular value.

Parameters
value_typevalue type
value_ida unique value id (can be NULL)
Returns
odla_value

◆ odla_CreateVariable()

ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateVariable ( const odla_value_type  value_type,
const odla_value_id  value_id 
)
Parameters
value_typevariable value type
value_ida unique value id (can be NULL)
Returns
odla_value