Create a new TensorT object without quantization parameters.
| 77 | |
| 78 | // Create a new TensorT object without quantization parameters. |
| 79 | void 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. |
| 90 | void MakeTensorWithQuantParam(const string& name, |
no test coverage detected