Skip to content

Commit

Permalink
add TT_FATAL check
Browse files Browse the repository at this point in the history
  • Loading branch information
jjiangTT committed Mar 6, 2025
1 parent 6f1e5de commit bcf6d29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ttnn/cpp/ttnn/distributed/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Tensor aggregate_as_tensor(
auto storage = MultiDeviceHostStorage{config, std::move(host_owned_buffers), specs};
return Tensor(std::move(storage), reference_shard.get_tensor_spec());
} else {
TT_FATAL(storage_type == StorageType::DEVICE, "Unexpected storage type {}", storage_type);
std::vector<int> ordered_device_ids;
std::unordered_map<int, ttnn::TensorSpec> specs;
std::unordered_map<int, std::shared_ptr<Buffer>> device_buffers;
Expand Down

0 comments on commit bcf6d29

Please sign in to comment.