Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for CPred (0.07 sec)

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

    class ValueEquals<string val> : Constraint<CPred<"ValueEquals($0, " # val # ")">>;
    def ValueGreaterThanZero : Constraint<CPred<"ValueGreaterThanZero($0)">>;
    def ValueIsReciprocal : Constraint<CPred<"ValueIsReciprocal($0, $1)">>;
    def TensorIsSign : Constraint<CPred<"TensorIsSign($_builder, $0, $1)">>;
    def SameValue : Constraint<CPred<"$0 == $1">>;
    def FloatOrDefaultCompare : Constraint<CPred<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    // BatchNorm op patterns.
    //===----------------------------------------------------------------------===//
    
    def FalseBoolAttr : AttrConstraint<CPred<"!$_self.cast<BoolAttr>().getValue()">>;
    def TrueBoolAttr : AttrConstraint<CPred<"$_self.cast<BoolAttr>().getValue()">>;
    
    def CastValueToI64: NativeCodeCall<
      "CastValueToI64($0.getLoc(), $1, &$_builder)">;
    
    def CastValueToElementType: NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

    def DenseElementsAttr : ElementsAttrBase<
      CPred<"$_self.isa<DenseElementsAttr>()">,
      "non-opaque constant tensor">;
    
    def F32ElementsAttr : ElementsAttrBase<
      CPred<"$_self.cast<ElementsAttr>().getShapedType().getElementType().isF32()">, "float constant tensor">;
    
    def Int64ElementsAttr : ElementsAttrBase<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

    include "tensorflow/compiler/mlir/lite/ir/tfl_ops.td"
    include "tensorflow/compiler/mlir/lite/utils/utils.td"
    
    def FalseBoolAttr : AttrConstraint<CPred<"!$_self.getValue()">>;
    
    def DenseElementsAttr : ElementsAttrBase<
      CPred<"$_self.isa<DenseElementsAttr>()">,
      "non-opaque constant tensor">;
    
    def CreateGatherNdOp : NativeCodeCall<
        "$_builder.create<TF::GatherNdOp>($0.getLoc(), $0.getType(), $1, $2)">;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    class TF_OpIsBroadcastableToRes<int opId, int resId> : And<[
        TCOpResIsShapedTypePred<opId, resId>,
        CPred<"mlir::tf_type::BroadcastCompatible("
                  "$_op.getOperand(" # opId # ").getType(), "
                  "$_op.getResult(" # resId # ").getType())">]>;
    
    
    class TF_AllTypesMatchPred<list<string> values> :
        CPred<"tf_type::AreCastCompatible(llvm::ArrayRef({" #
          !interleave(values, ", ") # "}))">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td

    /// TODO(b/130756570): Support OpBase constraints in PatternRewrites.
    def SingleResultAndOperandHaveSameElementType : Constraint<
      CPred<"getElementTypeOrSelf($0) == getElementTypeOrSelf($1)">>;
    
    def SingleResultAndOperandHaveSameType : Constraint<
      CPred<"$0.getType() == $1.getType()">>;
    
    def IsRank2Tensor : Type<HasAnyRankOfPred<[2]>, "Rank 2 tensor">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:42:28 UTC 2023
    - 17K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

        value).
    }];
    
      let cppNamespace = "::mlir::tf_executor";
    }
    
    // Control type.
    def TfeControlType : Type<CPred<"$_self.isa<ControlType>()">, "control">,
                         BuildableType<"$_builder.getType<ControlType>()">;
    
    // Token type.
    def TfeTokenType : Type<CPred<"$_self.isa<TokenType>()">, "token">,
                       BuildableType<"$_builder.getType<TokenType>()">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td

    include "tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.td"
    
    def NonScalarRankedType : Type<And<[Neg<HasAnyRankOfPred<[0]>>, HasRankPred]>,
                             "Non scalar type">;
    
    def HasSingleElement: Constraint<CPred<"($0.size() == 1)">>;
    
    def EmptyList: NativeCodeCall<"llvm::SmallVector<mlir::Value>{}">;
    
    // Creates a tf.ReadVariable op that reads a resource `$2` that has the same
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.td

    // Helper functions.
    //===----------------------------------------------------------------------===//
    
    class IsFusedOpEndsWith<string OpName> : AttrConstraint<
      CPred<"!$_self.cast<ArrayAttr>().empty() && "
            "$_self.cast<ArrayAttr>()[$_self.cast<ArrayAttr>().size() - 1]."
            "cast<::mlir::StringAttr>().str() == \"" # OpName # "\"">,
      "Matching fused '" # OpName # "' op at the end">;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  10. 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)
Back to top