pytorch / tensordict

TensorDict is a pytorch dedicated tensor container.
MIT License
803 stars 65 forks source link

[Feature] Compile - benchmarks #883

Closed vmoens closed 1 month ago

vmoens commented 1 month ago

Stack from ghstack (oldest at bottom):

vmoens commented 1 month ago

@jisaacso this is the last PR of the compile stack

It includes benchmarks for tensordict vs pytree in eager and compile. Ops like copy (test: test_compile_copy_flat) run faster in eager and compile with TD compared to pytree.