Given the task definition and input, reply with output. In this task, you will be presented with a context from an academic paper and you have to write an answerable question based on the context. Your questions can be extractive, abstractive, or yes-no questions.

With this challenge in mind, we introduce Torch-Struct with three specific contributions:

Modularity: models are represented as distributions with a standard flexible API integrated into a deep learning framework.

Completeness: a broad array of classical algorithms are implemented and new models can easily be added in Python.

Efficiency: implementations target computational/memory efficiency for GPUs and the backend includes extensions for optimization.
Is this library implemented into Torch or is framework agnostic?