Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for CPred (0.04 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_variables.td

    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    def HasSupportedElementType :
      Constraint<CPred<"HasSupportedElementType($0.getDefiningOp())">>;
    
    def IsSupportedElementType :
      Constraint<CPred<"IsSupportedElementType($0.getType().cast<ShapedType>())">>;
    
    def LegalizeVarHandle : Pat<
      (TF_VarHandleOp:$result $container, $shared_name),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 16 23:20:46 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

    class HasEqualElementSize<list<int> shape_1, list<int> shape_2> : Constraint<
      CPred<"quant::HasEqualElementSize($0, $1,"
      "llvm::ArrayRef<int>({" # !interleave(shape_1, ", ") # "}),"
      "llvm::ArrayRef<int>({" # !interleave(shape_2, ", ") # "}))">,
      "Checks if the given dimensions contain the same number of elements.">;
    
    def ReshapableTo1DTensor : Constraint<
      CPred<"quant::ReshapableTo1DTensor($0.getType().cast<ShapedType>())">,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.td

    def IsNotInLiftedFunc :
          Constraint<CPred<"!IsInLiftedFunc($0.getDefiningOp())">>;
    
    // Checks if the value is not inside a StableHLO op with region.
    def IsNotInStableHloOpRegion :
          Constraint<CPred<"!IsInStableHloOpRegion($0.getDefiningOp())">>;
    
    // Checks if the given einsum op is supported for XlaDotV2 quantization.
    def IsEinsumSupportedByXlaDotV2 :
          Constraint<CPred<"IsEinsumSupportedByXlaDotV2($0)">>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.td

    class IsBoolAttrEqual<string true_or_false> : Constraint<CPred<
      "$0.getValue() == "#true_or_false#"">>;
    
    // Receives a composite DictionaryAttr as an argument and checks if one of the
    // its attributes (with the name `attr_name`) is of type `attribute` and has
    // the value `val`.
    class IsCompositeAttribute<string attr_name, Attr attribute, string val>:
      Constraint<CPred<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/remove_sharding_custom_call.td

    limitations under the License.
    ==============================================================================*/
    include "stablehlo/dialect/StablehloOps.td"
    
    class IsStringAttrOf<string value> : Constraint<
      CPred<"::llvm::isa_and_nonnull<StringAttr>($_self) && $_self.cast<StringAttr>().getValue() == \"" # value # "\"">,
      "Is a string attribute whose value is \"" # value # "\""
    >;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 07:04:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/shlo_simplify.td

    include "mlir/IR/CommonTypeConstraints.td"
    
    def CloneF32ElementsAttrWithOnes
      : NativeCodeCall<"DenseElementsAttr::get($0.getType().cast<ShapedType>(), (float)1.0)">;
    
    def NotConstant : Constraint<
        CPred<"$0.isa<BlockArgument>() || !llvm::isa<stablehlo::ConstantOp>($0.getDefiningOp())">,
        "Is not a constant.">;
    
    def : Pat<(StableHLO_DivOp $l,
                (StableHLO_ConstantOp:$divisor FloatElementsAttr<32>:$cst)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 03:05:20 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/decompose_patterns.td

    include "tensorflow/compiler/mlir/tfr/ir/tfr_ops.td"
    
    class Quantize<string value> : NativeCodeCall<"TFR::Quantize(" # value # ", $0, $1, $_builder)">;
    
    class HasStringAttr<string value> : AttrConstraint<
        CPred<"$_self.cast<StringAttr>().getValue() == \"" # value # "\"">>;
    
    def QuantActRangeNonePattern :
      Pattern<
        (TFR_TFRQuantActRangeOp
         (TFR_ConstOp HasStringAttr<"NONE">:$act), $scale, $zp),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.td

    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    include "tensorflow/compiler/mlir/lite/utils/utils.td"
    include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td"
    
    def NotFromDequant : Constraint<CPred<"NotFromDequant($0)">>;
    
    // 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<
    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/lite/transforms/quantize_patterns.td

    // Quantize attribute $0 by using quantization parameter from %1.
    def QuantizeByQuantizedType : NativeCodeCall<"quant::Quantize($0, $1.getValue())">;
    def F32ElementsAttr : ElementsAttrBase<
      CPred<"$_self.cast<ElementsAttr>().getShapedType().getElementType().isF32()">, "float constant tensor">;
    
    // Squash tfl.dequantize and tfl.quantize pairs.
    // TODO(fengliuai): Compare the scale of input and output. This can also be
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:10:13 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_canonicalize.td

    def GetSqueezedPermutation: NativeCodeCall<"GetSqueezedPermutation($0, $1)">;
    
    // Check to see if the tensor dimensions can be Squeezed by eliminating 1s'
    def CanSqueezeTensor : Constraint<CPred<
      "GetShape($0).getNumElements() > GetSqueezedShape($0).getNumElements()">>;
    
    
    // Pattern to convert TFL_TransposeOp with rank>6 to rank<=6 if there are
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 13 20:41:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top