Conversation
spec/draft/migration_guide.md
Outdated
| This page is meant to help migrate your codebase to an array API standard | ||
| compliant implementation. The guide is divided into three parts. |
There was a problem hiding this comment.
'Compliance' seems more relevant for producers. I guess for consumers it is rather about becoming interoperable with compliant implementations?
There was a problem hiding this comment.
added the consumers' perspective as well in the intro sentence.
spec/draft/migration_guide.md
Outdated
| The first part gives an overview of the {ref}`ecosystem` libraries, that | ||
| are helpful in different contexts when working with the array API standard. | ||
|
|
||
| The first part is dedicated for {ref}`array-producers`. If your library |
spec/draft/migration_guide.md
Outdated
| their system/algorithm. | ||
|
|
||
| The second part delves into details for Array API compatibility for | ||
| The second part delves into details for array API standard compatibility for |
spec/draft/migration_guide.md
Outdated
| The first part gives an overview of the {ref}`ecosystem` libraries, that | ||
| are helpful in different contexts when working with the array API standard. | ||
|
|
||
| The first part is dedicated for {ref}`array-producers`. If your library |
There was a problem hiding this comment.
| The first part is dedicated for {ref}`array-producers`. If your library | |
| The first part is dedicated to {ref}`array-producers`. If your library |
spec/draft/migration_guide.md
Outdated
| mimics, for example, NumPy's or PyTorch's functionality, then you can find in | ||
| the first part additional instructions and guidance on how to ensure |
There was a problem hiding this comment.
| mimics, for example, NumPy's or PyTorch's functionality, then you can find in | |
| the first part additional instructions and guidance on how to ensure | |
| mimics, for example, NumPy's or PyTorch's functionality, then you can find in | |
| here additional instructions and guidance on how to ensure |
spec/draft/migration_guide.md
Outdated
| Although NumPy, Dask, CuPy, and PyTorch support the array API standard, there | ||
| are still some corner cases where their behavior diverges from the standard. |
There was a problem hiding this comment.
still not sure if we should claim support in this first phrase, particularly for Dask and PyTorch
There was a problem hiding this comment.
right, I removed Dask and PyTorch from here.
spec/draft/migration_guide.md
Outdated
| into array objects. As an array consumer, you can still rely on the original | ||
| API while having access to the standard compatible one. | ||
| `array-api-compat` provides a compatibility layer to cover an additional subset | ||
| of these corner cases. This is also accompanied by a few utility functions fo |
There was a problem hiding this comment.
| of these corner cases. This is also accompanied by a few utility functions fo | |
| of these corner cases. This is also accompanied by a few utility functions for |
spec/draft/migration_guide.md
Outdated
| easier introspection into array objects. As an array consumer, you can still | ||
| rely on the original API while having access to the standard compatible one. |
There was a problem hiding this comment.
| easier introspection into array objects. As an array consumer, you can still | |
| rely on the original API while having access to the standard compatible one. | |
| easier introspection into array objects. As an array consumer, you can consume | |
| standard-compliant namespaces as well as the wrapped namespaces in | |
| `array-api-compat` at the same time. |
spec/draft/migration_guide.md
Outdated
| implementation of the array API standard. As a consumer, you can use | ||
| `array-api-strict` for parametrising tests with it as an array namespace | ||
| to ensure your code uses APIs compliant with the standard. |
There was a problem hiding this comment.
| implementation of the array API standard. As a consumer, you can use | |
| `array-api-strict` for parametrising tests with it as an array namespace | |
| to ensure your code uses APIs compliant with the standard. | |
| implementation of the array API standard. As a consumer, you can use | |
| `array-api-strict` in parametrising tests over the array namespace | |
| to ensure your code uses only APIs which are in the standard. |
spec/draft/migration_guide.md
Outdated
| standard define it: | ||
| namespace variable. The convention used in the ecosystem is to name it `xp`. | ||
| Then, it is vital to ensure that each method and function call is something that | ||
| the array API standard supports. For example, `dot` is present in the NumPy's |
There was a problem hiding this comment.
| the array API standard supports. For example, `dot` is present in the NumPy's | |
| the array API standard supports. For example, `dot` is present in the NumPy |
|
Hi @mtsokol, thanks for extending this migration guide, it's quite helpful. Just wondering about one thing - are there any guidelines on how to handle missing components of the array API standard? For instance, in my case I would love to see #725 addressed but I know it will take time. So in the meantime, is there any suggested approach on how I should extend the API in my own project? |
@lucascolley review of migration guide.