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

Method tensor

tensorflow/lite/core/subgraph.h:131–137  ·  view source on GitHub ↗

Get a mutable tensor data structure. TODO(aselle): Create a safe ArrayHandle interface to avoid exposing this read/write access to structure

Source from the content-addressed store, hash-verified

129 // TODO(aselle): Create a safe ArrayHandle interface to avoid exposing this
130 // read/write access to structure
131 TfLiteTensor* tensor(int tensor_index) {
132 if (tensor_index < 0 ||
133 static_cast<size_t>(tensor_index) >= context_.tensors_size) {
134 return nullptr;
135 }
136 return &context_.tensors[tensor_index];
137 }
138
139 // Get an immutable tensor data structure.
140 const TfLiteTensor* tensor(int tensor_index) const {

Callers 15

PrintInterpreterStateFunction · 0.45
TESTFunction · 0.45
operator()Method · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 15

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
SetStringValuesMethod · 0.36
GetStringValuesMethod · 0.36
GetShapeMethod · 0.36
GetTypeMethod · 0.36
AddTfOpMethod · 0.36