Skip to content

Commit

Permalink
fix: constructor clause
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Aug 23, 2024
1 parent 81c1a6d commit 03eff77
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/src/runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ call(iree_vm_instance_t *instance, iree_hal_device_t *device, std::string driver
const iree_hal_dim_t *out_shape = iree_hal_buffer_view_shape_dims(output_buffer_view);
iree_hal_element_type_t out_type = iree_hal_buffer_view_element_type(output_buffer_view);

auto tensor = new iree::runtime::IREETensor(output_buffer_view, out_type);
auto tensor = new iree::runtime::IREETensor(output_buffer_view, out_type, device);
tensor->dims = std::vector<iree_hal_dim_t>();
for (int j = 0; j < out_shape_rank; j++) {
tensor->dims.push_back(out_shape[j]);
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion priv/iree-runtime

0 comments on commit 03eff77

Please sign in to comment.