- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for max_range (0.19 sec)
-
tensorflow/compiler/mlir/tensorflow/tests/lower_quantized.mlir
%0 = "tf.Dequantize"(%arg0, %min_range, %max_range) : (tensor<2x3x!tf_type.qint8>, tensor<f32>, tensor<f32>) -> tensor<2x3xf32> // CHECK-DAG: return %[[RESULT]] func.return %0 : tensor<2x3xf32> } // CHECK-LABEL: dequantize_quint8 func.func @dequantize_quint8(%arg0: tensor<2x3x!tf_type.quint8>, %min_range: tensor<f32>, %max_range: tensor<f32>) -> tensor<2x3xf32> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/legalize_tf_quant_test.cc
func.func @main(%arg0: tensor<1x!tf_type.qint8>) -> tensor<1xf32> { %min_range = "tf.Const"() { value = dense<1.0> : tensor<f32> } : () -> tensor<f32> %max_range = "tf.Const"() { value = dense<5.0> : tensor<f32> } : () -> tensor<f32> %0 = "tf.Dequantize"(%arg0, %min_range, %max_range) : (tensor<1x!tf_type.qint8>, tensor<f32>, tensor<f32>) -> tensor<1xf32> func.return %0 : tensor<1xf32> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 18:43:55 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td
(TF_ConstOp (DequantizeHalfRange $input))), (TF_DivOp (TF_SubOp $max_range, $min_range), (TF_ConstOp (GetF32Scalar<255>)))), $min_range), /*truncate=*/ConstBoolAttrFalse), [(TensorOf<[TF_Qint8, TF_Quint8]> $input), (TF_Float32Tensor $min_range), (TF_Float32Tensor $max_range), (TensorOf<[TF_Float32, TF_Bfloat16]> $result)]>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 24.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td
min_range = min_T / scale_factor; max_range = max_T / scale_factor; ``` e.g. if T = qint8, and initially min_range = -10, and max_range = 9, we would compare -128/-10.0 = 12.8 to 127/9.0 = 14.11, and set scaling_factor = 12.8 In this case, min_range would remain -10, but max_range would be adjusted to 127 / 12.8 = 9.921875 So we will quantize input values in the range (-10, 9.921875) to (-128, 127).
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 793K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.h
inline std::vector<bool> GetVector(DenseElementsAttr elements) { auto type = elements.getType(); auto elemType = type.getElementType(); if (elemType.isSignlessInteger(1)) { auto vec = llvm::to_vector( llvm::map_range(elements.getValues<bool>(), [&](bool value) -> uint8_t { return value ? 1 : 0; })); return std::vector<bool>(vec.begin(), vec.end()); } return std::vector<bool>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dynamic_shape_utils.cc
llvm::SmallVector<int64_t> ConvertTFShapeToMlir( llvm::ArrayRef<int64_t> shapes) { return llvm::to_vector(llvm::map_range(shapes, [](int64_t shape) { return shape == kTFDynamicSize ? mlir::ShapedType::kDynamic : shape; })); } llvm::SmallVector<int64_t> ConvertMlirShapeToTF( llvm::ArrayRef<int64_t> shapes) { return llvm::to_vector(llvm::map_range(shapes, [](int64_t shape) { return mlir::ShapedType::isDynamic(shape) ? kTFDynamicSize : shape;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Nov 21 16:21:18 UTC 2022 - 1.6K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
class ExpiringLRUCache { public: /// A `max_age` of 0 means that nothing is cached. A `max_entries` of 0 means /// that there is no limit on the number of entries in the cache (however, if /// `max_age` is also 0, the cache will not be populated). ExpiringLRUCache(uint64_t max_age, size_t max_entries, std::function<uint64_t()> timer_seconds = TF_NowSeconds) : max_age_(max_age), max_entries_(max_entries),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 09 19:31:22 UTC 2020 - 6.3K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/types/renderers/KtFlexibleTypeRenderer.kt
public fun renderType( analysisSession: KaSession, type: KaFlexibleType, typeRenderer: KaTypeRenderer, printer: PrettyPrinter, ) public object AS_RANGE : KaFlexibleTypeRenderer { override fun renderType( analysisSession: KaSession, type: KaFlexibleType, typeRenderer: KaTypeRenderer, printer: PrettyPrinter,
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 08:26:19 UTC 2024 - 4.9K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
env->SetNowSeconds(6); EXPECT_FALSE(cache.Lookup(key, &value)); } TEST(ExpiringLRUCacheTest, MaxEntries) { // max_age of 0 means nothing will be cached. tf_gcs_filesystem::ExpiringLRUCache<int> cache1(0, 4); cache1.Insert("a", 1); int value = 0; EXPECT_FALSE(cache1.Lookup("a", &value)); // Now set max_age = 1 and verify the LRU eviction logic. tf_gcs_filesystem::ExpiringLRUCache<int> cache2(1, 4); cache2.Insert("a", 1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 09 19:31:22 UTC 2020 - 7.1K bytes - Viewed (0) -
src/reflect/iter.go
case String: return func(yield func(Value) bool) { for i := range v.String() { if !yield(ValueOf(i)) { return } } } case Map: return func(yield func(Value) bool) { i := v.MapRange() for i.Next() { if !yield(i.Key()) { return } } } case Chan: return func(yield func(Value) bool) { for value, ok := v.Recv(); ok; value, ok = v.Recv() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 13:40:11 UTC 2024 - 3.9K bytes - Viewed (0)