Commit Graph

1061 Commits

Author SHA1 Message Date
Tushushu 27f2095bcd
Implement Instance Normalization (#1321)
* config

* rename as instances, otherwise won't work

* refactor

* InstanceNormConfig

* remove unused var

* forward

* rename

* based on gn

* unit tests

* fix tests

* update doc

* update onnx doc

* renaming method

* add comment

---------

Co-authored-by: VungleTienan <tienan.liu@vungle.com>
2024-02-23 23:31:43 -06:00
Guillaume Lagrange f5bd2a474f
Check that pa_type is valid before checking if is_binary (#1354) 2024-02-23 09:44:03 -06:00
Dilshod Tadjibaev 08302e38fc
Fix broken test and run-checks script (#1347) 2024-02-23 10:06:51 -05:00
Aasheesh Singh c86db83fa9
Add support for Any, All operations to Tensor (#1342)
* add any, all op implementation for all tensor types

* add op to burn-book

* fix formatting

* refactor tensor operations from numeric to BaseOps.

* fix book doc

* comments fix and add more tests
2024-02-23 10:06:31 -05:00
Dilshod Tadjibaev 261e7eca1d
Add sub-crates as members of workspace (#1348) 2024-02-22 16:39:20 -05:00
Dilshod Tadjibaev d6e859330f
Pytorch message updates (#1344)
* Update pytorch-model.md

* Update error.rs
2024-02-22 12:12:50 -06:00
Nathaniel Simard b256c0404e
Refactor/wgpu/memco (#1340) 2024-02-22 07:59:54 -05:00
Guillaume Lagrange bff4961426
Add enum module support (#1337) 2024-02-21 17:03:34 -05:00
Sylvain Benner 4427768570
[refactor] Move burn crates to their own crates directory (#1336) 2024-02-20 13:57:55 -05:00
Dilshod Tadjibaev e9bb273700
Pytorch config extraction (#1323)
* PyTorch config deserializer from .pt file

* Update pytorch-model.md

* Format the book section

* Update Cargo.lock

* Recommend to resave config as json

* Fix comment wording
2024-02-20 09:52:36 -06:00
Richard Santos fc493c4cf2
Refactor xtask (#1288)
* refactor the publish.rs file in xtask

* fixes after running checks

* remove extra space

* Update messages to be more conventional and follow rust guidelines

---------

Co-authored-by: iamricks <richardsantos@Richards-MacBook-Pro.local>
2024-02-20 08:54:48 -05:00
Luni-4 32bd8792cc
[CI] Fix codecov and update to weekly the `.dependabot` file for `cargo` (#1320)
* ci: Fix codecov

* ci: Add all dependencies to a dependabot group

* Update dependabot scheduling for cargo
2024-02-20 08:44:44 -05:00
github-actions[bot] 188b619002
Combined PRs (#1327)
* Bump clap from 4.5.0 to 4.5.1

Bumps [clap](https://github.com/clap-rs/clap) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump syn from 2.0.48 to 2.0.49

Bumps [syn](https://github.com/dtolnay/syn) from 2.0.48 to 2.0.49.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/2.0.48...2.0.49)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 08:53:41 -05:00
dependabot[bot] 866daa0fa4
Bump clap from 4.5.0 to 4.5.1 (#1318)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 08:49:09 -05:00
Guillaume Lagrange 80f3cddcc1
Fix LogEventStore end epoch log (#1314) 2024-02-19 08:45:54 -05:00
Sylvain Benner 9e61b6687a
[CI] Trigger test suite when Cargo.lock file is updated (#1326) 2024-02-19 06:38:45 -05:00
Nathaniel Simard 843dd492c2
[Refactor] Just-In-Time Compilation Pipeline (#1313) 2024-02-16 14:45:59 -05:00
dependabot[bot] 24287237d1
Bump env_logger from 0.11.1 to 0.11.2 (#1308)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.11.1 to 0.11.2.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.11.1...v0.11.2)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 14:19:53 -05:00
dependabot[bot] 89520b2b73
Bump arboard from 3.3.0 to 3.3.1 (#1307)
Bumps [arboard](https://github.com/1Password/arboard) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/1Password/arboard/releases)
- [Changelog](https://github.com/1Password/arboard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/1Password/arboard/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: arboard
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 14:19:42 -05:00
Dilshod Tadjibaev 44266d5fd4
Make all struct CamelCase (#1316) 2024-02-15 13:00:37 -06:00
Dilshod Tadjibaev dfb739c89a
Rename GELU to Gelu (#1311)
* Rename GELU to Gelu

This is to follow Rust naming convention
2024-02-15 10:39:06 -06:00
Joshua Ferguson d1273d4963
Unsqueeze op (#1236) 2024-02-15 10:33:41 -05:00
Jakub 3592f3799a
fix(book): add missing second parameter to CrosEntropyLoss constructor (#1301)
* fix(book): add missing second parameter to CrosEntropyLoss constructor

CrossEntropyLoss::new() expects two parameters, the pad_index and the device

* fix: fix missing closing parenthese
2024-02-15 09:46:41 -05:00
Sylvain Benner 00b6c7d136
[backend-comparison] Add GitHub authentication to burnbench CLI (#1285)
* [backend-comparison] Add auth command to burnbench CLI

* [backend-comparison] Add --share argument to Burnbench CLI

* Cargo clippy fixes

* Fix typos

* Add comment to explain the FIVE_SECONDS constant

* Use num_args to force at least one arg value and make args required

In the run command, makes the --benches and --backends required
The manual check is no longer necessary

* Use and_then instead of match

* Simplify token verification

* Use map_or instead of match
2024-02-13 11:16:53 -05:00
Sylvain Benner 62809cdb30
[CI] Add workflow to test dependencies and update Cargo.lock (#1303) 2024-02-13 10:49:13 -05:00
Jakub a68b494531
fix(book): add missing device parameter to mode.init() (#1302) 2024-02-13 09:34:03 -05:00
dependabot[bot] 938a9d00b3
Bump clap from 4.4.18 to 4.5.0 (#1281)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.18 to 4.5.0.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.18...clap_complete-v4.5.0)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 16:24:18 -05:00
Sylvain Benner 5b48e8d131
[CI] Set minimum supported version of Rust to 1.75 (#1297) 2024-02-12 15:16:42 -05:00
Nathaniel Simard dfc65abd52
[Refactor] Just-In-Time Backend (#1280) 2024-02-12 12:15:07 -05:00
github-actions[bot] 03bbc64031
Combined PRs (#1295)
Combined PRs ➡️📦⬅️
 The following pull requests have been successfully combined on this PR:

Closes Bump thiserror from 1.0.56 to 1.0.57 #1293 Bump thiserror from 1.0.56 to 1.0.57
Closes Bump tokenizers from 0.15.1 to 0.15.2 #1292 Bump tokenizers from 0.15.1 to 0.15.2
Closes Bump bytemuck from 1.14.1 to 1.14.3 #1291 Bump bytemuck from 1.14.1 to 1.14.3
Closes Bump indicatif from 0.17.7 to 0.17.8 #1290 Bump indicatif from 0.17.7 to 0.17.8
2024-02-12 10:42:15 -05:00
Dilshod Tadjibaev 16541ea523
Fix out of memory bug #1270 (#1286) 2024-02-12 09:53:36 -05:00
Louis Fortier-Dubois 397bc02d8b
Fix/conv2d/fan (#1287) 2024-02-12 09:51:43 -05:00
Guillaume Lagrange 8f753b3aae
Update TORCH_CUDA_VERSION usage (#1284) 2024-02-10 12:01:45 -05:00
Guillaume Lagrange 88f5a3e88c
Add `burn::data::network::downloader` (#1283) 2024-02-10 11:54:33 -05:00
Nathaniel Simard fb6cc2db62
[Refactor] Create an Intermediate representation of compute shaders on the GPU (#1274) 2024-02-08 12:34:37 -05:00
Nathaniel Simard a9b6dbc177
Enable burn fusion by default (#1223) 2024-02-08 11:28:02 -05:00
dependabot[bot] 685d30fb46
Bump tempfile from 3.9.0 to 3.10.0 (#1277)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.9.0 to 3.10.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.9.0...v3.10.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 09:38:56 -05:00
dependabot[bot] 1dc022cc54
Bump num-traits from 0.2.17 to 0.2.18 (#1275)
Bumps [num-traits](https://github.com/rust-num/num-traits) from 0.2.17 to 0.2.18.
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.17...num-traits-0.2.18)

---
updated-dependencies:
- dependency-name: num-traits
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 09:38:30 -05:00
Guillaume Lagrange c603c68258
Fix chain pattern matching when multiple patterns are provided (#1273) 2024-02-07 16:51:48 -05:00
yurzhang 419e53bc42
Support signed value for `Tensor::arange` (#1238) 2024-02-07 09:33:01 -05:00
Sylvain Benner 5bef9d8432
[backend-comparison] Burnbench CLI (#1260) 2024-02-07 09:28:02 -05:00
dependabot[bot] f6ea74721b
Bump the wasm-bindgen-dependencies group with 2 updates (#1271)
Bumps the wasm-bindgen-dependencies group with 2 updates: [js-sys](https://github.com/rustwasm/wasm-bindgen) and [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen).


Updates `js-sys` from 0.3.67 to 0.3.68
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

Updates `wasm-bindgen-futures` from 0.4.40 to 0.4.41
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: js-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: wasm-bindgen-dependencies
- dependency-name: wasm-bindgen-futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: wasm-bindgen-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-07 09:22:38 -05:00
Guillaume Lagrange 059c241511
Add vision feature for MNIST in book guide (#1267) 2024-02-07 09:21:35 -05:00
Guillaume Lagrange d2bdc46786
Allow multiple pattern matches in chain (#1269) 2024-02-06 20:09:38 -06:00
Luni-4 a99258da2e
ci: Move software versions in a single point (#1235) 2024-02-06 10:06:12 -05:00
Dilshod Tadjibaev 42db540db3
Removed duplicate files that are causing problems on Mac (#1266) 2024-02-06 09:13:45 -05:00
dependabot[bot] efb8ea0810
Bump tokio from 1.35.1 to 1.36.0 (#1259)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.35.1 to 1.36.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.35.1...tokio-1.36.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 15:48:49 -05:00
dependabot[bot] d83c97e3b0
Bump openblas-src from 0.10.8 to 0.10.9 (#1258)
Bumps [openblas-src](https://github.com/blas-lapack-rs/openblas-src) from 0.10.8 to 0.10.9.
- [Release notes](https://github.com/blas-lapack-rs/openblas-src/releases)
- [Changelog](https://github.com/blas-lapack-rs/openblas-src/blob/master/CHANGELOG.md)
- [Commits](https://github.com/blas-lapack-rs/openblas-src/compare/openblas-src-v0.10.8...openblas-src-v0.10.9)

---
updated-dependencies:
- dependency-name: openblas-src
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 15:48:34 -05:00
Joshua Ferguson 3eab141608
started the burn developer book (#1184)
---------

Co-authored-by: Sylvain Benner <sylvain@benner.online>
Co-authored-by: Dilshod Tadjibaev <939125+antimora@users.noreply.github.com>
2024-02-05 11:03:24 -05:00
Arjun31415 bfebf22e1a
Fix weight params in `conv1d` and `conv2d` (#1245) 2024-02-04 16:13:36 -05:00