transformers/examples/legacy
Roy Hvaara 35a7052b61
[NumPy] Remove references to deprecated NumPy type aliases (#21022)
[NumPy] Remove references to deprecated NumPy type aliases.

This change replaces references to a number of deprecated NumPy type aliases (np.bool, np.int, np.float, np.complex, np.object, np.str) with their recommended replacement (bool, int, float, complex, object, str).

NumPy 1.24 drops the deprecated aliases, so we must remove uses before updating NumPy.

Co-authored-by: Peter Hawkins <phawkins@google.com>

Co-authored-by: Peter Hawkins <phawkins@google.com>
2023-01-05 13:02:10 -05:00
..
multiple_choice
pytorch-lightning Just re-reading the whole doc every couple of months 😬 (#18489) 2022-08-06 09:38:55 +02:00
question-answering
seq2seq [NumPy] Remove references to deprecated NumPy type aliases (#21022) 2023-01-05 13:02:10 -05:00
text-classification
token-classification Just re-reading the whole doc every couple of months 😬 (#18489) 2022-08-06 09:38:55 +02:00
README.md
run_camembert.py
run_chinese_ref.py
run_language_modeling.py
run_openai_gpt.py
run_swag.py
run_transfo_xl.py

Legacy examples

This folder contains examples which are not actively maintained (mostly contributed by the community).

Using these examples together with a recent version of the library usually requires to make small (sometimes big) adaptations to get the scripts working.