- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ConvertToI32Attr (0.76 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
// Converts any IntegerAttr to an IntegerAttr of an i32 type. // The value won't change in the new attribute, but if the value is out of // the bound of i32, the function returns a failure. LogicalResult ConvertToI32Attr(IntegerAttr attr, IntegerAttr* attr_i32) { if (attr.getType().isInteger(/*width=*/32)) { *attr_i32 = attr; return success(); } int64_t value = attr.getInt();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
// Converts any IntegerAttr to an IntegerAttr of an i32 type. // The value won't change in the new attribute, but if the value is out of // the bound of i32, the function returns a failure. LogicalResult ConvertToI32Attr(IntegerAttr attr, IntegerAttr* attr_i32) { if (attr.getType().isInteger(/*width=*/32)) { *attr_i32 = attr; return success(); } int64_t value = attr.getInt();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0)