AbstractTFE_TensorHandle

public abstract class AbstractTFE_TensorHandle
Known Direct Subclasses

Public Constructors

Public Methods

void
delete()
Calls the deallocator, if registered, otherwise has no effect.
static TFE_TensorHandle
newTensor(TF_Tensor t, TF_Status status)
Calls TFE_NewTensorHandle(), and registers a deallocator.
TFE_TensorHandle
withDeallocator()
Registers a deallocator and returns this.

Inherited Methods

Public Constructors

public AbstractTFE_TensorHandle (Pointer p)

Public Methods

public void delete ()

Calls the deallocator, if registered, otherwise has no effect.

public static TFE_TensorHandle newTensor (TF_Tensor t, TF_Status status)

Calls TFE_NewTensorHandle(), and registers a deallocator.

Returns
  • TFE_TensorHandle created. Do not call TFE_DeleteTensorHandle() on it.

public TFE_TensorHandle withDeallocator ()

Registers a deallocator and returns this.