operator

Description

Disables the copy assignment operator.

Uses the move assignment operator.

Prototype

TensorData& operator= (const TensorData &other)=delete

TensorData& operator= (TensorData &&other) noexcept

Parameters

Parameter

Input/Output

Description

other

Input

Another TensorData object

Returns

A new TensorData object that has other object resources

Restrictions

None

Example

auto addr = reinterpret_cast<void *>(0x10);
TensorData td(addr, HostAddrManager, 100U, kOnHost);
TensorData new_td = td;