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

Method fold

tensorflow/compiler/mlir/lite/ir/tfl_ops.cc:352–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350//===----------------------------------------------------------------------===//
351
352OpFoldResult AddOp::fold(ArrayRef<Attribute> operands) {
353 // TODO(b/142478136): Handle fused ops.
354 if (fused_activation_function() != "NONE") return {};
355 return ConstFoldBinaryOp(
356 getType(), operands, [](APFloat a, APFloat b) { return a + b; },
357 [](APInt a, APInt b) { return a + b; }, getOperation()->isCommutative());
358}
359
360//===----------------------------------------------------------------------===//
361// ConcatenationOp

Callers

nothing calls this directly

Calls 15

ConstFoldBinaryOpFunction · 0.85
GetConcatenationOpAxisFunction · 0.85
axisFunction · 0.85
IsF32ShapedTypeFunction · 0.85
ConstFoldUnaryOpFunction · 0.85
negClass · 0.85
GetLengthOfRangeFunction · 0.85
BuildConstRangeTensorFunction · 0.85
ComputePermutationFunction · 0.85

Tested by

no test coverage detected