hameerabbasi on master
Updates to requirements and dro… (compare)
hameerabbasi on master
Updates to requirements and dro… (compare)
hameerabbasi on master
Updates to requirements and dro… (compare)
hameerabbasi on master
Updates to requirements and dro… (compare)
hameerabbasi on master
Updates to requirements and dro… (compare)
hameerabbasi on master
Updates to requirements and dro… (compare)
hameerabbasi on master
Updates to requirements and dro… (compare)
hameerabbasi on master
Fix errors on MSVC. (compare)
hameerabbasi on master
Fix errors on MSVC. (compare)
hameerabbasi on master
Fix errors on MSVC. (compare)
hameerabbasi on master
update docs Fix up Azure. Merge pull request #37 from san… (compare)
[Hameer Abbasi, Quansight] For uarray
there’s documentation. https://uarray.org/en/latest/
For unumpy
, not that much. https://unumpy.uarray.org/en/latest/
import uarray as ua
def myfunc_rd(a, kw, d):
return a, kw
@ua.create_multimethod(myfunc_rd)
def myfunc():
return () # Let's also ignore this for now
be1 = ua.Backend()
be2 = ua.Backend()
@ua.register_implementation(myfunc, backend=be1)
def myfunc_be1(): # Note that it has exactly the same signature
return "Potato"
@ua.register_implementation(myfunc, backend=be2)
def myfunc_be2(): # Note that it has exactly the same signature
return "Strawberry"
TypeError Traceback (most recent call last)
<ipython-input-8-6c4a4111bba6> in <module>
6
7 # We define a multimethod
----> 8 @ua.create_multimethod(myfunc_rd)
9 def myfunc():
10 return () # Let's also ignore this for now
C:\ProgramData\Anaconda3\lib\site-packages\uarray_backend.py in wrapper(a)
166
167 def wrapper(a):
--> 168 return generate_multimethod(a, args, *kwargs)
169
170 return wrapper
TypeError: generate_multimethod() missing 1 required positional argument: 'domain'
I tried running
import uarray as ua
import numpy as np
my_multimethod=ua.generate_multimethod(
lambda a,b=None: (),
lambda a,kw,d: (a, kw),
"test",
default=lambda a,b=None: (a,b)
)
and got this error
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-0d9ce782868f> in <module>
----> 1 my_multimethod=ua.generate_multimethod(
2 lambda a,b=None: (),
3 lambda a,kw,d: (a, kw),
4 "test",
5 default=lambda a,b=None: (a,b)
AttributeError: module 'uarray' has no attribute 'generate_multimethod'
master
*master
*master
*master
*master
*master
*master
*master
*master
*master
*master
*master
*master
*[Unknown, Quansight]
Pull request opened by Ponicode-bot
Quansight-Labs/uarray#252
Wowza
*We made a Pull Request with our AI powered DogString engine!\
*We placed a docstring in each and every one of your undocumented functions.*
And you can continue doing the same we our *Ponicode DogString Github Action*. How freaking :clap:MA :clap:GI :clap:CAL
*Why are we trying to impress you so hard?*
*Because we need your support!*
*Our new Github Action is on Product Hunt today*
Please share it to your community if you like us.
And if you have any doubts? You can keep playing and challenge our AI with your most complex Python functions on our playground
I hope this little pull request dedicated to help you get 100% docstring coverage convinces you to support us on Product Hunt.
Take good care my friend.
Bye for now,
Mic drop
*The Ponicode Team**