Comments (4)
@chenmoneygithub has also hit this issue, so figured this was worth tracking down.
We have both encountered this on ubuntu 22.04. Possibly this is os specific.
from keras-core.
This comes from the fact that:
- Importing torch triggers the issue when TF is imported
- pip build will try to import every file in the codebase, hence the torch import
- When torch backend is on, we import torch first, which fixes it
- Yes this is env specific
You could fix it by importing torch at the top of pip build script I bet.
from keras-core.
If that doesn't work let's set the KERAS_BACKEND env variable to torch at the start of the script.
from keras-core.
Fix works for me! Closing this.
from keras-core.
Related Issues (20)
- Problem with `run_output_asserts` . Bug? HOT 1
- tflite cannot fuse `BatchNormalization` in Keras Core as effectively as in the original Keras
- Improve Documentation on KERAS_BACKEND HOT 5
- How can we use `ops.reshape` when the `new_shape` is obtained from `ops.shape`? HOT 3
- GSOC Program Organization ( question ) HOT 1
- Constant Initializer supports only Scalar values HOT 1
- Add support for RaggedTensors to JAX and Pytorch Backend HOT 1
- Saving broken between tf.keras and Keras Core HOT 9
- Ensure workflow reliability by hash-pinning GitHub Actions HOT 1
- Run actions.yml with read-only permissions
- Segmentation metrics HOT 3
- Use of PyTorch loss functions inside Keras
- Is possible serialize models which use torch functions? HOT 5
- Expose `Operation` without `src` import hacks HOT 1
- v0.1.6 bug: AttributeError: 'GPT2CausalLM' object has no attribute 'compiled' HOT 2
- Adam with amsgrad=True + JAX backend is broken HOT 1
- Inconsistent type handling between backends HOT 1
- Matmul - tensorflow does not broadcast/expand dimensions correctly HOT 3
- Casting dtype in losses.Loss base class HOT 2
- TypeError: copy() got an unexpected keyword argument 'overwrite' HOT 2
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-core.