1#ifndef ATEN_CORE_TENSOR_MAP_H_
2#define ATEN_CORE_TENSOR_MAP_H_
TensorMap(void *data, DataType data_type, DeviceType device, const TensorShape &shape)
Constructor that map the given data pointer to a tensor object with the given data type,...
Definition tensor_map.cpp:5
A class for representing the shape of a tensor.
Definition tensor_shape.h:13
Tensor()
Creates a 1-dimentional, 0-element float tensor.
Definition tensor.cpp:10
void * data() const
Get a pointer to the data buffer of the tensor.
Definition tensor.cpp:73
DataType data_type() const
Get the data type of the tensor.
Definition tensor.cpp:61
const TensorShape & shape() const
Get the shape of the tensor.
Definition tensor.cpp:67
DataType
Definition tensor_enums.h:15
DeviceType
Definition tensor_enums.h:28