Skip to content Skip to sidebar Skip to footer
Showing posts with the label Tensorflow

Is There An Issue Using Tf.keras.utils.multi_gpu_model With A Model Class Api?

I am trying to train a convolutional autoencoder using tensorflow.keras. Here, I have a Model Class… Read more Is There An Issue Using Tf.keras.utils.multi_gpu_model With A Model Class Api?

Vectorized Creation Of An Array Of Diagonal Square Arrays From A Liner Array In Numpy Or Tensorflow

I have an array of shape [batch_size, N], for example: [[1 2] [3 4] [5 6]] and I need to crea… Read more Vectorized Creation Of An Array Of Diagonal Square Arrays From A Liner Array In Numpy Or Tensorflow

How Can I Implement This Custom Loss Function In Tensorflow?

My loss function: I want to implement the above loss function for the following model: model_s=tf.… Read more How Can I Implement This Custom Loss Function In Tensorflow?

Runtimeerror: Mat1 Dim 1 Must Match Mat2 Dim 0 With Addition Of Data Augmentation

I am getting this error in the training loop. The model was training fine before I added an augment… Read more Runtimeerror: Mat1 Dim 1 Must Match Mat2 Dim 0 With Addition Of Data Augmentation

How To Train A Regression Model For Single Input And Multiple Output?

I have trained a regression model that approximates the weights for the equation : Y = R+B+G For th… Read more How To Train A Regression Model For Single Input And Multiple Output?

Tf.print() Vs Python Print Vs Tensor.eval()

It seems that in Tensorflow, there are at least three methods to print out the value of a tensor. I… Read more Tf.print() Vs Python Print Vs Tensor.eval()

Load Tensorflow Savedmodel In Rstudio Trained In Google Cloud Ml

I trained a model in Google Cloud ML and saved it as a saved model format. I've attached the di… Read more Load Tensorflow Savedmodel In Rstudio Trained In Google Cloud Ml

Tensorflow Compat Modules Issues?

Getting the following error when working through the ipython notebooks on Google's tensorflow u… Read more Tensorflow Compat Modules Issues?

Tensorflow Function To Check Whether A Value Is In Given Range?

I know there is tf.greater(x,y) which will return true if x > y (element-wise). Is there a funct… Read more Tensorflow Function To Check Whether A Value Is In Given Range?

Creating Models In A Loop Makes Keras Increasingly Slower

when I train a model multiple times, the training iterations slow down, even if all the relevant qu… Read more Creating Models In A Loop Makes Keras Increasingly Slower

Swap A Tensorflow Dataset Input Pipeline With A Placeholder After Training

I'm working with the new tf.data.Dataset API and I can't seem to figure out how to perform … Read more Swap A Tensorflow Dataset Input Pipeline With A Placeholder After Training

How To Handle Different Queue Batch Size And Feed Value Batch Size In Tensorflow?

My code used to work on tensorflow 0.6, but it no longer works on the lastest tensorflow. I would l… Read more How To Handle Different Queue Batch Size And Feed Value Batch Size In Tensorflow?

How To Restore Tensorflow V1.1.0 Saved Model In V1.13.1

I'm trying to restore the pretrained model provided here and continue training on a different d… Read more How To Restore Tensorflow V1.1.0 Saved Model In V1.13.1

Valueerror: Operation 'cond_25/shape' Has Been Marked As Not Fetchable

The above error occurs when I try to do the following: se = tf.Session() cont = tf.constant([[1., 2… Read more Valueerror: Operation 'cond_25/shape' Has Been Marked As Not Fetchable

How To Convert Rgb Images To Grayscale, Expand Dimensions Of That Grayscale Image To Use In Inceptionv3?

I'm training a Keras model and I have training images in RGB format. I want to train my model b… Read more How To Convert Rgb Images To Grayscale, Expand Dimensions Of That Grayscale Image To Use In Inceptionv3?

Typeerror: ('keyword Argument Not Understood:', 'init') In Classifier.add

I am just having the following error in the input layer. I do have input data of 4 and the output o… Read more Typeerror: ('keyword Argument Not Understood:', 'init') In Classifier.add

How To Delete Tensorflow Model Before Retraining

I can't retrain my image classifier with new images, I get the following error: AssertionError:… Read more How To Delete Tensorflow Model Before Retraining

Where Does The Additional Dimension Of The Input In A Keras.model Come From?

When I define a model like: import tensorflow as tf from tensorflow.keras import layers import nump… Read more Where Does The Additional Dimension Of The Input In A Keras.model Come From?

Cudnn Launch Failure (tensorflow-gpu/cuda)

Traceback (most recent call last): File '/home/alex/anaconda3/envs/tensorflow/lib/python3.6/s… Read more Cudnn Launch Failure (tensorflow-gpu/cuda)

How Can I Implement A Weighted Cross Entropy Loss In Tensorflow Using Sparse_softmax_cross_entropy_with_logits

I am starting to use tensorflow (coming from Caffe), and I am using the loss sparse_softmax_cross_e… Read more How Can I Implement A Weighted Cross Entropy Loss In Tensorflow Using Sparse_softmax_cross_entropy_with_logits