The tensor storage location enumeration values are defined as follows.
enum TensorPlacement {
kOnDeviceHbm, //< The tensor is located in the HBM on the device.
kOnHost, //< The tensor is located on the host.
kFollowing, //< The tensor is located on the host, and the data follows the structure.
kOnDeviceP2p, ///< The tensor is located in the P2P memory on the device, which refers to HBM mapped into the PCIe BAR space, allowing the NPU to access address space across PCIe.
kTensorPlacementEnd
};