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 test/cpp/test_symint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ TEST(SymintTest, TestXLASymNodeImplStr) {
torch::lazy::NodePtr size_node =
torch::lazy::MakeNode<SizeNode>(expand_value, 0);
c10::SymNode symint_node = c10::make_intrusive<XLASymNodeImpl>(size_node);
ASSERT_EQ(symint_node.get()->str(), "Static bound: 2");
ASSERT_EQ(symint_node.get()->str(), "<=2");
}

} // namespace cpp_test
Expand Down
3 changes: 1 addition & 2 deletions torch_xla/csrc/tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,8 +1990,7 @@ c10::SymNode XLASymNodeImpl::floordiv(const c10::SymNode& other) {
}

std::string XLASymNodeImpl::str() {
return "Static bound: " +
std::to_string(DimCast(node().get())->getStaticValue());
return "<=" + std::to_string(DimCast(node().get())->getStaticValue());
}

torch::lazy::hash_t XLATensor::GetGraphHash(
Expand Down