mirror of
https://github.com/openai/CLIP.git
synced 2026-02-22 20:23:57 +00:00
Attribute access with subscripting would previously work due to patching in https://github.com/pytorch/pytorch/pull/82511 but this has been removed. This commit uses the fix proposed in https://github.com/pytorch/pytorch/pull/82628 to define a helper method to call the appropriate access method.