- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 71 for FloatType (0.43 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc
}; bool need_to_set_input_nodes_quantization_params = false; for (const BlockArgument arg : func.getArguments()) { auto shaped = mlir::dyn_cast<ShapedType>(arg.getType()); if (shaped && mlir::isa<FloatType>(shaped.getElementType()) && !has_quantize_op(arg)) { need_to_set_input_nodes_quantization_params = true; break; } } if (!need_to_set_input_nodes_quantization_params) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/device_target.h
Operation* op, QuantizedMultipliers* input_multipliers, QuantizedMultipliers* output_multipliers, QuantizedRanges* output_ranges); // A set of parameters are required to build the signatures. FloatType f32_; IntegerType i8_, i32_; int64_t i8_min_, i8_max_, i32_min_, i32_max_; quant::AnyQuantizedType any_, qi8_, qi8n_, qi32_; private: // Maps the kernel names to all the available kernels.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 7.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h
auto op = this->getOperation(); const auto result_type = op->getResult(index).getType().template cast<ShapedType>(); if (!result_type.getElementType().template isa<FloatType>()) return {}; Builder builder(op->getContext()); const IntegerType storage_type = builder.getIntegerType(BitWidth); const double scale = static_cast<double>(ScaleMantissa) *
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc
.Case<IntegerType>([&](Type) { dtype = absl::StrCat("i", operand_or_result.getIntOrFloatBitWidth()); }) .Case<FloatType>([&](Type) { dtype = absl::StrCat("f", operand_or_result.getIntOrFloatBitWidth()); }) .Case<UniformQuantizedType>([&](Type) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td
// Checks if the element value has a float type. def IsFloatElementsAttr : ElementsAttrBase< CPred<"$_self.isa<ElementsAttr>() && " "getElementTypeOrSelf($_self.cast<ElementsAttr>().getType()).isa<FloatType>()">, "float constant tensor">; // Checks if the boolean value is false. def IsFalseBoolAttr : AttrConstraint< CPred<"!$_self.cast<BoolAttr>().getValue()">>; // Checks if the value has only one user.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 04:55:44 UTC 2024 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go
}, }, {name: "numbers", obj: objs(math.MaxFloat64, math.MaxFloat64, math.MaxFloat32, math.MaxFloat32, math.MaxFloat64, math.MaxFloat64, int64(1)), schema: schemas(numberType, numberType, floatType, floatType, doubleType, doubleType, doubleType), expectCost: map[string]int64{ ValsEqualThemselvesAndDataLiteral("self.val1", "self.val2", fmt.Sprintf("%f", math.MaxFloat64)): 11,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:20:16 UTC 2024 - 80.2K bytes - Viewed (0) -
src/debug/dwarf/type.go
// An IntType represents a signed integer type. type IntType struct { BasicType } // A UintType represents an unsigned integer type. type UintType struct { BasicType } // A FloatType represents a floating point type. type FloatType struct { BasicType } // A ComplexType represents a complex floating point type. type ComplexType struct { BasicType } // A BoolType represents a boolean type.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc
}; bool need_to_set_input_nodes_quantization_params = false; for (const BlockArgument arg : func.getArguments()) { auto shaped = mlir::dyn_cast<ShapedType>(arg.getType()); if (shaped && mlir::isa<FloatType>(shaped.getElementType()) && !has_quantize_op(arg)) { need_to_set_input_nodes_quantization_params = true; break; } } if (!need_to_set_input_nodes_quantization_params) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
return; } // Get types TensorType old_result_type = mlir::dyn_cast<TensorType>(op.getResult().getType()); FloatType quantized_type = FloatType::getF16(op.getContext()); ShapedType new_result_type = old_result_type.clone(quantized_type); // Insert CastOp if it does not exist yet. Otherwise, just rewire without // creating a CastOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
using ConvertReduceOpToTfOp::ConvertReduceOpToTfOp; LogicalResult MatchInitValue(Value init_value) const override { auto type = mlir::cast<ShapedType>(init_value.getType()).getElementType(); if (mlir::isa<FloatType>(type)) { float const_value; if (failed(GetConstantSplatValue<float>(init_value, const_value)) || const_value != 1.0) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0)