python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Tensorflow: Incompatible shapes: [1,2] vs. [1,4,4,2048]
I have the following tensorflow model:
img_width, img_height = 120, 120
dg = DataGenerator('/mnt/e/Shared/Stfc/Images', target_size=(img_height, img_width), batch_size=1)
input_tensor = tf.keras.Inp...
Ian Newson
Votes: 0
Answers: 1
Does tensorflow re-initialize weights when training in a for loop?
I'm training a model within a for loop, because...I can.
I know there are alternative like tf.Dataset API with generators to stream data from disk, but my question is on the specific case of a loop.
D...
Yoan B. M.Sc
Votes: 0
Answers: 1
ValueError: Can not squeeze dim[1], expected a dimension of 1 for '{{node binary_crossentropy/weighted_loss/Squeeze}}
I'm trying to fit a LSTM-model to my data with a Masking Layer in front and I get this error:
ValueError: Can not squeeze dim[1], expected a dimension of 1, got 4 for '{{node binary_crossentropy/weigh...

Tobias Braun
Votes: 0
Answers: 1
Precison issue with sigmoid activation function for Tensorflow/Keras 2.3.1
Assuming the following forward pass in a classic ANN
(Based on https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-example/):
Now let's use a sigmoid activation on that, I get:
So...

Greg7000
Votes: 0
Answers: 1