FluxML / FastAI.jl

Repository of best practices for deep learning in Julia, inspired by fastai
https://fluxml.ai/FastAI.jl
MIT License
589 stars 51 forks source link

Any-length dimensions for `Bounded` #195

Closed lorenzoh closed 2 years ago

lorenzoh commented 2 years ago

This adds the option to have some dimensions allow any length for Bounded blocks.

Before, each dimension had to have a fixed length, i.e. Bounded(Image{2}(), (16, 16)). Now a dimension with arbitrary length can be indicated by a colon :: Bounded(Image{2}(), (:, 16) is a (h, 16)-image.