I am struggling to make a train_step() function work in non eager mode. The following snippet, which works in eager mode but not in non eager mode, i ...
I am struggling to make a train_step() function work in non eager mode. The following snippet, which works in eager mode but not in non eager mode, i ...
QUESTION: My training is super slow. How do I rewrite my code to make my deep learning model training faster? BACKGROUND: I have built a CNN with Ten ...
I know Rust iterator (adaptors) are "lazy" since they doesn't actually do anything until we access them. To me iterators are like some sort of telesco ...
I'm not sure if this is a Tensorflow bug or my misunderstanding about what this function is supposed to do, but I can't get tf.py_function to return a ...
I'm training a model for seq2Seq using tensorflow. correct me if I'm wrong. I understood that the tf.train.Checkpoint is used to save just the checkpo ...
I use the mirrored strategy in my Tensorflow2 code, as described in this tutorial: https://www.tensorflow.org/guide/distributed_training. I have almos ...
When I'm testing my tensorflow keras custom loss(using additional input data to calculate loss), which is as follow: I got a error massage: I fo ...
I have this tf code in graph mode (it has a training function wrapped by @tf.function) where I need to get the max value of a tensor x with type < ...
I have TensorFlow 2.6 installed with Python 3.9. However, I get the following errors: When I run tf.executing_eagerly() I get False. I reinstalled ...
I need to compute tf.Variable gradients in a class method, but use those gradients to update the variables at a later time, in a different method. I c ...
Using tensorflow 2.4.1, I'm overriding SimpleRNNCell.call in keras, found here: https://github.com/tensorflow/tensorflow/blob/85c8b2a817f95a3e979ecd1 ...
I am defining a custom layer as the last one of my network. Here I need to convert a tensor, the input one, into a numpy array to define a function on ...
I am facing a problem and I cannot seem to find the solution anywhere else, so I decided to post my question here (I have basic knowledge of tensorflo ...
I am trying to write a custom loss function in keras where I need to weight the MSE between y_true and y_pred (shape: (batch_size, 64, 64)) by the out ...
I'm doing a beginner course on TensorFlow. The version I have installed is 2.3.0. I have had problems with eager execution since the course's TensorFl ...
I am new on Python and tensorflow. I am a little (or a lot) puzzled: tf.random.normal() doesn't seem to work as expected. tf.random.normal() is used ...
I am trying to save a model using tf.function on a greedy-decoding method. The code is tested and works in eager-mode (debug) as expected. However, i ...
I am developing a custom model in Tensorflow. I am trying to implement a Virtual Adversarial Training (VAT) model from https://arxiv.org/abs/1704.0397 ...
I have been trying to use this eager few shot object detection tutorial. Instead of using the rubber ducky data, I wanted to use my custom dataset whi ...
I'm trying to boost the performance of a simple 2NN. Here is the code: Now, I wounder either there is a case to use @tf.function decorator or not, ...