# Any tips in creating libraries/frameworks which are compatible with both pytorch and numpy arrays?

**URL:** <https://discuss.pytorch.org/t/any-tips-in-creating-libraries-frameworks-which-are-compatible-with-both-pytorch-and-numpy-arrays/55483>\
**Category:** hackathon\
**Created:** [September 8, 2019, 11:31pm UTC](https://discuss.pytorch.org/t/any-tips-in-creating-libraries-frameworks-which-are-compatible-with-both-pytorch-and-numpy-arrays/55483 "2019-09-08T23:31:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santosh-Gupta](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/santosh-gupta/32/30716_2.png) [@Santosh-Gupta](https://discuss.pytorch.org/u/Santosh-Gupta)\
**Post date:** [September 8, 2019, 11:31pm UTC](https://discuss.pytorch.org/t/any-tips-in-creating-libraries-frameworks-which-are-compatible-with-both-pytorch-and-numpy-arrays/55483/1 "2019-09-08T23:31:48Z")

</div>

I am creating a pytorch library. I am trying to make it as friendly as possible for inputs in both pytorch tensors and numpy arrays.

If there are are there any particular methods and tips that are best for this, I would love to hear them!
