Skip to content

Commit 402c6d4

Browse files
GlebKazantaevpytorchmergebot
authored andcommitted
Add Meta backend into tensor type strings (pytorch#92697)
Add Meta backend into tensor type strings. Pull Request resolved: pytorch#92697 Approved by: https://github.com/wconstab
1 parent dd4b46e commit 402c6d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torch/csrc/utils/tensor_types.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ static const char* backend_to_string(const at::Backend& backend) {
4747
return "torch.lazy";
4848
case at::Backend::XLA:
4949
return "torch.xla";
50+
case at::Backend::Meta:
51+
return "torch.meta";
5052
default:
5153
AT_ERROR("Unimplemented backend ", backend);
5254
}

0 commit comments

Comments
 (0)