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

Function IsScalar

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

Source from the content-addressed store, hash-verified

141
142namespace {
143bool IsScalar(const TensorT& tensor) {
144 // TODO(b/138222071) We can't distinguish scalars and unranked tensors
145 // Work out a way to handle this and stub out the code until then
146 return tensor.shape.empty() && false;
147}
148
149bool IsQuantized(const TensorT& tensor) {
150 return (tensor.quantization != nullptr) &&

Callers 15

GetTensorTypeFunction · 0.70
GetComputationInputsFunction · 0.50
ParseTupleNodeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
DoWorkMethod · 0.50
ComputeMethod · 0.50
matchAndRewriteMethod · 0.50

Calls 1

emptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.40