IsDevice

Function Usage

Checks whether the tensor object is on the device.

Prototype

1
bool TensorBase::IsDevice() const;

Response Parameters

Data Structure

Description

bool

  • true: It is on the device.
  • false: It is not on the device.