GetConstData

Description

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

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.

Returns

If the value is obtained successfully, true is returned.

If the value fails to be obtained, false is returned.

Exception Handling

None.

Restrictions

None.