目录

GetConstData

Function Description

Obtains the weight value in TensorDesc if TensorDesc is the description of a constant node.

Function Prototype

bool GetConstData(uint8_t **const_data_buffer, size_t &const_data_len) const;

Parameters

Parameter Input/Output Description
const_data_buffer Output Weight address.
const_data_len Output Weight length.

Return Value

If the operation is successful, true is returned.

If the operation fails, false is returned.

Exception Handling

None

Restrictions

None