Skip to content

Commit

Permalink
chore: Address review comments part 1
Browse files Browse the repository at this point in the history
Signed-off-by: Dheeraj Peri <[email protected]>
  • Loading branch information
peri044 committed Aug 9, 2021
1 parent fb55f1c commit 6844a7f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/util/jit_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ inline std::string node_info(const torch::jit::Node* n) {
std::stringstream ss;
ss << *n;
std::string node_info = ss.str();
// Nodes in torchscript graph have file name and line numbers commented for every node. Remove that when returning a
// node name for easier readability.
node_info = node_info.substr(0, node_info.find("#", 0));
node_info.erase(std::remove(node_info.begin(), node_info.end(), '\n'), node_info.end());
return node_info;
}
Expand Down

0 comments on commit 6844a7f

Please sign in to comment.