All Questions
1,978 questions
0
votes
0
answers
35
views
InvalidArgumentError with tf.data.Dataset.from_generator() at random points during training
I want to use a python generator with a tf Dataset to extract and preprocess sequences from a (rather large) numpy array, but I keep getting this error at random points during the first epoch of ...
0
votes
0
answers
30
views
InaccessibleTensorError when using multiple TensorArrays in a list
I am implementing a fairly complex network structure where I need to loop over a (possibly variable) time dimension, compute values at each step, and collect all these values, and do this for multiple ...
2
votes
1
answer
43
views
Tensorflow Probability MixtureNormal layer example not working as in example
Tensorflow version is 2.17.1
Tensoflow probability version is 0.24.0
Example from the documentation https://www.tensorflow.org/probability/api_docs/python/tfp/layers/MixtureNormal?hl=en is the ...
0
votes
0
answers
14
views
Unequal width and height of stride in tf.nn.depthwise_conv2d not supported?
Is that right?
IF YES, how can I convert the pretrained weights trained with unequal strides to tensorflow dw-conv with some other ops?
THX
1
vote
2
answers
73
views
tensorflow.keras only runs correctly once
I am using tensorflow.keras in a jupyter notebook to produce a neural network to match some real world data. The first time I run my code, it works correctly. The neural network gives a model to match ...
1
vote
0
answers
36
views
ImageDataGenerator sending array of image, instead of file path in preprocessing function
I am trying to implement a Deep learning project in python, that
takes Image as input
detects one human
tells the color of cloths, that human wearing.
I have a folder which have all training images ...
1
vote
1
answer
58
views
what kind of data is written to events.out.tfevents.1730092600.jolteon.215490.0.v2 from keras.callbacks.tensboard callbacks
Would like to know what kind of information is available and in what format is the file events.out.tfevents.1730092600.jolteon.215490.0.v2 written in.
This file is generated by :
tensorboard_callback =...
0
votes
0
answers
44
views
TensorFlow InvalidArgumentError: Concatenation dimension mismatch in ConcatOp - Shapes do not match
I keep getting this error:
---------------------------------------------------------------------------
InvalidArgumentError Traceback (most recent call last)
<ipython-input-50-...
0
votes
0
answers
39
views
Having issue with calculating SINR using TensorFlow, how numerically stable is TF when it comes to complex numbers?
I have code for training a neural network and the loss is negative SINR, for a system with multi group (G) and multi users (K). However when I calculate the sinr, something odd happens.
the SINR ...
0
votes
1
answer
46
views
How To Choose Values From Tensor Using Another Tensor In Tensorflow
I have 2 arrays (Tensors) with the same shape such as:
array1 = [[[0, 1, 0], [1, 0, 0]], [[0, 1, 0], [0, 0, 1]]]
array2 = [[[0.2, 0.7, 0.1], [0.2, 0.4, 0.4]], [[0.2, 0.8, 0.0], [0.5, 0.2, 0.3]]]
I ...
0
votes
0
answers
79
views
ValueError: Invalid dtype: complex64 when using get_melspectrogram_layer in Kapre
I'm trying to use the get_melspectrogram_layer from the Kapre library in a Keras model. However, I'm encountering the following error:
ValueError: Exception encountered when calling STFT.call().
...
-1
votes
1
answer
1k
views
Tensorflow is not detecting my gpu even though i installed CUDA and CudNn
I've tried to install TensorFlow on my machine so I can perform Ai model training. I've installed the CUDA and cuDnn models following this tutorial but even then when I tried running
import tensorflow ...
0
votes
0
answers
39
views
Efficiently finetune a VGG model in Colab
I am trying to fine-tune a VGG16 model for an ECG-image classification task with the resolution of 1700 * 2200
I haven't reshaped and reduced the size of the images because I thought some ...
0
votes
0
answers
22
views
Large Accuracy Difference Between TensorFlow Sequential and Subclassing API for CNN Model?
I've been working on a CNN model using both the Sequential API and the Subclassing API in TensorFlow. However, I'm seeing a significant difference in accuracy between the two implementations on the ...
0
votes
0
answers
20
views
Why are my tensorflow gradients None when using tf.python.ops.gradients?
I am struggling with tensorflow gradients. I am using a custom second order optimizer where I need to compute hessians. The library I have chosen uses tf.python.ops.gradients instead of the standard ...