Skip to main content
0 votes
0 answers
55 views

Tensorflow runs out of range during fitting: Local rendezvous is aborting with status: OUT_OF_RANGE: End of sequence

I have a dataset containing semantic vectors of length 384. I group them to windows each containing a 100. I batch them to batch sizes of 32. However, I get an error when fitting the model. I feel ...
Natan's user avatar
  • 1,085
0 votes
1 answer
53 views

Why won't tf.keras let me pass a dictionary of multiple sample weights?

I am trying to pass individual np.arrays of sample_weights for two outputs of my Keras model, one of which is a confidence measure of a binary value and one of which is a continuous output. However, I ...
Sean Cassidy's user avatar
0 votes
0 answers
8 views

Set_weights for the FedBN algorithm

Attack classification with FedBN algorithm, but normalization is causing difference in weight set. ValueError: You called `set_weights(weights)` on layer "model_1" with a weight list of ...
Ney Filho's user avatar
0 votes
0 answers
62 views

I'm having difficulty annotating the quantization of Keras's Dense layer within tfmot.quantization.keras.quantize_annotate_layer. What shall I do?

[To give context, this capstone project is an ML visual model for real-world and real time classification of wastes, based on their biodegradability. For better desirability, I chose ResNet50 as the ...
PyroShooter's user avatar
2 votes
0 answers
76 views

Warning when loading the model because of Adam optimizer

I am implementing the following multi-task model with the following layers: @tf.keras.utils.register_keras_serializable() class Bcb_block(Layer): def __init__(self, mid_chan, out_chan, data_format ...
AAA_11's user avatar
  • 73
0 votes
1 answer
66 views

gradient tape for custom loss function

I'm currently working with an autoencoder in hopes to test its accuracy vs pca. My tutor asked me to add a custom loss function that involves the derivatives of the decoder output with respect to the ...
Jonathan Jesus Calderon Rivera's user avatar
1 vote
1 answer
131 views

How to pass Input to a tensorflow backbone model without getting AttributeError: 'tuple' object has no attribute 'as_list'

I am trying to use ResNet3D from tensorflow-models library but I am getting this weird error when trying to run the block !pip install tf-models-official==2.17.0 Tensorflow version is 2.18 on the ...
Siladittya's user avatar
  • 1,205
0 votes
0 answers
55 views

Problem about training model Deep Learning

When I trained keras tensorflow model, it displayed error message: This optimizer can only be called for the variables it was originally built with. When working with a new set of variables, you ...
doantrongthai's user avatar
0 votes
1 answer
115 views

Using SavedModel format in Keras 3.5

I came up against a problem when trying to use tf.keras.models.load_model(Path_to_pb_model) to load a Savedformat model. I'm using Tensorflow 2.17.1 with Keras 3.5. Apparently Keras 3 only accepts ....
Alex 's user avatar
  • 67
1 vote
0 answers
52 views

Does keras/TF support non-time-step masking?

Masking is a very broad term which normally means ignore part of. However, the docs on masking describe it as: Masking is a way to tell sequence-processing layers that certain timesteps in an input ...
oneloop's user avatar
  • 197
0 votes
0 answers
11 views

Data Cardinality error but all x trains have the same length as y labels

Whenever I run model.fit, I get a data cardinality error. However, my x trains and y trains have the same lengths. This is the exact message: ValueError: Data cardinality is ambiguous: x sizes: 100, ...
bloohblahguy's user avatar
0 votes
0 answers
62 views

Why do I get AttributeError: module 'tensorflow.keras.backend' has no attribute 'placeholder' when using ART's KerasClassifier with TensorFlow 2.x?

I’m trying to use the Adversarial Robustness Toolbox (ART) with a simple Keras model in TensorFlow 2.x, but I’m encountering the following error: AttributeError: module 'tensorflow.keras.backend' has ...
Jonas Kufer's user avatar
0 votes
0 answers
121 views

Arguments `target` and `output` must have the same rank (ndim) with keras

import pickle import os from tf_keras.models import Sequential from tf_keras.layers import Conv2D, MaxPooling2D, Activation, Flatten, Dense from keras_tuner.tuners import RandomSearch from keras_tuner....
Fadl Ghaddar's user avatar
0 votes
0 answers
82 views

Keras newbie: Why doesn't loss decrease when fine-tuning LLaMA 3.2 3B on TPU v3-8 with Keras?

I'm trying to fine-tune Meta's LLaMA 3.2 3B Instruct model using Keras on TPU v3-8 (Kaggle). While the code runs without errors, the loss remains constant during training. Context: My wife, a history ...
Ronan L.'s user avatar
  • 136
0 votes
1 answer
90 views

How to use a Dense layer with an input that has a dynamically sized dimension?

I have a model with an input (batch of images w/ shape (height, width, time)) that has a dynamically sized dimension (time), which is only determined at runtime. However, the Dense layer requires ...
lbrandao's user avatar
  • 127

15 30 50 per page
1
2 3 4 5
148
X