- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for isF16 (0.99 sec)
-
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
format_converter.DenseToSparse(data.data()); sparsity = GetSparsity(type.getNumElements() - format_converter.GetData().size(), type.getNumElements()); } else if (type.getElementType().isF16()) { tflite::internal::sparsity::FormatConverter<Eigen::half> format_converter( shape, traversal_order, format, b_size, b_map); std::vector<Eigen::half> data; data.reserve(type.getNumElements());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
switch (elem_type.getIntOrFloatBitWidth()) { case 16: { assert(bytes_len % 2 == 0); // Supports both BF16 and F16. assert(elem_type.isF16() || elem_type.isBF16()); int elem_count = bytes_len / 2; if (elem_type.isF16()) { std::vector<Eigen::half> values; values.reserve(elem_count); const char* data = reinterpret_cast<const char*>(buffer.data());
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/quantization/stablehlo/passes/quantize_weight.cc
const ShapedType new_result_type = mlir::dyn_cast<ShapedType>(convert_op.getType()); // Proceeds only if the converting is to float16. if (!new_result_type.getElementType().isF16()) continue; // Convert values. std::vector<Eigen::half> new_values; const DenseFPElementsAttr value_attr = mlir::cast<DenseFPElementsAttr>(op.getValue());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc
} bool IsCompatibleTypeWithTFLCastOp(Type type) { auto elemType = getElementTypeOrSelf(type); // F16, F32, F64, BF16 types are allowed. if (elemType.isBF16() || elemType.isF16() || elemType.isF32() || elemType.isF64()) return true; // I1, I4, I8, I16, I32, I64 types are allowed. if (elemType.isInteger(1) || elemType.isInteger(4) || elemType.isInteger(8) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 11:51:44 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
Type elem_type = getElementTypeOrSelf(type); // Xla's all_reduce legalizer bitcasts to 32 bits, so only // element types size <= 4 bytes are supported. if (elem_type.isBF16() || elem_type.isF16() || elem_type.isTF32() || elem_type.isF32()) { zero = builder.getFloatAttr(elem_type, 0); } else { return false; } if (auto ranked_type = dyn_cast<RankedTensorType>(type)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
ShapedType new_result_type = mlir::dyn_cast<ShapedType>(cast_op.getType()); // Proceeds only if the casting is to float16 if (!new_result_type.getElementType().isF16()) continue; // Cast values std::vector<Eigen::half> new_values; DenseFPElementsAttr value_attr = mlir::cast<DenseFPElementsAttr>(op.getValue());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
src/unicode/letter.go
) // linearMax is the maximum size table for linear search for non-Latin1 rune. // Derived by running 'go test -calibrate'. const linearMax = 18 // is16 reports whether r is in the sorted slice of 16-bit ranges. func is16(ranges []Range16, r uint16) bool { if len(ranges) <= linearMax || r <= MaxLatin1 { for i := range ranges { range_ := &ranges[i] if r < range_.Lo { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 20:02:46 UTC 2023 - 10K bytes - Viewed (0)