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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| bpe_simple_vocab_16e6.txt.gz | ||
| clip.py | ||
| model.py | ||
| simple_tokenizer.py | ||