SetIntData
Function Usage
Initializes the tensor data by using a memory block of the int64_t type for the host tensor allocated by AllocHostTensor.
Prototype
void SetIntData(const int64_t *value, uint64_t size, op::DataType dataType)
Parameters
Returns
None
Constraints
The input parameter pointer must not be null.
Example
1 2 3 4 5 |
// Initialize an int64 memory block and assign the value to the first 10 elements of the input. void Func(const aclTensor *input) { int64_t myArray[10]; input->SetData(myArray, 10, DT_INT64); } |
Parent topic: common_types