burn/crates/onnx-ir/src
Mathias Insley 37822fdb51
Feat/Split ONNX Import (#2568)
* Add a Split node to burn-import

* Register operation in to_burn

* Create Split config function

* Dimension inference for split outputs

* Remove unnecessary f-strings from squeeze

* ONNX file for Split and scipt that generates it

* Add Split node to name function in Node impl

* Update supported onnx ops list

* Add codegen test

* Include split onnx model in build

* Split values should be taken from inputs, make sure only num_outputs or split is provided

* Codegen should make a Vec<Tensor<B, D>>

* Fix up split codegen

* Remove panic if split is not provided

* Add basic split test

* Keep the number of output tensor sizes fixed

* Clippy fixes

* Update supported ops list

* Cleanup build errors

* Update onnx test now that return is tuple of static size

* Potential workaround to constant int node

* Change num_outputs to split_size in SplitConfig to follow burn implementation

* Intraconvert from ONNX graph node to SplitConfig properly

* Revert attempt at sidestepping constant int node issue

* Copy override logic from @jameshiew

* Fill in placeholder docstrings

* Remove initializer helpers

* Move code for generating uninitialized tensors into burn-import

---------

Co-authored-by: James Hiew <james@hiew.net>
2025-02-17 10:28:36 -05:00
..
protos Separating ONNX parsing from burn-import (#1921) 2024-07-02 15:17:44 -05:00
coalesce.rs Separating ONNX parsing from burn-import (#1921) 2024-07-02 15:17:44 -05:00
dim_inference.rs Feat/Split ONNX Import (#2568) 2025-02-17 10:28:36 -05:00
from_onnx.rs Onnx op topk (#2305) 2025-02-12 11:08:10 -05:00
ir.rs Fix ONNX where op for scalar inputs (#2218) 2024-09-03 11:17:18 -04:00
lib.rs Infer convolution kernel shape from weight (#2544) 2024-11-28 08:52:01 -05:00
node_remap.rs Infer convolution kernel shape from weight (#2544) 2024-11-28 08:52:01 -05:00
proto_conversion.rs Improve ONNX import tensor shape tracking (#2213) 2024-08-29 14:06:30 -04:00
util.rs Infer convolution kernel shape from weight (#2544) 2024-11-28 08:52:01 -05:00