Legacy. Deprecated in favor of above.
| 175 | |
| 176 | /// Legacy. Deprecated in favor of above. |
| 177 | inline TfLiteStatus SetTensorParametersReadOnly( |
| 178 | int tensor_index, TfLiteType type, const char* name, |
| 179 | const std::vector<int>& dims, TfLiteQuantizationParams quantization, |
| 180 | const char* buffer, size_t bytes, |
| 181 | const Allocation* allocation = nullptr) { |
| 182 | return SetTensorParametersReadOnly(tensor_index, type, name, dims.size(), |
| 183 | dims.data(), quantization, buffer, bytes, |
| 184 | allocation); |
| 185 | } |
| 186 | |
| 187 | TfLiteStatus SetTensorParametersReadOnly( |
| 188 | int tensor_index, TfLiteType type, const char* name, const size_t rank, |