MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MakeTensor

Function MakeTensor

tensorflow/lite/tools/optimize/model_utils.cc:79–87  ·  view source on GitHub ↗

Create a new TensorT object without quantization parameters.

Source from the content-addressed store, hash-verified

77
78// Create a new TensorT object without quantization parameters.
79void MakeTensor(const string& name, const std::vector<int32_t>& shape,
80 const TensorType& type, std::unique_ptr<TensorT>* tensor) {
81 TensorT* tensor_raw = new TensorT;
82 tensor_raw->name = name;
83 tensor_raw->shape = shape;
84 tensor_raw->type = type;
85
86 tensor->reset(tensor_raw);
87}
88
89// Create a new TensorT object with quantization parameters.
90void MakeTensorWithQuantParam(const string& name,

Callers 4

MakeTensorWithQuantParamFunction · 0.70
SetInputTypeFunction · 0.70
SetOutputTypeFunction · 0.70
QuantizeOpInputFunction · 0.70

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected