Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetNoFallbackAttr (0.6 sec)

  1. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_patterns.td

    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mlir/Dialect/Arith/IR/ArithOps.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // Marks the op as no fallback.
    def MarkNoFallback : NativeCodeCall<"SetNoFallbackAttr($_builder, $0)">;
    
    def NoFallbackAttrNotSet : Constraint<CPred<
      "!$0.getDefiningOp()->hasAttr(kNoFallbackAttr)">>;
    
    class FloatValueEquals<string val> : Constraint<CPred<
      "FloatValueEquals($0, " # val # ")">>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

          CustomOptionForFlexOp(&builder, custom_option_buffer));
      op->replaceAllUsesWith(flex_op);
      op->erase();
      return true;
    }
    
    // Sets the "no_fallback" attribute.
    Value SetNoFallbackAttr(PatternRewriter &rewriter, Value val) {
      val.getDefiningOp()->setAttr(kNoFallbackAttr, rewriter.getUnitAttr());
      return val;
    }
    
    // Returns true if the attr is a float attribute and be equal to value.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top