Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PyTorch pin #3413

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/pins/pytorch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8326d2709325c4c7d56f30bae9a3c9ecaafc52d3
6c81435f16ff90f0c0464ea61b958f7328bbddcc
8 changes: 6 additions & 2 deletions python/triton/runtime/jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ def run(self, *args, grid, warmup, **kwargs):
*bound_args.values())
return kernel

def repr(self, _):
return self._fn_name if self._repr is None else self._repr(_)

def __init__(self, fn, version=None, do_not_specialize=None, do_not_specialize_on_alignment=None, debug=None,
noinline=None, repr=None, launch_metadata=None):
do_not_specialize = do_not_specialize if do_not_specialize else []
Expand All @@ -599,7 +602,8 @@ def __init__(self, fn, version=None, do_not_specialize=None, do_not_specialize_o
self.do_not_specialize = do_not_specialize
self.do_not_specialize_on_alignment = do_not_specialize_on_alignment
self.starting_line_number = inspect.getsourcelines(fn)[1]
self.repr = lambda _: fn.__name__ if repr is None else repr(_)
self._repr = repr
self._fn_name = fn.__name__
self.launch_metadata = launch_metadata

self.params = []
Expand All @@ -613,7 +617,7 @@ def __init__(self, fn, version=None, do_not_specialize=None, do_not_specialize_o
src = src[re.search(r"^def\s+\w+\s*\(", src, re.MULTILINE).start():]
self._unsafe_update_src(src)
# cache of just-in-time compiled kernels
self.device_caches = defaultdict(lambda: self.create_binder())
self.device_caches = defaultdict(self.create_binder)
self.hash = None

# Map of global variables used by the function and any functions it
Expand Down
Loading