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

Class Location

torchgen/model.py:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36# Represent a source location; used for better error reporting
37@dataclass(frozen=True)
38class Location:
39 file: str
40 line: int
41
42 def __str__(self) -> str:
43 return f"{self.file}:{self.line}"
44
45
46# Valid values of the 'variants' field in native_functions.yaml

Callers 10

setUpMethod · 0.90
setUpMethod · 0.90
setUpMethod · 0.90
setUpMethod · 0.90
translate_native_yamlFunction · 0.90
parse_native_yaml_structFunction · 0.90
parse_tags_yaml_structFunction · 0.90

Calls

no outgoing calls

Tested by 6

setUpMethod · 0.72
setUpMethod · 0.72
setUpMethod · 0.72
setUpMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…