burn/backend-comparison/benches
Guillaume Lagrange cdd1fa1672
Refactor tensor data (#1916)
* Move distribution to module

* Add new TensorData with serialization support

* Implement display and from for TensorData

* Add missing Cargo.lock

* Add missing bytemuck feature

* Add zeros, ones, full and random TensorData methods

* Refactor Data -> TensorData usage

* Fix tests

Since TensorData is not generic over the element type anymore no type inference can be done by the compiler. We must explicitly cast the expected results to the expected backend type.

* Remove commented line

* Fix import

* Add record-backward-compat

* Remove dim const generic from TensorData

* Support NestedValue de/serialization with TensorData

* Fix burn-jit tests

* Remove eprinln

* Refactor onnx import to use TensorData

* Fix tch from_data

* Fix nested value serialization for u8

* Fix missing import

* Fix reduce min onnx test

* Fix deprecated attribute

* Remove shape getter

* Remove strict assert in tests

* Add tensor data as_bytes

* Add tensor check for rank mismatch

* Fix typo (dimensions plural)

* Fix error message

* Update book examples with from_data and fix Display impl for TensorData

* Add deprecation note
2024-06-26 20:22:19 -04:00
..
autodiff.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
binary.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
conv2d.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
conv_transpose2d.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
custom_gelu.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
data.rs Refactor tensor data (#1916) 2024-06-26 20:22:19 -04:00
load_record.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
matmul.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
max_pool2d.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00
unary.rs Add option to flush queue instead of waiting for completion. (#1864) 2024-06-13 09:56:08 -04:00