- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for int8_input (0.09 sec)
-
tensorflow/c/kernels/bitcast_op_test.cc
} } TEST(BitcastOpTest, TestUpcast) { Tensor int8_input(DT_UINT8, {8}); for (int i = 0; i < 8; i++) { int8_input.vec<uint8>()(i) = static_cast<uint8>(1); } TestBitcastOp(&int8_input, DT_UINT64, TensorShape(), error::OK); } TEST(BitcastOpTest, TestDowncast) { Tensor int64_input(static_cast<uint64>(1)); TestBitcastOp(&int64_input, DT_UINT8, TensorShape({8}), error::OK); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 18 15:10:51 UTC 2022 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
return folded_results.front(); } // Calculates zero-point offset by reducing the weight and multiply it with zp. // Originally, we have: // output = (int8_input - input_zp) * (int8_weight - weight_zp) // So, offset = input_zp * int8_weight + weight_zp * int8_input // - input_zp * weight_zp. // This function calculates the `offset` value mentioned above. Note that the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0)