Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: mismatch in Fortran array character array lengths in example 2 #263

Merged
merged 2 commits into from
Jan 29, 2025
Merged
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
6 changes: 3 additions & 3 deletions examples/2_ResNet18/resnet_infer_fortran.f90
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ subroutine main()
! Path to input data
character(len=128) :: data_dir
! Binary file containing input tensor
character(len=116) :: filename
character(len=128) :: filename
! Text file containing categories
character(len=114) :: filename_cats
character(len=128) :: filename_cats

! Length of tensor and number of categories
integer, parameter :: tensor_length = 150528
Expand Down Expand Up @@ -161,7 +161,7 @@ subroutine load_categories(filename_cats, N_cats, categories)

character(len=*), intent(in) :: filename_cats
integer, intent(in) :: N_cats
character(len=100), intent(out) :: categories(N_cats)
character(len=128), intent(out) :: categories(N_cats)

integer :: ios
character(len=100) :: ioerrmsg
Expand Down