Comments (4)
This is technically an invalid case (your output with TF has a size zero dimension, so it's an empty tensor). Weird that TF allows it -- but it's invalid nonetheless.
from keras.
Hi @AGFACBNNR -
I am not able to reproduce the issue in tensorflow and pytorch backend with latest versions. Attached gist for the reference with additional examples with tensorflow and pytorch backend.
from keras.
@mehtamansi29
Unfortunately, your code can not correctly reflect this issue.
To switch the backend from tensorflow to pytorch, you have to restart the kernel (to clear the import cache).
In fact your 'pytorch' result is still the tensorflow result, because TensorShape does not exist in pytorch.
@fchollet
As a front end framework supporting different DL libraries, I believe Keras should generate the same results given the same inputs. Maybe adding a checker for this kind of problem?
from keras.
@AGFACBNNR Would you be open to contributing a PR to add this check to the TF backend? Thanks!
from keras.
Related Issues (20)
- Couldn't found `keras.backend` module in keras-nightly HOT 1
- having error in executing object detection module HOT 1
- Keras 3 gives incorrect output from evaluate/fit in distributed context HOT 4
- ValueError: Only instances of keras.Layer can be added to a Sequential model. Received: <tensorflow_probability.python.layers.dense_variational_v2.DenseVariational object at 0x000001C67AF5B4D0> (of type <class 'tensorflow_probability.python.layers.dense_variational_v2.DenseVariational'>) HOT 3
- `Sequential`-model for data augmentation within `tf.data.Dataset` with JAX backend not working HOT 1
- Load a model saved using keras 2.3.1 in keras 3 (containing bidirectionnal LSTM) HOT 5
- The saved keras model cannot be loaded. HOT 6
- Conv1D on custom shaped data HOT 1
- Adding `ops.associative_scan`? HOT 2
- Cant predict after training on TPU. HOT 2
- No file or directory found at spiral_keras_model.h5 HOT 1
- Memory leak when using custom DataGenerator HOT 1
- output_padding argument in Conv1DTranspose
- Unable to export reloaded model HOT 1
- [feature request] Add KAN models HOT 1
- Sequentials `_maybe_rebuild` does not make sense
- Ops inconsistency with tensorflow for tril and triu HOT 1
- Bug in Keras 3.4.0: Loading model error 'No such file or directory: 'model.weights.h5' HOT 7
- Irregular Tensors as output from Generator class with batch size = 1 HOT 1
- keras tensorflow tf.keras.layers.Lambda issue returns AttributeError: Exception encountered when calling Lambda.call(). 'TrackedList' object has no attribute 'items' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras.