@@ -968,7 +968,7 @@ end subroutine torch_model_delete
968
968
969
969
! > Return a Torch tensor pointing to data_in array of rank 1 containing data of type `int8`
970
970
subroutine torch_tensor_from_array_int8_1d (tensor , data_in , layout , &
971
- c_device_type , device_index , requires_grad )
971
+ device_type , device_index , requires_grad )
972
972
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
973
973
use , intrinsic :: iso_fortran_env, only : int8
974
974
@@ -1022,7 +1022,7 @@ end subroutine torch_tensor_from_array_int8_1d
1022
1022
1023
1023
! > Return a Torch tensor pointing to data_in array of rank 2 containing data of type `int8`
1024
1024
subroutine torch_tensor_from_array_int8_2d (tensor , data_in , layout , &
1025
- c_device_type , device_index , requires_grad )
1025
+ device_type , device_index , requires_grad )
1026
1026
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1027
1027
use , intrinsic :: iso_fortran_env, only : int8
1028
1028
@@ -1076,7 +1076,7 @@ end subroutine torch_tensor_from_array_int8_2d
1076
1076
1077
1077
! > Return a Torch tensor pointing to data_in array of rank 3 containing data of type `int8`
1078
1078
subroutine torch_tensor_from_array_int8_3d (tensor , data_in , layout , &
1079
- c_device_type , device_index , requires_grad )
1079
+ device_type , device_index , requires_grad )
1080
1080
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1081
1081
use , intrinsic :: iso_fortran_env, only : int8
1082
1082
@@ -1130,7 +1130,7 @@ end subroutine torch_tensor_from_array_int8_3d
1130
1130
1131
1131
! > Return a Torch tensor pointing to data_in array of rank 4 containing data of type `int8`
1132
1132
subroutine torch_tensor_from_array_int8_4d (tensor , data_in , layout , &
1133
- c_device_type , device_index , requires_grad )
1133
+ device_type , device_index , requires_grad )
1134
1134
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1135
1135
use , intrinsic :: iso_fortran_env, only : int8
1136
1136
@@ -1184,7 +1184,7 @@ end subroutine torch_tensor_from_array_int8_4d
1184
1184
1185
1185
! > Return a Torch tensor pointing to data_in array of rank 1 containing data of type `int16`
1186
1186
subroutine torch_tensor_from_array_int16_1d (tensor , data_in , layout , &
1187
- c_device_type , device_index , requires_grad )
1187
+ device_type , device_index , requires_grad )
1188
1188
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1189
1189
use , intrinsic :: iso_fortran_env, only : int16
1190
1190
@@ -1238,7 +1238,7 @@ end subroutine torch_tensor_from_array_int16_1d
1238
1238
1239
1239
! > Return a Torch tensor pointing to data_in array of rank 2 containing data of type `int16`
1240
1240
subroutine torch_tensor_from_array_int16_2d (tensor , data_in , layout , &
1241
- c_device_type , device_index , requires_grad )
1241
+ device_type , device_index , requires_grad )
1242
1242
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1243
1243
use , intrinsic :: iso_fortran_env, only : int16
1244
1244
@@ -1292,7 +1292,7 @@ end subroutine torch_tensor_from_array_int16_2d
1292
1292
1293
1293
! > Return a Torch tensor pointing to data_in array of rank 3 containing data of type `int16`
1294
1294
subroutine torch_tensor_from_array_int16_3d (tensor , data_in , layout , &
1295
- c_device_type , device_index , requires_grad )
1295
+ device_type , device_index , requires_grad )
1296
1296
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1297
1297
use , intrinsic :: iso_fortran_env, only : int16
1298
1298
@@ -1346,7 +1346,7 @@ end subroutine torch_tensor_from_array_int16_3d
1346
1346
1347
1347
! > Return a Torch tensor pointing to data_in array of rank 4 containing data of type `int16`
1348
1348
subroutine torch_tensor_from_array_int16_4d (tensor , data_in , layout , &
1349
- c_device_type , device_index , requires_grad )
1349
+ device_type , device_index , requires_grad )
1350
1350
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1351
1351
use , intrinsic :: iso_fortran_env, only : int16
1352
1352
@@ -1400,7 +1400,7 @@ end subroutine torch_tensor_from_array_int16_4d
1400
1400
1401
1401
! > Return a Torch tensor pointing to data_in array of rank 1 containing data of type `int32`
1402
1402
subroutine torch_tensor_from_array_int32_1d (tensor , data_in , layout , &
1403
- c_device_type , device_index , requires_grad )
1403
+ device_type , device_index , requires_grad )
1404
1404
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1405
1405
use , intrinsic :: iso_fortran_env, only : int32
1406
1406
@@ -1454,7 +1454,7 @@ end subroutine torch_tensor_from_array_int32_1d
1454
1454
1455
1455
! > Return a Torch tensor pointing to data_in array of rank 2 containing data of type `int32`
1456
1456
subroutine torch_tensor_from_array_int32_2d (tensor , data_in , layout , &
1457
- c_device_type , device_index , requires_grad )
1457
+ device_type , device_index , requires_grad )
1458
1458
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1459
1459
use , intrinsic :: iso_fortran_env, only : int32
1460
1460
@@ -1508,7 +1508,7 @@ end subroutine torch_tensor_from_array_int32_2d
1508
1508
1509
1509
! > Return a Torch tensor pointing to data_in array of rank 3 containing data of type `int32`
1510
1510
subroutine torch_tensor_from_array_int32_3d (tensor , data_in , layout , &
1511
- c_device_type , device_index , requires_grad )
1511
+ device_type , device_index , requires_grad )
1512
1512
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1513
1513
use , intrinsic :: iso_fortran_env, only : int32
1514
1514
@@ -1562,7 +1562,7 @@ end subroutine torch_tensor_from_array_int32_3d
1562
1562
1563
1563
! > Return a Torch tensor pointing to data_in array of rank 4 containing data of type `int32`
1564
1564
subroutine torch_tensor_from_array_int32_4d (tensor , data_in , layout , &
1565
- c_device_type , device_index , requires_grad )
1565
+ device_type , device_index , requires_grad )
1566
1566
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1567
1567
use , intrinsic :: iso_fortran_env, only : int32
1568
1568
@@ -1616,7 +1616,7 @@ end subroutine torch_tensor_from_array_int32_4d
1616
1616
1617
1617
! > Return a Torch tensor pointing to data_in array of rank 1 containing data of type `int64`
1618
1618
subroutine torch_tensor_from_array_int64_1d (tensor , data_in , layout , &
1619
- c_device_type , device_index , requires_grad )
1619
+ device_type , device_index , requires_grad )
1620
1620
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1621
1621
use , intrinsic :: iso_fortran_env, only : int64
1622
1622
@@ -1670,7 +1670,7 @@ end subroutine torch_tensor_from_array_int64_1d
1670
1670
1671
1671
! > Return a Torch tensor pointing to data_in array of rank 2 containing data of type `int64`
1672
1672
subroutine torch_tensor_from_array_int64_2d (tensor , data_in , layout , &
1673
- c_device_type , device_index , requires_grad )
1673
+ device_type , device_index , requires_grad )
1674
1674
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1675
1675
use , intrinsic :: iso_fortran_env, only : int64
1676
1676
@@ -1724,7 +1724,7 @@ end subroutine torch_tensor_from_array_int64_2d
1724
1724
1725
1725
! > Return a Torch tensor pointing to data_in array of rank 3 containing data of type `int64`
1726
1726
subroutine torch_tensor_from_array_int64_3d (tensor , data_in , layout , &
1727
- c_device_type , device_index , requires_grad )
1727
+ device_type , device_index , requires_grad )
1728
1728
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1729
1729
use , intrinsic :: iso_fortran_env, only : int64
1730
1730
@@ -1778,7 +1778,7 @@ end subroutine torch_tensor_from_array_int64_3d
1778
1778
1779
1779
! > Return a Torch tensor pointing to data_in array of rank 4 containing data of type `int64`
1780
1780
subroutine torch_tensor_from_array_int64_4d (tensor , data_in , layout , &
1781
- c_device_type , device_index , requires_grad )
1781
+ device_type , device_index , requires_grad )
1782
1782
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1783
1783
use , intrinsic :: iso_fortran_env, only : int64
1784
1784
@@ -1832,7 +1832,7 @@ end subroutine torch_tensor_from_array_int64_4d
1832
1832
1833
1833
! > Return a Torch tensor pointing to data_in array of rank 1 containing data of type `real32`
1834
1834
subroutine torch_tensor_from_array_real32_1d (tensor , data_in , layout , &
1835
- c_device_type , device_index , requires_grad )
1835
+ device_type , device_index , requires_grad )
1836
1836
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1837
1837
use , intrinsic :: iso_fortran_env, only : real32
1838
1838
@@ -1886,7 +1886,7 @@ end subroutine torch_tensor_from_array_real32_1d
1886
1886
1887
1887
! > Return a Torch tensor pointing to data_in array of rank 2 containing data of type `real32`
1888
1888
subroutine torch_tensor_from_array_real32_2d (tensor , data_in , layout , &
1889
- c_device_type , device_index , requires_grad )
1889
+ device_type , device_index , requires_grad )
1890
1890
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1891
1891
use , intrinsic :: iso_fortran_env, only : real32
1892
1892
@@ -1940,7 +1940,7 @@ end subroutine torch_tensor_from_array_real32_2d
1940
1940
1941
1941
! > Return a Torch tensor pointing to data_in array of rank 3 containing data of type `real32`
1942
1942
subroutine torch_tensor_from_array_real32_3d (tensor , data_in , layout , &
1943
- c_device_type , device_index , requires_grad )
1943
+ device_type , device_index , requires_grad )
1944
1944
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1945
1945
use , intrinsic :: iso_fortran_env, only : real32
1946
1946
@@ -1994,7 +1994,7 @@ end subroutine torch_tensor_from_array_real32_3d
1994
1994
1995
1995
! > Return a Torch tensor pointing to data_in array of rank 4 containing data of type `real32`
1996
1996
subroutine torch_tensor_from_array_real32_4d (tensor , data_in , layout , &
1997
- c_device_type , device_index , requires_grad )
1997
+ device_type , device_index , requires_grad )
1998
1998
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
1999
1999
use , intrinsic :: iso_fortran_env, only : real32
2000
2000
@@ -2048,7 +2048,7 @@ end subroutine torch_tensor_from_array_real32_4d
2048
2048
2049
2049
! > Return a Torch tensor pointing to data_in array of rank 1 containing data of type `real64`
2050
2050
subroutine torch_tensor_from_array_real64_1d (tensor , data_in , layout , &
2051
- c_device_type , device_index , requires_grad )
2051
+ device_type , device_index , requires_grad )
2052
2052
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
2053
2053
use , intrinsic :: iso_fortran_env, only : real64
2054
2054
@@ -2102,7 +2102,7 @@ end subroutine torch_tensor_from_array_real64_1d
2102
2102
2103
2103
! > Return a Torch tensor pointing to data_in array of rank 2 containing data of type `real64`
2104
2104
subroutine torch_tensor_from_array_real64_2d (tensor , data_in , layout , &
2105
- c_device_type , device_index , requires_grad )
2105
+ device_type , device_index , requires_grad )
2106
2106
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
2107
2107
use , intrinsic :: iso_fortran_env, only : real64
2108
2108
@@ -2156,7 +2156,7 @@ end subroutine torch_tensor_from_array_real64_2d
2156
2156
2157
2157
! > Return a Torch tensor pointing to data_in array of rank 3 containing data of type `real64`
2158
2158
subroutine torch_tensor_from_array_real64_3d (tensor , data_in , layout , &
2159
- c_device_type , device_index , requires_grad )
2159
+ device_type , device_index , requires_grad )
2160
2160
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
2161
2161
use , intrinsic :: iso_fortran_env, only : real64
2162
2162
@@ -2210,7 +2210,7 @@ end subroutine torch_tensor_from_array_real64_3d
2210
2210
2211
2211
! > Return a Torch tensor pointing to data_in array of rank 4 containing data of type `real64`
2212
2212
subroutine torch_tensor_from_array_real64_4d (tensor , data_in , layout , &
2213
- c_device_type , device_index , requires_grad )
2213
+ device_type , device_index , requires_grad )
2214
2214
use , intrinsic :: iso_c_binding, only : c_bool, c_float, c_int, c_int64_t, c_loc
2215
2215
use , intrinsic :: iso_fortran_env, only : real64
2216
2216
0 commit comments