- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for numBits (0.15 sec)
-
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
min = fakequant_op.getODSOperands(1); max = fakequant_op.getODSOperands(2); { auto target_attr = op->getAttrOfType<IntegerAttr>("num_bits"); if (!target_attr) target_attr = rewriter.getIntegerAttr(rewriter.getIntegerType(64), 8); num_bits = target_attr; } { auto target_attr = op->getAttrOfType<BoolAttr>("narrow_range");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py
weight = array_ops.fake_quant_with_min_max_args( weight, min=-0.1, max=0.2, num_bits=8, narrow_range=False ) # shape: (2, 2) output_tensor = math_ops.matmul(matmul_input, weight) # Insert fake quant to simulate a QAT model. output_tensor = array_ops.fake_quant_with_min_max_args( output_tensor, min=-0.2, max=0.2, num_bits=8, narrow_range=False )
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 51.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir
%7 = "tf.FakeQuantWithMinMaxVarsPerChannel"(%arg1, %arg2, %arg3) {device = "", narrow_range = false, num_bits = 8 : i64} : (tensor<*xf32>, tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32> "tfl.yield"(%7) : (tensor<*xf32>) -> () }) {device = "", narrow_range = false, num_bits = 8 : i64} : (tensor<3x4xf32>, tensor<4xf32>, tensor<4xf32>) -> tensor<3x4xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 07:26:59 UTC 2024 - 59.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
auto element_ty = input_ty.getElementType(); auto scalar_ty = tensorflow::GetTypeFromTFTensorShape({}, element_ty); auto num_bits = op.getNumBits(); auto narrow_range = op.getNarrowRange(); const double bits_min = narrow_range ? 1 : 0; const double bits_max = (1 << num_bits) - 1; auto float_min = op.getMin(); auto float_max = op.getMax();
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/tensorflow/tests/lower_tf.mlir
// CHECK-DAG: [[VAL10:%.+]] = "tf.Mul"([[VAL9]], [[VAL3]]) // CHECK-DAG: [[VAL11:%.+]] = "tf.AddV2"([[VAL10]], [[VAL2]]) %0 = "tf.FakeQuantWithMinMaxArgs"(%arg0) {max = 1.0 : f32, min = -1.0 : f32, narrow_range = false, num_bits = 8 : i64} : (tensor<?x?xf32>) -> tensor<?x?xf32> // CHECK: return [[VAL11]] func.return %0 : tensor<?x?xf32> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 18:35:42 UTC 2024 - 92K bytes - Viewed (0)