Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions docs/api/f_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ torchfort_train
For this operation, :code:`T` can be one of :code:`real(real32)`, :code:`real(real64)`

:p character(:) mname [in]: The key of the model instance.
:p T(*) input [in]: An array containing the input data. The last array dimension should be the batch dimension, the other dimensions are the feature dimensions.
:p T(*) label [in]: An array containing the label data. The last array dimension should be the batch dimension. :code:`label` does not need to be of the same shape as :code:`input` but the batch dimension should match. Additionally, :code:`label` should be of the same rank as `input`.
:p T(*) input [in]: An array containing the input data.
:p T(*) label [in]: An array containing the label data.
:p T loss_val [out]: A variable that will hold the loss value computed during the training iteration.
:p integer(int64) stream[in,optional]: CUDA stream to enqueue the operation. This argument is ignored if the model is on the CPU.
:r torchfort_result res: :code:`TORCHFORT_RESULT_SUCCESS` on success or error code on failure.
Expand Down Expand Up @@ -196,8 +196,8 @@ torchfort_inference
For this operation, :code:`T` can be one of :code:`real(real32)`, :code:`real(real64)`

:p character(:) mname [in]: The key of the model instance.
:p T(*) input [in]: An array containing the input data. The last array dimension should be the batch dimension, the other dimensions are the feature dimensions.
:p T(*) output [out]: An array which will hold the output of the model. The last array dimension should be the batch dimension. :code:`output` does not need to be of the same shape as :code:`input` but the batch dimension should match. Additionally, :code:`output` should be of the same rank as `input`.
:p T(*) input [in]: An array containing the input data.
:p T(*) output [out]: An array which will hold the output of the model.
:p integer(int64) stream[in,optional]: CUDA stream to enqueue the operation. This argument is ignored if the model is on the CPU.
:r torchfort_result res: :code:`TORCHFORT_RESULT_SUCCESS` on success or error code on failure.

Expand Down
Loading