Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 05 10:55
    Ponicode-bot opened #252
  • Oct 19 15:20

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 15:17

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 15:17

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 15:12

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 15:09

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 15:05

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 15:04

    hameerabbasi on master

    Updates to requirements and dro… (compare)

  • Oct 19 14:53

    hameerabbasi on master

    Fix errors on MSVC. (compare)

  • Oct 19 14:52

    hameerabbasi on master

    Fix errors on MSVC. (compare)

  • Oct 19 14:50

    hameerabbasi on master

    Fix errors on MSVC. (compare)

  • Sep 28 11:43
    hameerabbasi commented #245
  • Sep 28 11:43
    hameerabbasi closed #245
  • Sep 28 11:42
    hameerabbasi closed #250
  • Sep 28 11:42
    hameerabbasi closed #251
  • Sep 28 11:42
    hameerabbasi commented #251
  • Sep 28 11:41
    hameerabbasi commented #37
  • Sep 28 11:40

    hameerabbasi on master

    update docs Fix up Azure. Merge pull request #37 from san… (compare)

  • Sep 28 11:40
    hameerabbasi closed #37
  • Sep 28 11:36
    hameerabbasi synchronize #37
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/udiff#36
Nikhil Choudhary
@Nikhil1O1
Hello @hameerabbasi
I'm new to Open source but I have interest in python and I'm intrigued by array manipulation
I went through your blog and tbh i wasn't able to comprehend much
😑
It's clear I lack things on my technology stack
But I'm willing to learn new tech
Hameer Abbasi
@hameerabbasi
I’d ask you to not just read it, but experiment with it in a Jupyter Notebook or something similar.
Nikhil Choudhary
@Nikhil1O1
So what should I do now
Hameer Abbasi
@hameerabbasi
Also, uarray/unumpy are Dispatch and backend systems first and only unumpy has an array manipulation component to it.
Also, it might have more specific questions about which parts you didn’t understand— in that situation I might be able to help you better.
Nikhil Choudhary
@Nikhil1O1
Okay I will experiment with it first then give you a proper report
Do you have any documentation for the library?
Quansight
@quansightai_twitter

[Hameer Abbasi, Quansight] For uarray there’s documentation. https://uarray.org/en/latest/

For unumpy, not that much. https://unumpy.uarray.org/en/latest/

Nikhil Choudhary
@Nikhil1O1
okay it feels like i got some idea of what exactly you are trying to achieve here
i went through your uarray intro post
i executed the first code i.e

import uarray as ua

Let's ignore this for now

def myfunc_rd(a, kw, d):
return a, kw

We define a multimethod

@ua.create_multimethod(myfunc_rd)
def myfunc():
return () # Let's also ignore this for now

Now let's define two backends!

be1 = ua.Backend()
be2 = ua.Backend()

And register their implementations for the method!

@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"

and this is what my notebook threw at me

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'

like is this an error at my end?
moreover, while going through your documentation it feels like you don't intend any newbie to use this library. Isn't it?
@hameerabbasi
Sayandip Halder
@sayandip18

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'
Quansight
@quansightai_twitter
[Hameer Abbasi, Quansight] Can you post the output of ua.__version__?
Sayandip Halder
@sayandip18
My bad, I had installed uarray in a virtual environment. It's working now.
Hameer Abbasi
@hameerabbasi
@Nikhil1O1 It’s meant for library authors who want a backend system. If you want to use and not contribute, then it’s simple enough.
joaosferreira
@joaosferreira
Hey guys, congratulations on Nature's NumPy paper! I'll be sure to give it a read. :)
Quansight
@quansightai_twitter
[Hameer Abbasi, Quansight] Thanks, Joao!
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit pushed to master*
Quansight-Labs/uarray@5a27e24 - Update cibuildwheel to 1.6.1
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
Quansight-Labs/uarray#249
Quansight
@quansightai_twitter
[Unknown, Quansight]
*2 new commits pushed to master*
Quansight-Labs/uarray@3b57c07 - Make sure build isn't dirty.
Quansight-Labs/uarray@1c1ddac - Merge pull request #249 from hameerabbasi/release
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/uarray#249
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
Quansight-Labs/uarray#250
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by Czaki
Quansight-Labs/uarray#251
test
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by sangyx
Quansight-Labs/udiff#37
☑︎ update comments.
☑︎ update docs.
Quansight
@quansightai_twitter
[Unknown, Quansight]
*3 new commits pushed to master*
Quansight-Labs/udiff@95c5da6 - update docs
Quansight-Labs/udiff@c72783d - Fix up Azure.
Quansight-Labs/udiff@e5f2bfe - Merge pull request #37 from sangyx/master
[Unknown, Quansight]
Pull request merged by hameerabbasi
Quansight-Labs/udiff#37
[Unknown, Quansight]
Pull request closed by hameerabbasi
Quansight-Labs/uarray#251
[Unknown, Quansight]
Pull request closed by hameerabbasi
Quansight-Labs/uarray#250
[Unknown, Quansight]
Issue closed by hameerabbasi
Quansight-Labs/uarray#245
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit pushed to master*
Quansight-Labs/uarray@df32a69 - Fix errors on MSVC.
[Unknown, Quansight]
*1 new commit force-pushed to master*
Quansight-Labs/uarray@b276df9 - Fix errors on MSVC.
[Unknown, Quansight]
*1 new commit force-pushed to master*
Quansight-Labs/uarray@a2012fc - Fix errors on MSVC.
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit pushed to master*
Quansight-Labs/uarray@6184ac6 - Updates to requirements and drop Py3.5.
[Unknown, Quansight]
*1 new commit force-pushed to master*
Quansight-Labs/uarray@71007c9 - Updates to requirements and drop Py3.5.
[Unknown, Quansight]
*1 new commit force-pushed to master*
Quansight-Labs/uarray@a17c531 - Updates to requirements and drop Py3.5.
Quansight
@quansightai_twitter
[Unknown, Quansight]
*1 new commit force-pushed to master*
Quansight-Labs/uarray@17c0ba8 - Updates to requirements and drop Py3.5.
[Unknown, Quansight]
*1 new commit force-pushed to master*
Quansight-Labs/uarray@64bdeb5 - Updates to requirements and drop Py3.5.