Home
last modified time | relevance | path

Searched refs:stop_gradient (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/python/ops/
Dgradients_impl.py367 math_ops.multiply(grad_elem, array_ops.stop_gradient(v_elem))
Dgradients_test.py360 if "a" in stop_gradients: a = array_ops.stop_gradient(a)
362 if "b" in stop_gradients: b = array_ops.stop_gradient(b)
364 if "c" in stop_gradients: c = array_ops.stop_gradient(c)
366 if "d" in stop_gradients: d = array_ops.stop_gradient(d)
480 e = array_ops.stop_gradient(c) + d
696 out = array_ops.stop_gradient(inp)
Dnn_grad.py231 return (array_ops.stop_gradient(op.inputs[0]),
673 return (array_ops.stop_gradient(op.inputs[0]),
994 math_ops.squared_difference(x, array_ops.stop_gradient(mean_x)),
Dnn_impl.py1356 math_ops.squared_difference(y, array_ops.stop_gradient(mean)),
1895 array_ops.stop_gradient(s) for s in sampled_values)
2401 labels = array_ops.stop_gradient(labels, name="labels_stop_gradient")
Dwhile_v2.py296 output_loop_vars = [array_ops.stop_gradient(t) for t in output_loop_vars]
/external/tensorflow/tensorflow/python/kernel_tests/linalg/sparse/
Dcsr_sparse_matrix_dense_mat_mul_grad_test.py38 locs = array_ops.stop_gradient(array_ops.where(math_ops.abs(dense_t) > 0))
Dcsr_sparse_matrix_grad_test.py37 locs = array_ops.stop_gradient(array_ops.where(math_ops.abs(dense_t) > 0))
Dcsr_sparse_matrix_sparse_mat_mul_grad_test.py38 locs = array_ops.stop_gradient(array_ops.where(math_ops.abs(dense_t) > 0))
/external/tensorflow/tensorflow/python/keras/layers/
Dnormalization_v2.py177 math_ops.squared_difference(y, array_ops.stop_gradient(mean)),
Dnormalization.py861 r = _broadcast(array_ops.stop_gradient(r, name='renorm_r'))
862 d = _broadcast(array_ops.stop_gradient(d, name='renorm_d'))
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_StopGradient.pbtxt47 z = x - tf.stop_gradient(tf.reduce_max(x))
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_grad_test.py183 sample_sg = array_ops.stop_gradient(sample)
/external/tensorflow/tensorflow/python/ops/linalg/sparse/
Dsparse_csr_matrix_grad.py42 grad, array_ops.stop_gradient(array_ops.where(math_ops.abs(grad) > 0)))
Dsparse_csr_matrix_ops.py345 indices = array_ops.stop_gradient(array_ops.where(value))
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dutil_test.py718 zeros_like_x_pl = (x_pl * array_ops.stop_gradient(x_pl - 1.)
719 - array_ops.stop_gradient(x_pl * (x_pl - 1.)))
793 zeros_like_x_pl = (x_pl * array_ops.stop_gradient(x_pl - 1.)
794 - array_ops.stop_gradient(x_pl * (x_pl - 1.)))
/external/tensorflow/tensorflow/python/kernel_tests/
Dcontrol_flow_ops_py_test.py3976 r = gradients_impl.gradients(array_ops.stop_gradient(rx), y)[0]
3978 r = gradients_impl.gradients(array_ops.stop_gradient(ry), y)[0]
3982 array_ops.stop_gradient(math_ops.square(rx)), y)[0]
3985 array_ops.stop_gradient(math_ops.add(rx, ry)), x)[0]
3988 array_ops.stop_gradient(math_ops.add(rx, ry)), y)[0]
3994 math_ops.add(rx, array_ops.stop_gradient(ry)), y)[0]
3997 math_ops.add(array_ops.stop_gradient(rx), ry), y)[0]
4009 y1 = array_ops.stop_gradient(math_ops.square(y))
4029 y1 = array_ops.stop_gradient(math_ops.square(y, name="stopped"))
4056 grad_theta_stopped = array_ops.stop_gradient(grad_theta)
[all …]
/external/tensorflow/tensorflow/python/ops/losses/
Dlosses_impl.py785 onehot_labels = array_ops.stop_gradient(
/external/tensorflow/tensorflow/python/ops/parallel_for/
Darray_test.py340 for op in [array_ops.identity, array_ops.stop_gradient]:
/external/tensorflow/tensorflow/python/eager/
Dbackprop_test.py608 lambda x: array_ops.stop_gradient(math_ops.argmax(x)))
616 return array_ops.stop_gradient(i)
1019 return array_ops.stop_gradient(z)
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.backend.pbtxt520 name: "stop_gradient"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.keras.backend.pbtxt528 name: "stop_gradient"
/external/tensorflow/tensorflow/python/keras/
Dbackend.py4223 def stop_gradient(variables): function
4236 return map(array_ops.stop_gradient, variables)
4237 return array_ops.stop_gradient(variables)
Dbackend_test.py256 y = backend.stop_gradient(x)
261 ys = backend.stop_gradient(xs)
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/
Dprepare-tf.mlir431 func @stop_gradient(%arg0: tensor<3xi32>) -> tensor<3xi32> {
435 // CHECK-LABEL: stop_gradient
/external/tensorflow/tensorflow/python/framework/
Dtensor_util_test.py1046 tf_val = array_ops.stop_gradient(input_)

12