I'm learning and working with Keras on an image classification project. The runtime environment is Google Colab and I recently got this error: The ...

Keras Image Classification - 'logits and labels must have the same first dimension' error

I'm learning and working with Keras on an image classification project. The runtime environment is Google Colab and I recently got this error: The ...

Tensorflow simple cumulative sum of product RNN cell

. Answers to this question are eligible for a +50 reputation bounty. ...

clipnorm vs clipvalue vs global_clipnorm in tf.keras.optimizers.Adam

. Answers to this question are eligible for a +50 reputation bounty. ...

Fastapi server not starting after importing tensorflow

I want to deploy a tensorflow model to fastapi server but anytime i import tensorflow the server does not start I installed tensorflow via pip3 insta ...

Unable to capture pattern in a Neural network

I am trying to train a neural network for learning purposes using tesorflow.keras the network should take in a row vector of size 100. the row vector ...

Colab tflite-model-maker cant install

I am trying to install tflite-model-maker on colab but if i try this !pip install -q tflite-model-maker installing is taking so much time and disk wil ...

TensorFlow dataset with multi-dimensional Tensors from a CSV file

Is there a way, and if yes, what it is, to load a TensorFlow dataset with multi-dimensional feature Tensor from a CSV (or other format input) file? F ...

Tensorflow not detecting my gpu even with all requisite files installed

I had tensorflow gpu 2.10 installed and it was working well. I mistakenly decided to upgrade to 2.11 without knowing it doesnt support gpu in windows. ...

How to use inputs in custom loss function with y_true and y_pred available

I have built an autoencoder in tensorflow which takes an input with missing values (-999.) which are then masked. The target/label is the clean versio ...

DLL load failed while importing _pywrap_quantize_training

Hi developers and programmers, I'm try to import keras module and it show error, please help, Thank you. code error I have try to reinstall ker ...

Can tf.gradienttape() calculate gradient of other library's function

If I include inside the tf.GradientTape() some functions from other Python libraries, like `sklearn.decomposition.PCA.inverse_transform()', can Tensor ...

Tensorflow Dividing a [X, 10, 10, 1] matrix by [X, 1]

I'm trying to divide a [X, 10, 10, 1] matrix by the sum of each [10, 10, 1] matrix - so dividing [X, 10, 10, 1] by [X, 1] however using tf.broadcast_t ...

Keras model predicts different results using the same input

I built a Keras sequential model on the simple dataset. I am able to train the model, however every time I try to get a prediction on the same input I ...

Keep the batch dimension of Conv1D Variable

None in TensorFlow/keras refers to variable dimension. I would like to build a Conv1D layer where the dimension of the batch is variable as (None, 4, ...

TypeError: unsupported operand type(s) for /: 'BatchDataset' and 'float'

I'm trying to divide 'train' by 255 to normalize, but i get the following error: " TypeError: unsupported operand type(s) for /: 'BatchDataset' and ' ...

Efficient way to create a "rolling window" type grouping in TensorFlow

Imagine you have an n-dimensional tensor where one of those dimensions corresponds to time. What I'd like to do is: given some integer window_size, I ...

How to resolve ValueError: Graph disconnected: cannot obtain value for tensor KerasTensor

I am trying to get the embedding for a siamese network written in keras and I keep having the issue below. Does anyone know how to solve this issue? ...

np.array for variable matrix

It has this error. May I know how to fix it, please? I mean do not change the elements in the data. Many thanks. I made the matrix in the same ...

How to output an array as actions in a Deep Reinforcement Learning Model?

I am currently working on a custom multiagent DQN environment and my action_space is a list, for example [2,4,3,2,1]. Where actionlist[0] is the acti ...

What can I do to help make my TensorFlow network overfit a large dataset?

The reason I am trying to overfit specifically, is because I am following the "Deep Learning with Python" by François Chollet's steps to designing a n ...

Sorted:

Quality: