Skip to content

Commit

Permalink
1) Fixed bug where output layers were duplicated, 2) Fixed metadata f…
Browse files Browse the repository at this point in the history
…or containing_module_origin, 3) Fixed issue with saving buffer layers 4) Added a field that gives the argument names for the PyTorch function being called in the layer
  • Loading branch information
JohnMark Taylor committed Jul 22, 2024
1 parent cf75e0f commit 7611300
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 45 deletions.
3 changes: 3 additions & 0 deletions torchlens/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
"elapsed_time_total",
"elapsed_time_function_calls",
"elapsed_time_torchlens_logging",
# Lookup info
"func_argnames"
]

TENSOR_LOG_ENTRY_FIELD_ORDER = [
Expand Down Expand Up @@ -158,6 +160,7 @@
"func_call_stack",
"func_time_elapsed",
"func_rng_states",
"func_argnames",
"num_func_args_total",
"num_position_args",
"num_keyword_args",
Expand Down
Loading

0 comments on commit 7611300

Please sign in to comment.