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

Function CreateTensorDirect

tensorflow/lite/schema/schema_generated.h:2919–2937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2917}
2918
2919inline 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
2939flatbuffers::Offset<Tensor> CreateTensor(flatbuffers::FlatBufferBuilder &_fbb, const TensorT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
2940

Callers 2

AddTensorMethod · 0.85
TESTFunction · 0.85

Calls 1

CreateTensorFunction · 0.70

Tested by 2

AddTensorMethod · 0.68
TESTFunction · 0.68