目录

GetAddr

Function Description

Obtains the tensor data address. If the manager function exists, the address is provided by the manager.

Function Prototype

TensorAddress GetAddr() const

Parameters

None

Return Value

Tensor address.

Restrictions

None

Calling Example

auto addr0 = reinterpret_cast<void *>(0x10);
TensorData td(addr0, nullptr);
auto addr1 = td.GetAddr(); // 0x10