| 2917 | } |
| 2918 | |
| 2919 | inline flatbuffers::Offset<Tensor> CreateTensorDirect( |
| 2920 | flatbuffers::FlatBufferBuilder &_fbb, |
| 2921 | const std::vector<int32_t> *shape = nullptr, |
| 2922 | TensorType type = TensorType_FLOAT32, |
| 2923 | uint32_t buffer = 0, |
| 2924 | const char *name = nullptr, |
| 2925 | flatbuffers::Offset<QuantizationParameters> quantization = 0, |
| 2926 | bool is_variable = false) { |
| 2927 | auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0; |
| 2928 | auto name__ = name ? _fbb.CreateString(name) : 0; |
| 2929 | return tflite::CreateTensor( |
| 2930 | _fbb, |
| 2931 | shape__, |
| 2932 | type, |
| 2933 | buffer, |
| 2934 | name__, |
| 2935 | quantization, |
| 2936 | is_variable); |
| 2937 | } |
| 2938 | |
| 2939 | flatbuffers::Offset<Tensor> CreateTensor(flatbuffers::FlatBufferBuilder &_fbb, const TensorT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr); |
| 2940 | |