Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for Pat (0.02 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/optimize.td

    // Checks if the value has only one user.
    def HasOneUse : Constraint<CPred<"$0.hasOneUse()">>;
    
    // If we see a Conv2D op followed by Mul, then multiply the filter
    // with the value in Mul.
    def FuseMulAndConv2D :
      Pat<(TF_MulOp:$mul (TF_Conv2DOp:$conv $input,
                              (Arith_ConstantOp:$filter F32ElementsAttr:$filter_value),
                              $strides, $use_cudnn, $padding, $explicit_padding,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 22 07:31:23 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo_patterns.td

    def LegalizeTranspose : Pat<(MHLO_TransposeOp $arg, $perm),
                                (TFL_TransposeOp $arg,
                                (CreateTFLCastToInt32Op (TFL_ConstOp $perm)))>;
    
    
    def ConvertDotGeneralOp : NativeCodeCall<"ConvertDotGeneralOp($_builder, "
                                                   "$0.getDefiningOp())">;
    def LegalizeDotGeneral: Pat<(MHLO_DotGeneralOp:$old_value
                   $lhs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 18 18:07:41 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/transform_patterns.td

    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // Basically x - y => x + y * -1
    def SubToAdd : Pat<(TFL_SubOp $lhs, $rhs, $act),
      (TFL_AddOp $lhs, (TFL_MulOp $rhs,
                      (Arith_ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>,
                       "-1.0f">), TFL_AF_None), $act)>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.td

    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    // Remove redundant `CastOp` to int8 if the input is properly clipped.
    def RemoveRedundantCastOps : Pat<
      (TF_CastOp:$root_cast
        (TF_CastOp:$i8_cast
          (TF_ClipByValueOp:$clip $input, $min_value, $max_value),
          ConstBoolAttrFalse:$truncate2),
        ConstBoolAttrFalse:$truncate1),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. src/testing/match.go

    	// given match function.
    	matches(name []string, matchString func(pat, str string) (bool, error)) (ok, partial bool)
    
    	// verify checks that the receiver's pattern strings are valid filters by
    	// calling the given match function.
    	verify(name string, matchString func(pat, str string) (bool, error)) error
    }
    
    // simpleMatch matches a test name if all of the pattern strings match in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/quantize_patterns.td

    // TODO(fengliuai): Compare the scale of input and output. This can also be
    // squashed to a requantize op if the scales are different.
    def : Pat<(TFL_QuantizeOp (TFL_DequantizeOp $in), $qt), (replaceWithValue $in)>;
    
    // If the tfl.dequantize op wasn't fused, we shouldn't quantize the floating
    // point constant.
    def : Pat<(TFL_DequantizeOp
                 (TFL_QuantizeOp (Arith_ConstantOp F32ElementsAttr:$cst), $qt)),
              (TFL_ConstOp $cst)>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:10:13 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. .github/workflows/scorecard.yml

              results_format: sarif
              # (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
              # - you want to enable the Branch-Protection check on a *public* repository, or
              # - you are installing Scorecard on a *private* repository
              # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
              # repo_token: ${{ secrets.SCORECARD_TOKEN }}
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 04 17:53:21 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.td

    // Fuses TFL_FullyConnectedOp and TFL_TransposeOp Rhs to TFL_BatchMatMulOp when
    // it's used by TFL_BatchMatMulOp and "transpose_lhs" is true.
    def FuseTransposeFCLhsToBatchMatmul : Pat<
      (TFL_BatchMatMulOp
        (TFL_FullyConnectedOp:$fc_output
          (TFL_TransposeOp TensorOf<[F32]>:$fc_lhs,
                           (Arith_ConstantOp:$perm_value $p0)),
          TensorOf<[F32]>:$fc_rhs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 09 23:44:09 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.td

    def CreateEinsumOpFromXlaDotV2Op : NativeCodeCall<
      "CreateEinsumOpFromXlaDotV2Op($_builder, $_loc, $0...)">;
    
    // Convert XlaDotV2 Op to Einsum Op with above two functions.
    def ConvertXlaDotV2OpToEinsumOp : Pat<
      (TF_XlaDotV2Op:$dot $lhs, $rhs, $dot_dimension_numbers, $precision_config),
      (CreateEinsumOpFromXlaDotV2Op $lhs, $rhs, $dot, $dot_dimension_numbers),
      [(IsPrecisionEmpty $precision_config)]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td

    // Constraints are added on the attributes of the aten.avg_pool2d to ensure only
    // ops that match the behaviour of tfl.average_pool_2d are directly lowered.
    def LegalizeAvgPool2dComposite: Pat<
                        (MHLO_CompositeOp:$old_val
                        (variadic $a_input), 
                        ConstantStrAttr<StrAttr, "aten.avg_pool2d.default">, $attrs, $_, $_),
                        (TFL_TransposeOp 
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top