code: public void clear() {
          weightParams.clear();
          biasParams.clear();
          paramsList = null;
          weightParamsList = null;
          biasParamsList = null;
      }
docs: Clear any previously set weight/bias parameters (including their shapes)