Category : tensorflow

I am trying to write my own data generator for a TensorFlow model and at this stage, I am only testing import numpy as np class OrderGenaratorForTransfomer(Sequence): n_products = 1000 n_windows = 10 n_customers = 10 def __init__( self ): pass def __getitem__(self, item): X = np.zeros((self.n_customers, self.n_windows, self.n_products)) Y = np.zeros((self.n_customers, 1, self.n_products)) return ..

Read more

I’m designing a CNN for mnist dataset. Then it returns an error ValueError: Negative dimension size caused by subtracting 3 from 2 for ‘{{node conv2d_23/Conv2D}} = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], explicit_paddings=[], padding="VALID", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true](batch_normalization_19/cond/Identity, conv2d_23/Conv2D/ReadVariableOp)’ with input shapes: [?,2,2,12], [3,3,12,12]. I tried to change padding = ‘valid’ to padding = ..

Read more

I want to install tensorflow (and Keras too) for R. I used thoses lines install.packages("keras") install.packages("tensorflow") library(keras) library(tensorflow) And now I want to do : install_tensorflow() install_keras() But my python environement is inconsistent. Is there a way to told R to look for virtual python environnement ? Thanks Source: Python..

Read more

I have updated my tensorflow version by using pip command in command prompt: pip -upgrade tensorflow now I am getting this error while running my CNN model in Pycharm: ImportError: DLL load failed: The specified module could not be found. Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors my python version = Python 3.7.0 ..

Read more

I am facing this issue while training the model. Everything seems fine but I cannot understand the problem. This is the error I am facing: InvalidArgumentError: Matrix size-incompatible: In[0]: [32,29], In[1]: [128,1] [[node gradient_tape/sequential_11/dense_23/MatMul (defined at <ipython-input-89-9b0f878131ef>:2) ]] [Op:__inference_train_function_10031] Function call stack: train_function Here is the model summary: Model: "sequential_11" _________________________________________________________________ Layer (type) Output Shape ..

Read more