Thinc

Latest version: v8.2.3

Safety actively analyzes 619038 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 13

8.2.3

🔴 Bug fixes

- Make [strings2arrays](https://thinc.ai/docs/api-layers#strings2arrays) work again for sequences of inequal length (918).
- Fix `cupy.cublas` import (921).

👥 Contributors

danieldk, honnibal, ines, svlandeg

8.2.2

✨ New features and improvements

Add the [ParametricAttention_v2](https://thinc.ai/docs/api-layers#parametricattention_v2) layer, which adds support for key transformations (913).

👥 Contributors

danieldk, honnibal, ines, svlandeg

8.2.1

✨ New features and improvements

Updates and binary wheels for Python 3.12.

👥 Contributors

adrianeboyd, honnibal, ines, svlandeg

8.2.0

✨ New features and improvements

To improve loading times and reduce conflicts, MXNet and TensorFlow are no longer imported automatically (890).

⚠️ Backwards incompatibilities

MXNet and TensorFlow support needs to be enabled explicitly. Previously, MXNet and TensorFlow were imported automatically if they were available in the current environment.

To enable MXNet:

python
from thinc.api import enable_mxnet
enable_mxnet()


To enable TensorFlow:

python
from thinc.api import enable_tensorflow
enable_tensorflow()


With spaCy CLI commands you can provide this custom code using `-c code.py`. For training use `spacy train -c code.py` and to package your code with your pipeline use `spacy package -c code.py`.

Future deprecation warning: built-in MXNet and TensorFlow support will be removed in Thinc v9. If you need MXNet or TensorFlow support in the future, you can transition to using a custom copy of the current `MXNetWrapper` or `TensorFlowWrapper` in your package or project.

👥 Contributors

adrianeboyd, danieldk, honnibal, ines, svlandeg

8.1.12

🔴 Bug fixes

- Support zero-length batches and hidden sizes in `reduce_{max,mean,sum}` (882).
- Preserve values with dtype for `NumpyOps/CupyOps.asarray` (897).

👥 Contributors

adrianeboyd, danieldk, honnibal, ines, svlandeg

8.1.11

✨ New features and improvements

- Update NumPy build constraints for NumPy v1.25 (885).
- Switch from `distutils` to `setuptools`/`sysconfig` (888).
- Allow Pydantic v2 using transitional v1 support (891).

📖 Documentation and examples

- Fix typo in example code (879).

👥 Contributors

adrianeboyd, Ankush-Chander, danieldk, honnibal, ines, svlandeg

Page 1 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.