Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for NativeCodeCall (0.25 sec)

  1. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td

    def CloningOpResult : NativeCodeCall<
      "$_builder.clone(*op0)->getOpResult(0)">;
    
    // Same as CloningOpResult but is used for ops with multiple results.
    class CloningOpResults<int returns> : NativeCodeCall<
      "$_builder.clone(*op0)->getOpResults()", returns>;
    
    // Creates an 1D array const with float values.
    class Create1DConst<string values> : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 04:55:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

    class SliceDenseIntElementsAttrColumn2D<string column> : NativeCodeCall<
      "SliceDenseIntElementsAttrColumn2D($0.cast<ElementsAttr>(), " # column # " )">;
    
    class SliceDenseIntElementsAttr<string index, string axis> : NativeCodeCall<
      "SliceDenseIntElementsAttr($0.cast<ElementsAttr>(), " # index # ", " # axis # ")">;
    
    // Interior padding attribute based on the TF padding.
    def GetInteriorPadding : 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_tensorlist.td

    def ConstDenseElementsI32ZeroAttr
      : NativeCodeCall<"$_builder.create<TFL::ConstOp>($_loc, DenseElementsAttr::get(RankedTensorType::get({}, $_builder.getI32Type()), {0}))">;
    
    def Size1InputRange : NativeCodeCall<
      "SmallVector<Value, 1>{$0}">;
    
    def Size2InputRange : NativeCodeCall<
      "SmallVector<Value, 2>{$0, $1}">;
    
    def Size3InputRange : NativeCodeCall<
      "SmallVector<Value, 3>{$0, $1, $2}">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 18 07:12:51 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.td

    // Since inputs is a vector in case of einsum, we cannot use ArgumentList here.
    def AppendToVector : NativeCodeCall<"AppendToVector($0, $1)">;
    
    // The list of arguments of the composite function.
    def ArgumentList : NativeCodeCall<"llvm::SmallVector<Value>{$0...}">;
    
    // The list of results of the composite function.
    def ResultList : NativeCodeCall<"llvm::SmallVector<Value>{$0...}">;
    
    // Creates a list of NamedAttributes. An example usage would be:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/utils.td

    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mlir/IR/PatternBase.td"
    
    def CreateNoneValue : NativeCodeCall<
      "$_builder.create<TFL::NoValueOp>($0.getLoc(), $_builder.getUnitAttr())">;
    
    // Returns shape of a ranked tensor.
    // if called without a ranked tensor it will fail.
    def GetShape: NativeCodeCall<"GetShape($0)">;
    
    // Constraint that values in list attribute are all ones.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td

    // See the function doc in the header file.
    def GetPadOpAttr: NativeCodeCall<"GetPadOpAttr($_builder, (*$0.begin()).getDefiningOp<mhlo::CompositeOp>())">;
    
    // See the function doc in the header file.
    def GetPaddingArrayCeilMode: NativeCodeCall<"GetPaddingArrayCeilMode($_builder, (*$0.begin()).getDefiningOp<mhlo::CompositeOp>())">;
    
    class CreateStringAttr<string values> : NativeCodeCall<
      "$_builder.getStringAttr("# values #")">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.td

    include "mlir/IR/PatternBase.td"
    
    // See the function doc in the header file.
    def GetNhwcReturnTypeFromNchw: NativeCodeCall<
      "GetNhwcReturnTypeFromNchw((*$0.begin()).getDefiningOp())">;
    
    // When given a DenseIntElementsAttr containing I64 elements, this extracts
    // one I32IntegerAttr from the given index.
    class GetI32At<int index>: NativeCodeCall<
      "$_builder.getI32IntegerAttr(static_cast<int32_t>(*($0.getValues<int64_t>().begin() + " # index #")))">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo_patterns.td

    def CreateTFLCastToInt32Op : NativeCodeCall<
      "CreateCastToInt32($0, $_loc, $_builder)">;
    // TODO: b/304003568 - Add TF_TransposeOp folding logic to tflite.
    def LegalizeTranspose : Pat<(MHLO_TransposeOp $arg, $perm),
                                (TFL_TransposeOp $arg,
                                (CreateTFLCastToInt32Op (TFL_ConstOp $perm)))>;
    
    
    def ConvertDotGeneralOp : NativeCodeCall<"ConvertDotGeneralOp($_builder, "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 18 18:07:41 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

    def convertIntAttrTo32Bit : NativeCodeCall<
        "$_builder.getI32IntegerAttr($0.cast<IntegerAttr>().getInt())">;
    
    // Builds a constant bool attribute.
    class GetBoolAttr<int value> :
        NativeCodeCall<"$_builder.getBoolAttr(" # value #")">;
    
    // Converts an integer attribute $0 to 64-bit with builder.
    def convertIntAttrTo64Bit : NativeCodeCall<
        "$_builder.getI64IntegerAttr($0.cast<IntegerAttr>().getInt())">;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top