Skip to content

Commit

Permalink
refactor: drop unused cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 19, 2023
1 parent d41f7df commit ffd0597
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/awkward/operations/str/akstr_index_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@


import awkward as ak
from awkward._backends.numpy import NumpyBackend
from awkward._backends.typetracer import TypeTracerBackend
from awkward._dispatch import high_level_function
from awkward._layout import metadata_of, wrap_layout

cpu = NumpyBackend.instance()
typetracer = TypeTracerBackend.instance()


Expand Down
2 changes: 0 additions & 2 deletions src/awkward/operations/str/akstr_is_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@


import awkward as ak
from awkward._backends.numpy import NumpyBackend
from awkward._backends.typetracer import TypeTracerBackend
from awkward._dispatch import high_level_function
from awkward._layout import metadata_of, wrap_layout

cpu = NumpyBackend.instance()
typetracer = TypeTracerBackend.instance()


Expand Down
4 changes: 1 addition & 3 deletions src/awkward/operations/str/akstr_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
__all__ = ("join",)

import awkward as ak
from awkward._backends.numpy import NumpyBackend
from awkward._backends.typetracer import TypeTracerBackend
from awkward._dispatch import high_level_function
from awkward._layout import metadata_of, wrap_layout

typetracer = TypeTracerBackend.instance()
cpu = NumpyBackend.instance()


@high_level_function(module="ak.str")
Expand Down Expand Up @@ -38,7 +36,7 @@ def join(array, separator, *, highlevel=True, behavior=None, attrs=None):
See also: #ak.str.join_element_wise.
"""
# Dispatch
yield (array, separator)
yield array, separator

# Implementation
return _impl(array, separator, highlevel, behavior, attrs)
Expand Down
2 changes: 0 additions & 2 deletions src/awkward/operations/str/akstr_join_element_wise.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
__all__ = ("join_element_wise",)

import awkward as ak
from awkward._backends.numpy import NumpyBackend
from awkward._backends.typetracer import TypeTracerBackend
from awkward._dispatch import high_level_function
from awkward._layout import metadata_of, wrap_layout

cpu = NumpyBackend.instance()
typetracer = TypeTracerBackend.instance()


Expand Down
4 changes: 1 addition & 3 deletions src/awkward/operations/str/akstr_repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
import numbers

import awkward as ak
from awkward._backends.numpy import NumpyBackend
from awkward._backends.typetracer import TypeTracerBackend
from awkward._dispatch import high_level_function
from awkward._layout import metadata_of, wrap_layout
from awkward._nplikes.numpylike import NumpyMetadata

cpu = NumpyBackend.instance()
typetracer = TypeTracerBackend.instance()
np = NumpyMetadata.instance()

Expand Down Expand Up @@ -42,7 +40,7 @@ def repeat(array, num_repeats, *, highlevel=True, behavior=None, attrs=None):
on strings and bytestrings, respectively.
"""
# Dispatch
yield (array, num_repeats)
yield array, num_repeats

# Implementation
return _impl(array, num_repeats, highlevel, behavior, attrs)
Expand Down

0 comments on commit ffd0597

Please sign in to comment.