Skip to content

Commit

Permalink
Merge pull request #700 from Sichao25/pp
Browse files Browse the repository at this point in the history
Debug duplicate signatures in `numba.vectorize()`
  • Loading branch information
Xiaojieqiu authored Oct 29, 2024
2 parents f7cf9fb + a40f5a3 commit 5438d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dynamo/plot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,17 +321,17 @@ def _to_hex(arr):
"""


@numba.vectorize(["uint8(uint32)", "uint8(uint32)"])
@numba.vectorize(["uint8(uint32)"])
def _red(x):
return (x & 0xFF0000) >> 16


@numba.vectorize(["uint8(uint32)", "uint8(uint32)"])
@numba.vectorize(["uint8(uint32)"])
def _green(x):
return (x & 0x00FF00) >> 8


@numba.vectorize(["uint8(uint32)", "uint8(uint32)"])
@numba.vectorize(["uint8(uint32)"])
def _blue(x):
return x & 0x0000FF

Expand Down

0 comments on commit 5438d83

Please sign in to comment.