- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 71 for FloatType (0.15 sec)
-
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) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
} float CalculateRandomSparsity(const ElementsAttr& attr, const ShapedType& type) { int num_elements = type.getNumElements(); int num_zeros = 0; if (mlir::isa<FloatType>(type.getElementType())) { for (const auto val : attr.getValues<APFloat>()) { if (val.isZero()) { num_zeros++; } } } else if (mlir::isa<quant::QuantizedType>(type.getElementType())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt
get() = withValidityAssertion { analysisContext.builtIns.byteType.toKtType(analysisContext) } override val float: KaType get() = withValidityAssertion { analysisContext.builtIns.floatType.toKtType(analysisContext) } override val double: KaType get() = withValidityAssertion { analysisContext.builtIns.doubleType.toKtType(analysisContext) } override val boolean: KaType
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 23.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
static bool PreferResultScale(Operation* op) { int float_operands = 0; for (auto operand : op->getOperands()) { if (auto operand_type = dyn_cast<ShapedType>(operand.getType())) { if (isa<FloatType>(operand_type.getElementType())) { if (++float_operands > 1) return true; } } } return false; } std::unique_ptr<OpQuantScaleSpec> GetDefaultQuantScaleSpec(Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
PatternRewriter& rewriter) const { // Non-float tensors are neither weights nor require quantization. auto type = mlir::dyn_cast<ShapedType>(const_op->getResult(0).getType()); if (!type || !mlir::isa<FloatType>(type.getElementType())) return success(); DenseFPElementsAttr attr; if (!matchPattern(const_op->getResult(0), m_Constant(&attr))) { const_op->emitError("Not a constant op."); return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
template <typename UniformQuantizedOp> FailureOr<TensorType> GetUniformQuantizedType( UniformQuantizedOp op, Type original_type, TypedValue<TensorType> scales_value, TypedValue<TensorType> zero_points_value, FloatType expressed_type, int64_t storage_type_min, int64_t storage_type_max, int64_t quantized_dimension, PatternRewriter &rewriter) { // Check whether the scales operand has constant op. DenseFPElementsAttr scales;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
return shaped_type.getElementType().isBF16(); } return false; } // Returns true if it is a shaped type of FloatType elements. inline bool IsFloatShapedType(Type t) { if (auto shaped_type = t.dyn_cast_or_null<ShapedType>()) { return shaped_type.getElementType().isa<FloatType>(); } return false; } // Returns new shape with rank 'new_dims' with padded ones on the // left if needed.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
// If the result isn't float and unquantizable, the min/max is ignored. if (!res.getType() .cast<mlir::ShapedType>() .getElementType() .isa<mlir::FloatType>()) { return nullptr; } auto mins = tensor.quantization->min; auto maxs = tensor.quantization->max; if (mins.size() != maxs.size() || mins.empty()) return nullptr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_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), valid: []string{ ValsEqualThemselvesAndDataLiteral("self.val1", "self.val2", fmt.Sprintf("%f", math.MaxFloat64)),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0)