wangold / Manim-readme-4.sh
0 likes
0 forks
1 files
Last active
1 | brew install ffmpeg mactex |
wangold / Manim-readme-3.sh
0 likes
0 forks
1 files
Last active
1 | git clone https://github.com/3b1b/manim.git |
2 | cd manim |
3 | pip install -e . |
4 | manimgl example_scenes.py OpeningManimExample |
wangold / Manim-readme-2.sh
0 likes
0 forks
1 files
Last active
1 | # Install manimgl |
2 | pip install -e . |
3 | |
4 | # Try it out |
5 | manimgl example_scenes.py OpeningManimExample |
6 | # or |
7 | manim-render example_scenes.py OpeningManimExample |
wangold / Manim-readme-1.sh
0 likes
0 forks
1 files
Last active
1 | # Install manimgl |
2 | pip install manimgl |
3 | |
4 | # Try it out |
5 | manimgl |
knox / Burn-readme-5.toml
0 likes
0 forks
1 files
Last active
1 | features = [..., "record-backward-compat"] |
knox / Burn-readme-4.rs
0 likes
0 forks
1 files
Last active
1 | use burn::nn; |
2 | use burn::module::Module; |
3 | use burn::tensor::backend::Backend; |
4 | |
5 | #[derive(Module, Debug)] |
6 | pub struct PositionWiseFeedForward<B: Backend> { |
7 | linear_inner: nn::Linear<B>, |
8 | linear_outer: nn::Linear<B>, |
9 | dropout: nn::Dropout, |
10 | gelu: nn::Gelu, |
knox / Burn-readme-3.rs
0 likes
0 forks
1 files
Last active
1 | use burn::backend::{Autodiff, Fusion, Wgpu}; |
2 | use burn::tensor::{Distribution, Tensor}; |
3 | |
4 | fn main() { |
5 | type Backend = Autodiff<Fusion<Wgpu>>; |
6 | |
7 | let x: Tensor<Backend, 2> = Tensor::random([32, 32], Distribution::Default); |
8 | let y: Tensor<Backend, 2> = Tensor::random([32, 32], Distribution::Default).require_grad(); |
9 | |
10 | let tmp = x.clone() + y.clone(); |
knox / Burn-readme-2.rs
0 likes
0 forks
1 files
Last active
1 | use burn::backend::{Autodiff, Wgpu}; |
2 | use burn::tensor::{Distribution, Tensor}; |
3 | |
4 | fn main() { |
5 | type Backend = Autodiff<Wgpu>; |
6 | |
7 | let x: Tensor<Backend, 2> = Tensor::random([32, 32], Distribution::Default); |
8 | let y: Tensor<Backend, 2> = Tensor::random([32, 32], Distribution::Default).require_grad(); |
9 | |
10 | let tmp = x.clone() + y.clone(); |
knox / Burn-readme-1.rs
0 likes
0 forks
1 files
Last active
1 | fn gelu_custom<B: Backend, const D: usize>(x: Tensor<B, D>) -> Tensor<B, D> { |
2 | let x = x.clone() * ((x / SQRT_2).erf() + 1); |
3 | x / 2 |
4 | } |