- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TFIntListIs1XY1 (0.14 sec)
-
tensorflow/compiler/mlir/lite/utils/validators.h
// * and the attribute is an integer list of the form [1, X, Y, 1], // and writes X, Y as 32-bit integer attribute to `x`, `y`. bool TFIntListIs1XY1(Operation *op, StringRef name, IntegerAttr *x, IntegerAttr *y); // Returns true if the attribute is an integer list of the form [1, X, Y, 1]. bool TFIntListIs1XY1(Attribute attr); // Returns true if the attribute is an integer list of the form [1, 1, X, Y].
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/validators.cc
// Returns true if the given `op` // * has an attribute with the given `name`, // * and the attribute is an integer list of the form [1, X, Y, 1], // and writes X, Y as 32-bit integer attribute to `x`, `y`. bool TFIntListIs1XY1(Operation *op, StringRef name, IntegerAttr *x, IntegerAttr *y) { auto attr = op->getAttrOfType<ArrayAttr>(name); if (!attr) return false; auto elements = attr.getValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
"RankedTensorType::get({" # len # "}, $_builder.getIntegerType(32)), $0)"; } // Constraint that Attr has values [1, X, Y, 1] def IsIntList1XY1 : AttrConstraint<CPred<"TFIntListIs1XY1($_self)">>; // Constraint that Attr has values [1, 1, X, Y] def IsIntList11XY : AttrConstraint<CPred<"TFIntListIs11XY($_self)">>; // Constraint that values in list attribute are all ones.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
if (!TFDataFormatIsNHWC(op)) return failure(); IntegerAttr height, width; if (!TFIntListIs1XY1(op, "strides", &height, &width)) return failure(); ConvertTFConvOpMatchState state; state.stride_height = height; state.stride_width = width; if (TFIntListIs1XY1(op, "dilations", &height, &width)) { state.dilation_height_factor = height; state.dilation_width_factor = width;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0)