- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for CPred (0.17 sec)
-
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td
CPred<"getElementTypeOrSelf($0).isa<mlir::quant::UniformQuantizedType>()">>; // Checks if the given two values have the same type. def AreTheSameElementType : Constraint< CPred<"$0.getType() == $1.getType()">>; // Checks if the given two values are the same. def AreTheSameValue : Constraint< CPred<"$0 == $1">>; // Checks if the value has rank. def HasRank : Constraint<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 04:55:44 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize.td
def IsRankedShapeLastDimStatic : Constraint<And<[ CPred<"$0.getType().isa<RankedTensorType>()">, CPred<"!$0.getType().cast<ShapedType>().isDynamicDim( " " $0.getType().cast<RankedTensorType>().getRank() - 1)">]>>; def IsNotComplexType : Constraint<And<[ CPred<"$0.getType().isa<RankedTensorType>()">, CPred<"!$0.getType().cast<ShapedType>().getElementType().isa<ComplexType>()"> ]>>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 22 07:31:23 UTC 2023 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.td
NativeCodeCall<"TransposeLastTwoDims($0[0].getType())">; def AreLastTwoDimsTransposed : Constraint<CPred< "TFL::AreLastTwoDimsTransposed($0)">>; // Checks if the param passed is of NoneType. def IsNoneType : Constraint<CPred<"$0.getType().isa<NoneType>()">>; def ConstantLikePred : CPred<"::mlir::matchPattern($0, ::mlir::m_Constant())">; def IsConstantLike : Constraint<ConstantLikePred>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.td
include "mhlo/IR/hlo_ops.td" include "stablehlo/dialect/ChloOps.td" def IsDefinedByConvOrDotGeneralOp : Constraint<Or<[ CPred<"$0.getDefiningOp<mhlo::ConvolutionOp>()">, CPred<"$0.getDefiningOp<mhlo::DotGeneralOp>()">]>>; def IsNull : Constraint<CPred<"!$0">>; // This pattern optimizes: // conv/dot_general + a + b -> conv/dot_general + (a + b) // conv/dot_general - a - b -> conv/dot_general - (a + b)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 24 02:26:47 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.td
// Here, the element type can be any integer or float type. But, note that only // 32 bit integers are supported for the values. class IsConstantValueOf<int value> : Constraint<CPred< "IsConstantValueOf($0," # value # ")">>; def IsOnGpuDevicePred : CPred<"IsOnGpuDevice($0.getOwner())">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 21 02:54:35 UTC 2022 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.td
let description = [{ The TFRT Fallback Dialect. }]; let cppNamespace = "::tfrt::fallback"; } // This corresponds to tensorflow::Tensor. def TFTensorType : DialectType<Fallback_Dialect, CPred<"$_self.isa<::tfrt::fallback::TFTensorType>()">, "!tfrt_fallback.tf_tensor type">, BuildableType<"$_builder.getType<::tfrt::fallback::TFTensorType>()"> { let description = [{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_patterns.td
def NoFallbackAttrNotSet : Constraint<CPred< "!$0.getDefiningOp()->hasAttr(kNoFallbackAttr)">>; class FloatValueEquals<string val> : Constraint<CPred< "FloatValueEquals($0, " # val # ")">>; class RankEquals<string rank> : Constraint<CPred< "RankEquals($0, " # rank # ")">>; def IsFusibleWithBias : Constraint<CPred< "IsFusibleWithBiasOp($0.getDefiningOp())">>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 21:02:21 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.td
} def MlrtFutureType : DialectType<Mlrt_Dialect, CPred<"$_self.isa<::mlrt::compiler::FutureType>()">, "!mlrt.future type">, BuildableType<"$_builder.getType<::mlrt::compiler::FutureType>()"> { let description = [{ `!mlrt.future type` represents a C++ mlrt::Future. }]; } def MlrtPromiseType : DialectType<Mlrt_Dialect, CPred<"$_self.isa<::mlrt::compiler::PromiseType>()">, "!mlrt.promise type">,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_dialect.td
Op<TensorflowMlrt_Dialect, mnemonic, !listconcat(traits, [IsolatedFromAbove])> { } // This corresponds to tensorflow::Tensor. def TFTensorType : DialectType<TensorflowMlrt_Dialect, CPred<"$_self.isa<::tensorflow::tf_mlrt::TFTensorType>()">, "!tf_mlrt.tensor type">, BuildableType<"$_builder.getType<::tensorflow::tf_mlrt::TFTensorType>()"> { let description = [{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.td
include "tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td" // Only handles the case where precision config is default. def IsPrecisionEmpty : Constraint<CPred<"IsPrecisionEmpty($0)">>; // Creates Einsum Op from XlaDotV2 Op by generating equation. def CreateEinsumOpFromXlaDotV2Op : NativeCodeCall< "CreateEinsumOpFromXlaDotV2Op($_builder, $_loc, $0...)">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 2.3K bytes - Viewed (0)