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.

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

  • shape[in] The shape of the tensor.

AbstractBasePtr element() const

Get the element abstract.

返回

A pointer to the element abstract.