code: public long size() {
      long res = 0;
      if (_network!=null) res+=_network.length;
      if (_modelparams!=null) res+=_modelparams.length;
      return res;
    }
docs: momenta are not counted here, but they are needed for model building