Skip to content

Commit

Permalink
removing some debug information I used to test the change
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezTT committed Mar 3, 2025
1 parent 6a8371b commit 9138a82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions ttnn/cpp/ttnn/graph/graph_argument_serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@ void GraphArgumentSerializer::register_type() {
if (value.type() == typeid(std::reference_wrapper<T>)) {
auto referenced_value = std::any_cast<std::reference_wrapper<T>>(value);
oss << referenced_value.get();
std::cout << "Parsed: " << typeid(referenced_value).name() << std::endl;
} else if (value.type() == typeid(std::reference_wrapper<const T>)) {
auto referenced_value = std::any_cast<std::reference_wrapper<const T>>(value);
oss << referenced_value.get();
std::cout << "Parsed: " << typeid(referenced_value).name() << std::endl;
} else {
oss << "Unable to parse";
}
Expand Down
10 changes: 1 addition & 9 deletions ttnn/cpp/ttnn/graph/graph_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,7 @@ void GraphProcessor::track_function_start(std::string_view function_name, std::s
};

std::vector<std::string> serialized_arguments;
try{
serialized_arguments = GraphArgumentSerializer::to_list(input_parameters);
for(auto item : serialized_arguments)
std::cout << item << std::endl;
} catch (const std::exception& e) { // ✅ Catches std::runtime_error, std::bad_any_cast, etc.
std::cerr << "Exception: " << e.what() << std::endl;
} catch (...) { // ✅ Catches anything else (segfaults, etc.)
std::cerr << "Unknown Exception occurred." << std::endl;
}
serialized_arguments = GraphArgumentSerializer::to_list(input_parameters);

auto counter = graph.size();
{
Expand Down

0 comments on commit 9138a82

Please sign in to comment.