TensorFlow

API

 tf.keras / backend / backend.separable_conv2d


Sets the default float type.

Used in the notebooks

Used in the tutorials

value String; 'float16', 'float32', or 'float64'.

Example:

tf.keras.backend.floatx()
'float32'
tf.keras.backend.set_floatx('float64')
tf.keras.backend.floatx()
'float64'
tf.keras.backend.set_floatx('float32')

ValueError In case of invalid value.

此页内容是否对您有帮助