Skip to content

Commit

Permalink
add XLA backend into tensor type strings (#86881)
Browse files Browse the repository at this point in the history
add XLA backend into tensor type strings
Pull Request resolved: #86881
Approved by: https://github.com/bdhirsh
  • Loading branch information
holimion authored and pytorchmergebot committed Oct 17, 2022
1 parent 317eeb8 commit 33343de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torch/csrc/utils/tensor_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ static const char* backend_to_string(const at::Backend& backend) {
return "torch.privateuseone";
case at::Backend::Lazy:
return "torch.lazy";
case at::Backend::XLA:
return "torch.xla";
default:
AT_ERROR("Unimplemented backend ", backend);
}
Expand Down

0 comments on commit 33343de

Please sign in to comment.