We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to follow the mixed precision tutorial when using a custom training loop, specifically
@tf.function def train_step(x, y): with tf.GradientTape() as tape: predictions = model(x) loss = loss_object(y, predictions) scaled_loss = optimizer.get_scaled_loss(loss) scaled_gradients = tape.gradient(scaled_loss, model.trainable_variables) gradients = optimizer.get_unscaled_gradients(scaled_gradients) optimizer.apply_gradients(zip(gradients, model.trainable_variables)) return loss
When trying to invoke, get_scaled_loss and get_unscaled_gradients an exception is thrown that those methods are undefined.
get_scaled_loss
get_unscaled_gradients
Maybe this is related to #19244
The text was updated successfully, but these errors were encountered:
mehtamansi29
No branches or pull requests
I am trying to follow the mixed precision tutorial when using a custom training loop, specifically
When trying to invoke,
get_scaled_loss
andget_unscaled_gradients
an exception is thrown that those methods are undefined.Maybe this is related to #19244
The text was updated successfully, but these errors were encountered: