MCPcopy Create free account
hub / github.com/pytorch/pytorch / is_structured_dispatch_key

Function is_structured_dispatch_key

torchgen/model.py:293–294  ·  view source on GitHub ↗
(dk: DispatchKey)

Source from the content-addressed store, hash-verified

291# Structured kernel generation is only supported for certain key types;
292# otherwise use old-style
293def is_structured_dispatch_key(dk: DispatchKey) -> bool:
294 return dk in STRUCTURED_DISPATCH_KEYS
295
296
297def is_ufunc_dispatch_key(dk: DispatchKey) -> bool:

Callers 1

from_yamlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…