Comments (2)
Thanks for pointing this out. Once #23 is merged this should be fixed
using Lux, Random, Zygote
rng = Random.default_rng()
Random.seed!(rng, 0)
model = Chain(Dense(4, 5, tanh), Dense(5, 1))
ps, st = Lux.setup(rng, model) |> gpu
x = randn(ComplexF32, 4, 2) |> gpu
model(x, ps, st)
l, back = pullback(p -> model(x, p, st)[1], ps)
back(one.(l))
from lux.jl.
Excellent, thanks!
from lux.jl.
Related Issues (20)
- `BFloat16` Support
- Change defaults for Layers to match Pytorch HOT 1
- Gradient checkpointing/ rematerialization
- how to use Lux.jl utility 'BinaryCrossEntropy'
- Mixed-Precision Matrix Multiply Performance Regression HOT 28
- Lux.testmode not updating state for BatchNorm layers for nested models? HOT 2
- Add Float128 support HOT 1
- Add multiple cpu cores and multiple Julia computers support HOT 2
- `Enzyme.Forward` hits Octavian dispatch in Dense HOT 9
- Move uncommon layers to Boltz.jl
- Per-Layer Profiling
- Irregular RAM usage under large amount of epochs on gpu HOT 2
- Update the ImageNet example
- Downstream Compat Updates
- MethodError: no method matching applychain HOT 7
- Question: how can one use TrainState.cache? HOT 1
- Potential Integration with Lux
- Problem with Enzyme AD and SArray parameters HOT 1
- Is `AbstractLuxContainerLayer` abandoned in Lux 1.0.4? HOT 1
- Docs build is broken
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 lux.jl.