python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Tensorflow Gradient Tape returns null
I'm trying to compute gradients using Gradient Tape in tensorflow.
Description -
A - tf.constant
X - tf.Variable
Y - tf.Variable
Functions
get_regularization_loss - computes the L1/L2 penalty
c...
kaiser
Votes: 0
Answers: 1
Transformer tutorial with tensorflow: GradientTape outside the with statment but still working
Applying the tensorflow tutorial on how to implement a transformer model I had some doubts on the training process.
The train_step function is implemented as following :
@tf.function(input_signature=t...
Adrien Senecal
Votes: 0
Answers: 0
How can I calculate gradients of each element in a tensor using GradientTape?
I would like to calculate the gradient of each element in a tensor with respect to a list of watched tensors.
When I use GradientTape's gradient() on y directly, the resulting dy_dx has the dimension ...
Morten Grum
Votes: 0
Answers: 1
Trying to learn deep kernel with tensorflow, getting 'ValueError: No gradients provided for any variable' error
Hi stack overflow community,
I am fairly new to tensorflow and programming, hence there may be obvious errors I just overlook.
My dev environment consists of vs code running in a tensorflow docker con...
NIG-ITPS
Votes: 0
Answers: 0