Skip to content

Einops v0.3: repeat + more friendly requirements + ...

Compare
Choose a tag to compare
@arogozhnikov arogozhnikov released this 08 Sep 08:33
· 411 commits to master since this release
  • new operation: repeat (includes repeat/tiling logic, copying along a new dimension)
  • anonymous axes (specified by their length not name) are allowed:
grayscale = reduce(image, 'h w 3 -> h w', 'mean')
image_with_identical_channels = repeat(grayscale, 'h w -> h w 3')
  • 1 can be used to refer to all dimensions of length 1
  • reduced restrictions on axes names: almost any python identified can be an axis name now
  • reduction can be provided with callable not string
  • tutorials were slightly updated to include these changes
  • code in kernel undergone refactoring, and now more documented
  • support: keras layers are deprecated in favor of tf.keras layers
  • experimental layer introduced: WeightedEinsum (RFC: #71 )