#include "graph/tensor.h"
namespace ge {
Tensor::Tensor() {}
Tensor tensor;
Tensor::Tensor(const TensorDesc& tensorDesc) {}
Tensor::Tensor(const TensorDesc& tensorDesc, const uint8_t* data, size_t size) {}
graphStatus Tensor::SetData(
uint8_t* data,
size_t size,
const Tensor::DeleteFunc& deleter_func) {
return GRAPH_SUCCESS;
}
Shape::Shape() {}
std::vector<int64_t> Shape::GetDims() const {
return std::vector<int64_t>{};
}
size_t Shape::GetDimNum() const {
return 0;
}
TensorDesc::TensorDesc() {}
void TensorDesc::SetFormat(Format format) {}
void TensorDesc::SetOriginFormat(Format originFormat) {}
void TensorDesc::SetShape(const Shape& shape) {}
void TensorDesc::SetOriginShape(const Shape& originShape) {}
void TensorDesc::SetDataType(DataType dt) {}
void TensorDesc::SetPlacement(Placement placement) {}
Format TensorDesc::GetFormat() const {return FORMAT_NCHW;}
Format TensorDesc::GetOriginFormat() const {return FORMAT_NCHW;}
Shape TensorDesc::GetShape() const {return Shape();};
Shape TensorDesc::GetOriginShape() const {return Shape();}
DataType TensorDesc::GetDataType() const {return DT_INT64;}
}