forward
Syntax
Description
computes the video classifier outputs for training. You can use this function with dLYVideo
= forward(classifier
,dlXVideo
)dlfeval
(Deep Learning Toolbox) to
automatically compute gradients for updating the learnable parameters of the video
classifier. classifier
is specified as a r2plus1dVideoClassifier
or slowFastVideoClassifier
classifier object.
[
also returns the updated video network state. The output, dLYVideo
,stateVideo
] = forward(classifier
,dlXVideo
)stateVideo
,
contains information maintained by the classifier between training iterations. For example,
the state of batch normalization operation.
[
also returns the optical flow outputs from the classifier for training. Use this syntax when
you set the dLYVideo
,dlYFlow
] = forward(classifier
,dlXVideo
,dlXFlow
)OpticalFlowMethod
property of the classifier object to
"Farneback"
.
[
also returns the updated video network and the optical flow network states.dLYVideo
,dlYFlow
,stateVideo
,stateFlow
] = forward(classifier
,dlXVideo
,dlXFlow
)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2021b