Searched refs:gradients (Results 151 - 175 of 176) sorted by relevance

12345678

/external/tensorflow/tensorflow/python/keras/backend/
H A D__init__.py71 from tensorflow.python.keras._impl.keras.backend import gradients namespace
/external/tensorflow/tensorflow/python/kernel_tests/
H A Dcholesky_op_test.py248 composite_grad = gradients_impl.gradients(chol, x, grad_data)[0]
H A Ddynamic_partition_op_test.py171 # Test gradients
173 grads = gradients_impl.gradients(outputs, [data_t, partitions_t],
175 self.assertEqual(grads[1], None) # Partitions has no gradients
H A Darray_ops_test.py717 slice_val_grad, = gradients_impl.gradients(slice_val, self.var, grad_ys=dy)
718 slice_val_grad2, = gradients_impl.gradients(
735 """Test that strided slice's custom gradient produces correct gradients."""
H A Ddiag_op_test.py187 grads = gradients_impl.gradients(output, [mat, v], grad_ys=grad_input)
H A Dpooling_ops_test.py890 """Verifies the gradients of the avg pooling function.
966 """Verifies the second-order gradients of the pooling function.
1020 t_g = gradients_impl.gradients(t**2, input_tensor)[0]
/external/tensorflow/tensorflow/contrib/verbs/
H A DREADME.md23 The design is based on TensorFlow r1.0. An RDMA path is added between servers for tensor transfer (weights, gradients, etc). The existing GRPC path remains and is responsible for "administrative" tasks, such as setting up the RDMA path, exchanging computation graphs, etc.
/external/tensorflow/tensorflow/python/framework/
H A Dmeta_graph_test.py490 # Build and run the gradients of the while loop. We use this below to
491 # verify that the gradients are correct with the imported MetaGraphDef.
493 grad = gradients_impl.gradients([output], [var])
508 # Make sure we can still build gradients and get the same result.
516 grad = gradients_impl.gradients([output], [var])
H A Dops_test.py51 import tensorflow.python.ops.gradients # pylint: disable=unused-import namespace
/external/tensorflow/tensorflow/contrib/layers/python/layers/
H A Dfeature_column_ops_test.py500 gradients_impl.gradients(output, weights)[0].values)
874 grad = gradients_impl.gradients(output, weights)
880 grad_core = gradients_impl.gradients(output_core, weights_core)
1519 gradient_tensor = gradients_impl.gradients(model_input_tensor,
1524 model_input, gradients = sess.run([model_input_tensor, gradient_tensor])
1532 actual_gradient_values = np.sort(gradients[0].values, axis=None)
H A Dlayers_test.py2536 # Test that the gradients are stable while the moving_mean is updated.
2538 # gradients could diverge, this test checks that gradients remains stable
2572 [images_gradients] = gradients_impl.gradients(objective, images)
2582 # Initial input gradients.
2593 # The gradients should change slowly while updating moving_mean.
3439 g_x, = gradients_impl.gradients(y, [x], [np.array([3], np.float32)])
/external/deqp/external/vulkancts/modules/vulkan/texture/
H A DvktTextureFilteringTests.cpp327 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = local
341 tcu::fillWithComponentGradients(m_textures[0]->getLevel(levelNdx, face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias);
/external/deqp/modules/gles3/functional/
H A Des3fTextureFilteringTests.cpp479 static const tcu::Vec4 gradients[tcu::CUBEFACE_LAST][2] = local
493 tcu::fillWithComponentGradients(m_textures[0]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias);
H A Des3fVertexTextureTests.cpp906 static const Vec4 gradients[tcu::CUBEFACE_LAST][2] = local
920 tcu::fillWithComponentGradients(m_textures[0]->getRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), gradients[face][0]*cScale + cBias, gradients[face][1]*cScale + cBias);
/external/tensorflow/tensorflow/python/keras/_impl/keras/
H A Dbackend.py43 from tensorflow.python.ops import gradients as gradients_module
2803 @tf_export('keras.backend.gradients')
2804 def gradients(loss, variables): function
2805 """Returns the gradients of `variables` w.r.t. `loss`.
2812 A gradients tensor.
2814 return gradients_module.gradients(
H A Doptimizers.py98 grads = K.gradients(loss, params)
109 Should only be called after computing the gradients
/external/skia/src/shaders/
H A DSkPerlinNoiseShader.cpp123 static uint8_t gradients[] = { 2, 2, 1, 0, local
140 SkPixmap gradPixmap(info, gradients, info.minRowBytes());
244 // Compute gradients from permutated noise data
/external/skqp/src/shaders/
H A DSkPerlinNoiseShader.cpp120 static uint8_t gradients[] = { 2, 2, 1, 0, local
136 fGradientBitmap.setPixels(gradients);
239 // Compute gradients from permutated noise data
/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
H A Dcauchy_test.py216 grads = gradients_impl.gradients(value, [loc, scale])
/external/tensorflow/tensorflow/contrib/kfac/python/kernel_tests/
H A Dfisher_factors_test.py182 g = gradients_impl.gradients(y, x)[0]
/external/tensorflow/tensorflow/python/eager/
H A Dfunction.py320 are passed as arguments. Need to track so gradients are supported
323 a context when computing gradients.
376 in_gradients = gradients_impl.gradients(
/external/tensorflow/tensorflow/python/ops/
H A Dnn_batchnorm_test.py237 odx, odm, odv, odb, odg = gradients_impl.gradients(
449 # its inherited gradient tests to assert gradients against the
605 # We want to assert gradients WRT weights as well as X!
H A Dnn_grad.py42 the gradients w.r.t. the input and the filter
258 The gradients w.r.t. the input.
266 """Return the gradients for the 2 inputs of bias_op.
276 op: The BiasOp for which we need to generate gradients.
277 received_grad: Tensor. The gradients passed to the BiasOp.
297 op: BiasAddGrad op for which we are calculating gradients.
298 received_grad: The gradients passed to the BiasAddGrad op.
331 """Return the gradients for the 2 inputs of bias_op.
341 unused_bias_op: The BiasOp for which we need to generate gradients.
342 received_grad: Tensor. The gradients passe
[all...]
/external/tensorflow/tensorflow/contrib/rnn/python/kernel_tests/
H A Drnn_cell_test.py1384 outputs_grad = gradients_impl.gradients(
1386 final_state_grad = gradients_impl.gradients(
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/kernel_tests/
H A Dseq2seq_test.py905 full_grads = gradients_impl.gradients(losses[i], params)

Completed in 781 milliseconds

12345678