Skip to content
Closed
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
4 changes: 4 additions & 0 deletions extension/aten_util/aten_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ torch::executor::ScalarType torch_to_executorch_scalar_type(
return torch::executor::ScalarType::Short;
case c10::ScalarType::Half:
return torch::executor::ScalarType::Half;
case c10::ScalarType::BFloat16:
return torch::executor::ScalarType::BFloat16;
case c10::ScalarType::Int:
return torch::executor::ScalarType::Int;
case c10::ScalarType::Float:
Expand Down Expand Up @@ -103,6 +105,8 @@ c10::ScalarType executorch_to_torch_scalar_type(
return c10::ScalarType::Short;
case torch::executor::ScalarType::Half:
return c10::ScalarType::Half;
case torch::executor::ScalarType::BFloat16:
return c10::ScalarType::BFloat16;
case torch::executor::ScalarType::Int:
return c10::ScalarType::Int;
case torch::executor::ScalarType::Float:
Expand Down
Loading