'Use of underscore in interger values or Number values in Tensorflow documentation
if we check below documentation https://www.tensorflow.org/recommenders/examples/basic_retrieval it uses underscore (_) in the integer values like for batch size . What does this underscore signifies is it same as decimal point.
Solution 1:[1]
The underscores are for improved readability, but do not have any deeper meaning. See this for more information. Here is an example:
import tensorflow
ds1 = tf.data.Dataset.random(seed=4).take(2_000)
print(len(list(ds1.map(lambda x: x))))
ds1 = tf.data.Dataset.random(seed=4).take(200_000)
print(len(list(ds1.map(lambda x: x))))
2000
200000
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
