We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ab580 commit e4263cdCopy full SHA for e4263cd
tensorflow_compression/python/entropy_models/continuous_base.py
@@ -80,6 +80,8 @@ def __init__(self,
80
self._tail_mass = float(tail_mass)
81
if bottleneck_dtype is None:
82
bottleneck_dtype = tf.keras.mixed_precision.global_policy().compute_dtype
83
+ if bottleneck_dtype is None:
84
+ bottleneck_dtype = tf.keras.backend.floatx()
85
self._bottleneck_dtype = tf.as_dtype(bottleneck_dtype)
86
self._laplace_tail_mass = float(laplace_tail_mass)
87
0 commit comments