Skip to content

Instantly share code, notes, and snippets.

View trichmo's full-sized avatar

Turner Richmond trichmo

View GitHub Profile
0 RESUME 0
2 LOAD_GLOBAL 19 (NULL + __compiled_fn_1_fc4f15cd_8631_44d0_87f0_7f75f74f1f5f)
12 LOAD_GLOBAL 21 (NULL + __import_torch_dot__dynamo_dot_utils)
22 LOAD_ATTR 22 (record_pregraph_bytecode_enter)
42 COPY 1
44 STORE_FAST 8 (tmp_7)
46 CALL 0
54 STORE_FAST 9 (tmp_8)
56 LOAD_FAST 0 (x)
58 LOAD_GLOBAL 21 (NULL + __import_torch_dot__dynamo_dot_utils)
@trichmo
trichmo / gist:33b4930b4d3cd91d7ab3f7909aee1ef3
Created March 7, 2026 17:43
Dynamo Bytecode For FrozenDataClass created within compile region
Frozen constructor attribute assignment added to bytecode suffix (112-156 init, 214 repr, 284-310 ctor assignment).
112 STORE_FAST 4 (graph_out_0)
114 LOAD_CONST 5 (<class 'object'>)
116 LOAD_ATTR 5 (NULL|self + __new__)
136 LOAD_GLOBAL 0 (MappingKey)
146 LOAD_CONST 1 ('a')
148 CALL 2
156 STORE_FAST 8 (tmp_4)
158 LOAD_CONST 5 (<class 'object'>)
@trichmo
trichmo / gist:f2badc07e1dba3d82856467b3dec7a22
Created October 14, 2025 18:15
Lintrunner error no lint issues
> lintrunner torch/csrc/lazy/core/shape_inference.cpp
> Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file.
> ⠁ FLAKE8 running...
> ⠁ CLANGFORMAT running...
> FLAKE8 success!
> ⠁ CLANGFORMAT running...
> MYPY success!
> ⠁ CLANGTIDY running...
> FLAKE8 success!
> ⠁ CLANGFORMAT running...
>>> General linter failure:
Error (CLANGTIDY) Linter failed
Linter failed. This a bug, please file an issue against the linter
maintainer.
CONTEXT:
Linter command failed with non-zero exit code.
STDERR:
Traceback (most recent call last):