@@ -310,7 +310,7 @@ end function put_tensor_int32_4d
310
310
311
311
! > Unpack a 32-bit real 1d tensor from the database
312
312
function unpack_tensor_float_1d (self , name , data , dims ) result(code)
313
- real (kind= real32), dimension (:), intent ( out ) :: data ! < Data to be received
313
+ real (kind= real32), dimension (:), intent (inout ) :: data ! < Data to be received
314
314
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
315
315
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
316
316
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -321,7 +321,7 @@ end function unpack_tensor_float_1d
321
321
322
322
! > Unpack a 32-bit real 2d tensor from the database
323
323
function unpack_tensor_float_2d (self , name , data , dims ) result(code)
324
- real (kind= real32), dimension (:,:), intent ( out ) :: data ! < Data to be received
324
+ real (kind= real32), dimension (:,:), intent (inout ) :: data ! < Data to be received
325
325
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
326
326
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
327
327
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -332,7 +332,7 @@ end function unpack_tensor_float_2d
332
332
333
333
! > Unpack a 32-bit real 3d tensor from the database
334
334
function unpack_tensor_float_3d (self , name , data , dims ) result(code)
335
- real (kind= real32), dimension (:,:,:), intent ( out ) :: data ! < Data to be received
335
+ real (kind= real32), dimension (:,:,:), intent (inout ) :: data ! < Data to be received
336
336
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
337
337
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
338
338
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -343,7 +343,7 @@ end function unpack_tensor_float_3d
343
343
344
344
! > Unpack a 32-bit real 4d tensor from the database
345
345
function unpack_tensor_float_4d (self , name , data , dims ) result(code)
346
- real (kind= real32), dimension (:,:,:,:), intent ( out ) :: data ! < Data to be received
346
+ real (kind= real32), dimension (:,:,:,:), intent (inout ) :: data ! < Data to be received
347
347
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
348
348
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
349
349
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -354,7 +354,7 @@ end function unpack_tensor_float_4d
354
354
355
355
! > Unpack a 64-bit real 1d tensor from the database
356
356
function unpack_tensor_double_1d (self , name , data , dims ) result(code)
357
- real (kind= real64), dimension (:), intent ( out ) :: data ! < Data to be received
357
+ real (kind= real64), dimension (:), intent (inout ) :: data ! < Data to be received
358
358
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
359
359
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
360
360
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -365,7 +365,7 @@ end function unpack_tensor_double_1d
365
365
366
366
! > Unpack a 64-bit real 2d tensor from the database
367
367
function unpack_tensor_double_2d (self , name , data , dims ) result(code)
368
- real (kind= real64), dimension (:,:), intent ( out ) :: data ! < Data to be received
368
+ real (kind= real64), dimension (:,:), intent (inout ) :: data ! < Data to be received
369
369
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
370
370
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
371
371
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -376,7 +376,7 @@ end function unpack_tensor_double_2d
376
376
377
377
! > Unpack a 64-bit real 3d tensor from the database
378
378
function unpack_tensor_double_3d (self , name , data , dims ) result(code)
379
- real (kind= real64), dimension (:,:,:), intent ( out ) :: data ! < Data to be received
379
+ real (kind= real64), dimension (:,:,:), intent (inout ) :: data ! < Data to be received
380
380
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
381
381
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
382
382
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -387,7 +387,7 @@ end function unpack_tensor_double_3d
387
387
388
388
! > Unpack a 64-bit real 4d tensor from the database
389
389
function unpack_tensor_double_4d (self , name , data , dims ) result(code)
390
- real (kind= real64), dimension (:,:,:,:), intent ( out ) :: data ! < Data to be received
390
+ real (kind= real64), dimension (:,:,:,:), intent (inout ) :: data ! < Data to be received
391
391
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
392
392
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
393
393
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -398,7 +398,7 @@ end function unpack_tensor_double_4d
398
398
399
399
! > Unpack a 32-bit integer 1d tensor from the database
400
400
function unpack_tensor_int32_1d (self , name , data , dims ) result(code)
401
- integer (kind= int32), dimension (:), intent ( out ) :: data ! < Data to be received
401
+ integer (kind= int32), dimension (:), intent (inout ) :: data ! < Data to be received
402
402
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
403
403
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
404
404
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -409,7 +409,7 @@ end function unpack_tensor_int32_1d
409
409
410
410
! > Unpack a 32-bit integer 2d tensor from the database
411
411
function unpack_tensor_int32_2d (self , name , data , dims ) result(code)
412
- integer (kind= int32), dimension (:,:), intent ( out ) :: data ! < Data to be received
412
+ integer (kind= int32), dimension (:,:), intent (inout ) :: data ! < Data to be received
413
413
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
414
414
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
415
415
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -420,7 +420,7 @@ end function unpack_tensor_int32_2d
420
420
421
421
! > Unpack a 32-bit integer 3d tensor from the database
422
422
function unpack_tensor_int32_3d (self , name , data , dims ) result(code)
423
- integer (kind= int32), dimension (:,:,:), intent ( out ) :: data ! < Data to be received
423
+ integer (kind= int32), dimension (:,:,:), intent (inout ) :: data ! < Data to be received
424
424
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
425
425
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
426
426
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -431,7 +431,7 @@ end function unpack_tensor_int32_3d
431
431
432
432
! > Unpack a 32-bit integer 4d tensor from the database
433
433
function unpack_tensor_int32_4d (self , name , data , dims ) result(code)
434
- integer (kind= int32), dimension (:,:,:,:), intent ( out ) :: data ! < Data to be received
434
+ integer (kind= int32), dimension (:,:,:,:), intent (inout ) :: data ! < Data to be received
435
435
class(dbclient_type), intent (in ) :: self ! < Fortran communication client
436
436
character (len=* ), intent (in ) :: name ! < The unique name used to store in the database
437
437
integer , dimension (:), intent (in ) :: dims ! < The length of each dimension
@@ -475,7 +475,7 @@ end function copy_tensor
475
475
function get_model (self , name , model ) result(code)
476
476
class(dbclient_type), intent (in ) :: self ! < An initialized communication client
477
477
character (len=* ), intent (in ) :: name ! < The name associated with the model
478
- character (len=* ), intent ( out ) :: model ! < The model as a continuous buffer
478
+ character (len=* ), intent (inout ) :: model ! < The model as a continuous buffer
479
479
integer :: code
480
480
481
481
code = - 1
@@ -617,7 +617,7 @@ end function delete_model_multigpu
617
617
function get_script (self , name , script ) result(code)
618
618
class(dbclient_type), intent (in ) :: self ! < An initialized communication client
619
619
character (len=* ), intent (in ) :: name ! < The name to use to place the script
620
- character (len=* ), intent ( out ) :: script ! < The script as a continuous buffer
620
+ character (len=* ), intent (inout ) :: script ! < The script as a continuous buffer
621
621
integer :: code
622
622
623
623
code = - 1
0 commit comments