pub fn decode_into<T: FloatExt, S: Data<Elem = u8>, D: Dimension, B: Backend<FloatElem = T>>(
device: &B::Device,
encoded: ArrayBase<S, Ix1>,
decoded: ArrayViewMut<'_, T, D>,
fourier_features: NonZeroUsize,
num_blocks: NonZeroUsize,
) -> Result<(), FourierNetworkCodecError>
Expand description
Decodes the encoded
data into the decoded
output array by making a
prediction using the fourier feature neural network.
The network must have been trained during encode
using the same number
of feature_features
and num_blocks
.
ยงErrors
Errors with
FourierNetworkCodecError::MismatchedDecodeIntoArray
if the encoded array is empty but the decoded array is notFourierNetworkCodecError::NeuralNetworkError
if an error occurs during the neural network computation