docs: public INDArray encode(INDArray v, boolean training, LayerWorkspaceMgr workspaceMgr) {
          INDArray W = getParamWithNoise(PretrainParamInitializer.WEIGHT_KEY, training, workspaceMgr);
          INDArray hBias = getParamWithNoise(PretrainParamInitializer.BIAS_KEY, training, workspaceMgr);
          INDArray ret = workspaceMgr.createUninitialized(ArrayType.ACTIVATIONS, W.dataType(), v.size(0), W.size(1));
          INDArray preAct = v.castTo(W.dataType()).mmuli(W, ret).addiRowVector(hBias);
          ret = layerConf().getActivationFn().getActivation(preAct, training);
          return workspaceMgr.leverageTo(ArrayType.ACTIVATIONS, ret);
      }