- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isSignedInteger (0.15 sec)
-
tensorflow/compiler/mlir/lite/utils/constant_utils.cc
return tensorflow::Status(absl::StatusCode::kInvalidArgument, "Unsupported type"); } } else if (auto itype = mlir::dyn_cast<mlir::IntegerType>(element_type)) { if (element_type.isSignedInteger()) { switch (itype.getWidth()) { case 8: return DenseElementsAttr::get<int8_t>(shaped_type, static_cast<int8_t>(value)); break;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
bool is_signed; Type ele_type = input_type.getElementType(); if (ele_type.isIntOrFloat()) { bit_width = ele_type.getIntOrFloatBitWidth(); is_signed = ele_type.isSignlessIntOrFloat() || ele_type.isSignedInteger(); } else if (QuantizedType qtype = mlir::dyn_cast<QuantizedType>(ele_type)) { bit_width = qtype.getStorageTypeIntegralWidth(); is_signed = qtype.isSigned(); } else { return input_type; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
const auto int_values = dense_int_attr.getValues<APInt>(); float float_val = 0.0f; if (!int_values.empty()) { const APInt apint_val = *int_values.begin(); if (dense_int_attr.getType().getElementType().isSignedInteger()) { // Get the sign-extended value (=>int64) if the type is signed. float_val = apint_val.getSExtValue(); } else { // Get the zero-extended value (=>uint64) if unsigned or signless.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0)