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

Function TensorLoc

tensorflow/compiler/mlir/lite/flatbuffer_import.cc:155–160  ·  view source on GitHub ↗

Create the MLIR NamedLoc location corresponding to a given tensor

Source from the content-addressed store, hash-verified

153
154// Create the MLIR NamedLoc location corresponding to a given tensor
155Location TensorLoc(const TensorT& tensor, Builder builder, Location base) {
156 if (tensor.name.empty()) {
157 return base;
158 }
159 return mlir::NameLoc::get(builder.getIdentifier(tensor.name), base);
160}
161
162// Returns the correct type for a quantized tensor
163// We have a special case for constants since they have a higher minimum value.

Callers 1

ConvertSubgraphFunction · 0.85

Calls 2

getFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected