Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ConstantAttr (0.15 sec)

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

                            (TFL_AveragePool2DOp 
                                /*input*/ (TFL_TransposeOp $a_input,
                                    (Arith_ConstantOp
                                        ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 2, 3, 1}">)),
                                /*filter_height*/(GetI32At<0> (GetAsVectorAttr<"kernel_size"> $attrs)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

          $x,
          (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">),
          TFL_AF_Relu6),
         (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "0.166666666f">),
         TFL_AF_None),
         TFL_AF_None),
      (TFL_HardSwishOp $x)>;
    
    def MatchHardSwishPattern3 : Pat<
      (TFL_MulOp
        (TFL_MulOp
         $x,
         (TFL_AddOp
          $x,
          (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td

              (Arith_ConstantOp
                ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 2, 3, 1}">)),
            (Arith_ConstantOp:$output_size (GetI32DenseAttr (GetAsVectorAttr<"output"> $attrs))),
            (GetCompositeAttributeAs<"align_corners", "BoolAttr"> $attrs),
            ConstBoolAttrTrue,
            (returnType (GetNhwcReturnTypeFromNchw $old_val))),
          (Arith_ConstantOp
            ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 3, 1, 2}">))>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

    // Unary ops patterns.
    //===----------------------------------------------------------------------===//
    def IsDataFormatNHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "\"NHWC\"">;
    def IsDataFormatNCHW : ConstantAttr<TF_ConvnetDataFormatAttr, "\"NCHW\"">;
    
    class I32VectorElementsAttr<int len> : ElementsAttrBase<
      CPred<"$_self.isa<DenseIntElementsAttr>() &&"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

                (Arith_ConstantOp ConstantAttr<I32ElementsAttr, "{0}">)),
              (TF_MatrixSetDiagOp $input, $diagonal)>;
    
    // `align` attribute can be ignored because we only support converting
    // `MatrixSetDiagV3` to `MatrixSetDiag` with default `k` inputs.
    def ConvertMatrixSetDiagV3ToMatrixSetDiag :
          Pat<(TF_MatrixSetDiagV3Op $input, $diagonal,
                (Arith_ConstantOp ConstantAttr<I32ElementsAttr, "{0}">),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    //===----------------------------------------------------------------------===//
    
    class MHLO_ComparisonDirectionValue<string enumStr> :
      ConstantAttr<MHLO_ComparisonDirectionAttr, "::mlir::mhlo::ComparisonDirection::" # enumStr>;
    
    class CHLO_ComparisonDirectionValue<string enumStr> :
      ConstantAttr<CHLO_ComparisonDirectionAttr, "::mlir::chlo::ComparisonDirection::" # enumStr>;
    
    // TODO(b/228291745): Assert that $x and $y have the same shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

      [(TF_OneHotOp:$labels $sparse_labels,
         (TF_ConstOp (GetDimSizeAsI32<1> $features, $src_op__0)),
         (TF_ConstOp (GetScalarOfType<1> $features)),
         (TF_ConstOp (GetScalarOfType<0> $features)),
         ConstantAttr<I64Attr, "1">),
       (TF_SelectV2Op:$zero_or_nan
         (TF_LogicalAndOp
           (TF_LessEqualOp
             (TF_ConstOp (GetScalarOfType<0> $sparse_labels)), $sparse_labels),
           (TF_LessOp $sparse_labels,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top