TensorOwner

Tensor freed by dtor (RAII) with convinient methods.

Destructor

~this
~this()

Dtor.

Postblit

this(this)
this(this)
Undocumented in source.

Alias This

base

Members

Functions

dataType
TF_DataType dataType()

Returns data type, i.e. element type enum identifier.

elementCount
long elementCount()

Return the number of elements.

ndim
int ndim()

Return the number of dimentions.

payload
inout(T)[] payload()

Return an array storing data.

scalar
inout(T) scalar()

Returns a scalar if valid.

shape
RCArray!long shape()

Returns a tensor shape.

sliced
Slice!(T*, N, Contiguous) sliced()

Return a tensor slice with an element type T with assertions.

slicedAs
Slice!(T*, N, Contiguous) slicedAs(Slice!(Iterator, N, kind) slice)

Returns a tensor slice as same as a given slice with assertions.

Variables

base
TF_Tensor* base;

Base pointer.

Meta