Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for BoolAttr (0.23 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td

                        (TFL_HardSwishOp $input)>;
    
    def IsNchwLayoutOp: Constraint<CPred<
      "$0.get(\"is_nchw_op\") && $0.get(\"is_nchw_op\").dyn_cast<BoolAttr>() "
          "== mlir::BoolAttr::get($_builder.getContext(), true)">>;
    
    def IsNhwcLayoutOp: Constraint<Neg<IsNchwLayoutOp.predicate>>;
    
    // TODO(b/343278954): Move the creation of transposes to a separate prepare pass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

    def LegalizeMin : Pat<
      (TF_MinOp $arg0, $axes, BoolAttr:$arg2),
      (TFL_ReduceMinOp $arg0, (CreateTFCastToInt32Op $axes), $arg2)>;
    
    def LegalizeMax : Pat<
      (TF_MaxOp $arg0, $axes, BoolAttr:$arg2),
      (TFL_ReduceMaxOp $arg0, (CreateTFCastToInt32Op $axes), $arg2)>;
    
    def LegalizeProd : Pat<
      (TF_ProdOp $arg0, $axes, BoolAttr:$arg2),
      (TFL_ReduceProdOp $arg0, (CreateTFCastToInt32Op $axes), $arg2)>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        DefaultValuedOptionalAttr<BoolAttr, "false">:$adj_x,
        DefaultValuedOptionalAttr<BoolAttr, "false">:$adj_y,
        DefaultValuedOptionalAttr<BoolAttr, "false">:$grad_x,
        DefaultValuedOptionalAttr<BoolAttr, "false">:$grad_y
      );
    
      let results = (outs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        "whose value is non-negative">;
    
    def TFL_BoolTrue : AttrConstraint<
        CPred<"$_self.isa<BoolAttr>() && $_self.cast<BoolAttr>().getValue()">,
        "whose value is true">;
    
    def TFL_BoolFalse : AttrConstraint<
        CPred<"$_self.isa<BoolAttr>() && !$_self.cast<BoolAttr>().getValue()">,
        "whose value is false">;
    
    class TFL_StringEqualsTo<string value> : AttrConstraint<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

      NativeCodeCall<"GetI64ElementsAttr({" # value # "}, &$_builder)">;
    
    class GetF32Scalar<int value> :
      NativeCodeCall<"GetF32Scalar(&$_builder, " # value # ")">;
    
    def TrueBoolAttr : AttrConstraint<CPred<"$_self.cast<::mlir::BoolAttr>().getValue()">>;
    
    def CreateTFShapeOp : NativeCodeCall<
        "$_builder.create<TF::ShapeOp>($0.getLoc(), $1, $2)">;
    
    def IsI32 : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      auto array = attr.cast<mlir::ArrayAttr>().getValue();
    
      for (int i = 0; i < array.size(); i++) {
        if (llvm::isa<mlir::BoolAttr>(array[i])) {
          flex_builder->Bool(name.c_str(),
                             array[i].cast<mlir::BoolAttr>().getValue());
        } else if (llvm::isa<mlir::StringAttr>(attr)) {
          flex_builder->String(name.c_str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          TF::TensorListLengthOp op, OpAdaptor adaptor,
          ConversionPatternRewriter &rewriter) const override {
        Location loc = op.getLoc();
        Value input_handle = adaptor.getOperands()[0];
    
        BoolAttr true_attr = rewriter.getBoolAttr(true);
        auto shape = rewriter.create<TF::ShapeOp>(loc, input_handle,
                                                  /*use_32bit=*/true_attr);
        rewriter.replaceOpWithNewOp<TF::GatherOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

    // If the 'transpose' attribute is true returns ElementsAttr to transpose 2D
    // matrix. Otherwise, returns ElementsAttr for identity transpose.
    static DenseIntElementsAttr Get2DTransposePerm(BoolAttr transpose, Builder *b) {
      if (transpose.getValue()) return GetI64ElementsAttr({1, 0}, b);
      return GetI64ElementsAttr({0, 1}, b);
    }
    
    //===----------------------------------------------------------------------===//
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top