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

How To Import Word2vec Into Tensorflow Seq2seq Model?

I am playing with Tensorflow sequence to sequence translation model. I was wondering if I could imp… Read more How To Import Word2vec Into Tensorflow Seq2seq Model?

Valueerror: Data Cardinality Is Ambiguous

I'm trying to train LSTM network on data taken from a DataFrame. Here's the code: x_lstm=x.… Read more Valueerror: Data Cardinality Is Ambiguous

Concatenate 3d Tensors By Cloning One Tensor?

I have two tensors: a = tf.placeholder(tf.float32, [None, 20, 100]) b = tf.placeholder(tf.float32, … Read more Concatenate 3d Tensors By Cloning One Tensor?

Tensorflow Multi Gpu Parallel Usage

I want to use 8 gpus on parallel, not sequencely. For example, when I execute this code, import ten… Read more Tensorflow Multi Gpu Parallel Usage

Valueerror: Negative Dimension Size Caused By Subtracting 2 From 1 For Maxpool1d With Input Shapes: [?,1,1,128]. Full Code,output & Error In The Post:

I have an error while making the following CNN model: features_train = np.reshape(features_train, (… Read more Valueerror: Negative Dimension Size Caused By Subtracting 2 From 1 For Maxpool1d With Input Shapes: [?,1,1,128]. Full Code,output & Error In The Post:

Cnn Loss With Multiple Outputs?

I have the following model def get_model(): epochs = 100 learning_rate = 0.1 decay_rate = learning_… Read more Cnn Loss With Multiple Outputs?

Runtimeerror: Cuda Runtime Implicit Initialization On Gpu:0 Failed. Status: All Cuda-capable Devices Are Busy Or Unavailable

Problem: when I run the following command python -c 'import tensorflow as tf; tf.test.is_gpu_av… Read more Runtimeerror: Cuda Runtime Implicit Initialization On Gpu:0 Failed. Status: All Cuda-capable Devices Are Busy Or Unavailable

Basic Function Minimisation And Variable Tracking In Tensorflow 2.0

I am trying to perform the most basic function minimisation possible in TensorFlow 2.0, exactly as … Read more Basic Function Minimisation And Variable Tracking In Tensorflow 2.0

How To Sample Batch From Only One Class At Each Iteration

I'd like to train a classifier on one ImageNet dataset (1000 classes each with around 1300 imag… Read more How To Sample Batch From Only One Class At Each Iteration

Different Outcomes When Using Tf.variable() And Tf.get_variable()

I'm trying to get familiar with TensorFlow framework from this site by playing around with Line… Read more Different Outcomes When Using Tf.variable() And Tf.get_variable()

Tensorflow : Importerror: Dll Load Failed

I am using Windows 10, Python 3.7.8 and PyCharm. First, I installed Python 3.7.8. Then I installed … Read more Tensorflow : Importerror: Dll Load Failed

How Switch Tensorflow Versions Between 2.0 And 1.x?

Is there a way to switch versions of tensorflow?, when I installed tensorflow 2.0 using conda, it u… Read more How Switch Tensorflow Versions Between 2.0 And 1.x?

Efficient Element-wise Multiplication Of A Matrix And A Vector In Tensorflow

What would be the most efficient way to multiply (element-wise) a 2D tensor (matrix): x11 x12 .. x1… Read more Efficient Element-wise Multiplication Of A Matrix And A Vector In Tensorflow

Avoiding Duplicating Graph In Tensorflow (lstm Model)

I have the following simplified code (actually, unrolled LSTM model): def func(a, b): with tf.v… Read more Avoiding Duplicating Graph In Tensorflow (lstm Model)

How To Load Trained Autoencoder Weights For Decoder?

I have a CNN 1d autoencoder which has a dense central layer. I would like to train this Autoencoder… Read more How To Load Trained Autoencoder Weights For Decoder?

How To Regularize Loss Function?

I'm learning tensorflow and I'm having some trouble understanding how to regularize the cos… Read more How To Regularize Loss Function?

How Do I Use The Accuracy Of The Previous Iteration Of Training A Neural Network As The Baseline For Early Stopping In The Following Iteration?

Like the question states, I want the baseline in my early stopping callback to equal that of the pr… Read more How Do I Use The Accuracy Of The Previous Iteration Of Training A Neural Network As The Baseline For Early Stopping In The Following Iteration?

Runtimeerror: The Session Graph Is Empty. Add Operations To The Graph Before Calling Run()

I am training a neural network with keras, and since my dataset is very large I am using fit_genera… Read more Runtimeerror: The Session Graph Is Empty. Add Operations To The Graph Before Calling Run()

Getting Typeerror: Can't Pickle _thread.rlock Objects

Read a number of similar questions, most of them mentioned that you shouldn't try to serialize … Read more Getting Typeerror: Can't Pickle _thread.rlock Objects

Keras: Over Fitting Conv2d

I'm trying to build a convolutional based model. I trained two different structures as followin… Read more Keras: Over Fitting Conv2d