Class AbstractTensor

Inheritance Relationships

Base Type

Class Documentation

class AbstractTensor : public mindspore::api::AbstractBase

AbstractTensor describes a tensor’s type, shape and value.

Public Functions

AbstractTensor(TypeId type, const ShapeVector &shape)

Create AbstractTensor from the given type and shape.

Parameters
  • type[in] The data type id of the tensor.

  • shape[in] The shape of the tensor.

AbstractBasePtr element() const

Get the element abstract.

Returns

A pointer to the element abstract.