Home
last modified time | relevance | path

Searched refs:floatx (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/python/keras/
Dbackend_config_test.py39 floatx = 'float64'
40 keras.backend_config.set_floatx(floatx)
41 self.assertEqual(keras.backend_config.floatx(), floatx)
43 self.assertEqual(keras.backend_config.floatx(), 'float32')
Dactivations_test.py85 positive_values = np.array([[1, 2]], dtype=keras.backend.floatx())
89 negative_values = np.array([[-1, -2]], dtype=keras.backend.floatx())
163 negative_values = np.array([[-1, -2]], dtype=keras.backend.floatx())
Dbackend.py121 floatx = backend_config.floatx variable
165 return np.asarray(x, dtype=floatx())
703 dtype = floatx()
788 dtype = floatx()
882 dtype = floatx()
1080 dtype = floatx()
1115 dtype = floatx()
1148 dtype = floatx()
1245 dtype = floatx()
1283 dtype = floatx()
[all …]
Dlosses.py796 y_pred = math_ops.cast(y_pred, dtype=K.floatx())
797 y_true = math_ops.cast(y_true, dtype=K.floatx())
854 label_smoothing = ops.convert_to_tensor(label_smoothing, dtype=K.floatx())
877 label_smoothing = ops.convert_to_tensor(label_smoothing, dtype=K.floatx())
Dbackend_config.py61 def floatx(): function
Dmodels_test.py312 floatx = keras.backend.floatx()
322 keras.backend.set_floatx(floatx)
Dconstraints.py84 return w * math_ops.cast(math_ops.greater_equal(w, 0.), K.floatx())
Doptimizers.py489 t = math_ops.cast(self.iterations, K.floatx())
580 t = math_ops.cast(self.iterations, K.floatx())
660 t = math_ops.cast(self.iterations, K.floatx())
Dmetrics.py139 self._dtype = K.floatx() if dtype is None else dtypes.as_dtype(dtype).name
2696 return math_ops.cast(math_ops.equal(y_true, y_pred), K.floatx())
2711 K.floatx())
2729 return math_ops.cast(math_ops.equal(y_true, y_pred), K.floatx())
/external/tensorflow/tensorflow/python/keras/preprocessing/
Dimage.py72 dtype = backend.floatx()
99 dtype = backend.floatx()
209 dtype = backend.floatx()
278 dtype = backend.floatx()
495 dtype = backend.floatx()
/external/tensorflow/tensorflow/python/keras/layers/
Ddense_attention.py99 scores -= 1.e9 * math_ops.cast(padding_mask, dtype=K.floatx())
Dembeddings.py106 dtype = kwargs.pop('dtype', K.floatx())
Dnoise.py184 kept_idx = math_ops.cast(kept_idx, K.floatx())
Dadvanced_activations.py226 math_ops.greater(inputs, self.theta), K.floatx())
Dpooling.py640 mask = math_ops.cast(mask, backend.floatx())
Dcore.py980 dtype = dtypes.as_dtype(self.dtype or K.floatx())
/external/tensorflow/tensorflow/python/keras/engine/
Dinput_layer.py77 dtype = backend.floatx()
Dtraining_utils.py943 return math_ops.cast(x, dtype=K.floatx())
986 constant_op.constant(default_value, dtype=K.floatx()),
1445 dtype = K.floatx()
Dbase_layer_utils.py233 return array_ops.placeholder(shape=shape, dtype=backend.floatx())
Dtraining_utils_test.py50 self.assertEqual(backend.floatx(), vals[0].dtype)
Dbase_layer.py327 dtype = self.dtype or backend.floatx()
784 loss = ops.convert_to_tensor(loss, dtype=backend.floatx())
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/
Dkeras_tpu_variables.py314 dtype = backend.floatx()
/external/tensorflow/tensorflow/contrib/keras/api/keras/backend/
D__init__.py63 from tensorflow.python.keras.backend import floatx
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.backend.pbtxt180 name: "floatx"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.keras.backend.pbtxt180 name: "floatx"

12