torchopt icon indicating copy to clipboard operation
torchopt copied to clipboard

[Feature Request] Improve PyTree Performance

Open Benjamin-eecs opened this issue 3 years ago • 0 comments

Motivation

Improve the speed of the current PyTree implemention: tree_map, tree_flatten and unflatten

Solution

An extra C++ library with python bindings

Resource

  • https://github.com/pytorch/pytorch/issues/65761
  • https://github.com/google/jax/issues/8099

Checklist

  • [x] I have checked that there is no similar issue in the repo (required)

Benjamin-eecs avatar Aug 11 '22 12:08 Benjamin-eecs