Comments (2)
I'm unsure I understand the concept of mixed partial derivatives, but it would be nice if burn could satisfy your use case.
The Gradients
struct provides a way of getting partial derivates, though the API might be improved. From the concrete type in burn-autodiff
you can do something like this:
fn run<B: Backend>() {
let a = ADTensor::<B, 2>::random(...);
let b = ADTensor::<B, 2>::random(...);
let y = some_function(&a, &b);
let grads = y.backward();
let grad_a = grads.wrt(&a); // d some_function / da
let grad_b = grads.wrt(&b); // d some_function / db
}
from burn.
I am closing this because for now we do not have more information and specifics about the feature request. Please feel to reopen if more information is provided.
from burn.
Related Issues (20)
- Rotary Positional Encodings HOT 1
- The Burn book using outdated api? HOT 7
- Update the book to implement Clone for MnistBatcher in example code. HOT 1
- Refactoring the tensor operation codebase: improving navigation and testing
- How to do distributed training with for example NCCL
- Please consider adding MIG (MI-rror with G-radient modification) HOT 1
- Provide a method to chunk the weights before importing using PyTorchFileRecorder HOT 5
- Incorrect implementation of Transpose ONNX operation HOT 1
- Support for unsqueeze ONNX opset 1
- [ndarray] General matmul broadcasting bug HOT 3
- Flaky test: subsequent_calls_give_different_tensors HOT 2
- The `burn load_record` operation seems to have damaged the structure of the model. HOT 12
- If the batch size is 1, testing LSTM on the Wgpu backend will fail HOT 3
- Add benchmark for Ndarray backend with Mac accelerate feature enabled
- CubeCL: Compute Language Extension in Rust for Multi-target GPU kernels
- performance regression in training FSRS
- Failed to run llama2-burn on webgpu HOT 1
- redirection link in the "Importing Models" HOT 3
- Support forward without a batch dimension HOT 1
- traditional machine learning model 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 burn.