Skip to content
Merged
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 Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tlparse"
version = "0.3.45"
version = "0.4.0"
edition = "2021"
authors = ["Edward Z. Yang <ezyang@mit.edu>"]
description = "Parse TORCH_LOG logs produced by PyTorch torch.compile"
Expand Down
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1417,8 +1417,6 @@ fn convert_node_mappings_to_line_numbers(
.get("version")
.and_then(|v| v.as_f64())
.unwrap_or(1.0) as i64;
#[cfg(debug_assertions)]
println!("Inductor Provenance Tracking Mapping Version: {}", version);

// Helper function to check if a line is valid (not empty and doesn't start with comment)
fn valid_line(line: &str, symbol: &str) -> bool {
Expand Down Expand Up @@ -1710,13 +1708,6 @@ fn convert_node_mappings_to_line_numbers(
build_python_kernel_to_lines_map(output_code_content, &kernel_names, version);
let cpp_code_to_lines = build_cpp_kernel_to_lines_map(aot_code_content, &kernel_names, version);

#[cfg(debug_assertions)]
println!("kernel_names: {:?}", kernel_names);
#[cfg(debug_assertions)]
println!("py_kernel_to_lines: {:?}", py_kernel_to_lines);
#[cfg(debug_assertions)]
println!("cpp_code_to_lines: {:?}", cpp_code_to_lines);

// Process all mappings using helper functions
let line_pre_to_post =
if let Some(pre_to_post) = node_mappings.get("preToPost").and_then(|v| v.as_object()) {
Expand Down
Loading