- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 68 for FloatType (0.34 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc
auto real_int = absl::bit_cast<int32_t>(real); return APInt(/*numBits=*/32, real_int); }; auto dequant_values = mlir::cast<DenseIntOrFPElementsAttr>(input_values) .mapValues(FloatType::getF32(rewriter.getContext()), llvm::function_ref<DequantizeFuncType>(dequantize_func)); rewriter.replaceOpWithNewOp<TFL::ConstOp>(dequant_op, dequant_op.getType(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
if (type.getElementType().isa<FloatType>()) { return false; } if (type.getElementType().isa<QuantizedType>()) { has_quantized_types = true; } } } for (Value output : call_op.getOutput()) { if (auto type = output.getType().dyn_cast<TensorType>()) { if (type.getElementType().isa<FloatType>()) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc
return false; Value res = op->getResult(index); return res.getType().isa<ShapedType>() && res.getType().cast<ShapedType>().getElementType().isa<FloatType>(); } // A method to retrieve the name for the given op. OperationToName op_to_name_; // We split the normal names and regex names, since the former can use hash
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 9.9K bytes - Viewed (0) -
pkg/kubelet/stats/provider_test.go
case 2: e.Type = cadvisorapiv1.MetricType("delta") } switch c.Intn(2) { case 0: e.Format = cadvisorapiv1.IntType case 1: e.Format = cadvisorapiv1.FloatType } c.Fuzz(&e.Units) }) var ret []cadvisorapiv1.MetricSpec f.Fuzz(&ret) return ret } func generateCustomMetrics(spec []cadvisorapiv1.MetricSpec) map[string][]cadvisorapiv1.MetricVal {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 20K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
// in float32 for that case. TensorType tensor_type = original_tensor_type; FloatType float_type = mlir::cast<FloatType>(tensor_type.getElementType()); bool needs_cast = float_type.getWidth() < 32; if (needs_cast) { MLIRContext *context = rewriter.getContext(); float_type = FloatType::getF32(context); if (original_tensor_type.hasRank()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
fn_.walk([&](arith::ConstantOp cst) { // Non-float tensors are neither weights nor require quantization. const auto type = mlir::dyn_cast<ShapedType>(cst.getType()); if (!type || !mlir::isa<FloatType>(type.getElementType())) return; // Skip if the value is NaN or INF. // Otherwise the illegal scale/zp will be calculated. auto float_attr = mlir::dyn_cast<DenseFPElementsAttr>(cst.getValueAttr());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 38.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
if (!hash_seed) { return func.emitError() << "'hash_seed' attribute is not set or not an array"; } auto output_type = GetResultType(func, 0); if (!output_type || !mlir::isa<FloatType>(output_type.getElementType()) || !RankEquals(output_type, 2)) { return func.emitError() << "Output should be a 2D float tensor."; } if (output_type.getDimSize(1) != hash_seed.size()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
return false; } bool has_quantized_types = false; for (Value operand : call_op.getOperands()) { if (const TensorType type = mlir::dyn_cast<TensorType>(operand.getType())) { if (mlir::isa<FloatType>(type.getElementType())) { return false; } if (mlir::isa<UniformQuantizedType, UniformQuantizedPerAxisType>( type.getElementType())) { has_quantized_types = true; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc
<< inverse_scales_type << ".\n"); return failure(); } if (Type inverse_scales_element_type = inverse_scales_type.getElementType(); !mlir::isa<FloatType>(inverse_scales_element_type)) { LLVM_DEBUG(llvm::dbgs() << "Inverse scales element should be a float type. Got: " << inverse_scales_element_type << ".\n"); return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
if (element_ty.isSignlessInteger()) return DenseElementsAttr::get( type, builder.getIntegerAttr(element_ty, unique_index)); if (mlir::isa<mlir::FloatType>(element_ty)) return DenseElementsAttr::get( type, builder.getFloatAttr(element_ty, unique_index)); if (auto qtype = mlir::dyn_cast<QuantizedType>(element_ty)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0)