Skip to content

Commit

Permalink
chore: add device type to resnet example
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMelt committed Jan 24, 2025
1 parent 5c0f007 commit 3946312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/2_ResNet18/resnet_infer_fortran.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ subroutine main()
call torch_tensor_from_array(out_tensors(1), out_data, out_layout, torch_kCPU)

! Load ML model (edit this line to use different models)
call torch_model_load(model, args(1), device_index=0)
call torch_model_load(model, args(1), device_type=torch_kXPU, device_index=0)

! Infer
call torch_model_forward(model, in_tensors, out_tensors)
Expand Down

0 comments on commit 3946312

Please # to comment.