code: @Override
      public void setWeights(Map<String, INDArray> weights) throws InvalidKerasConfigurationException {
          this.weights = new HashMap<>();
          if (weights.containsKey(conf.getKERAS_PARAM_NAME_W()))
              this.weights.put(DefaultParamInitializer.WEIGHT_KEY, weights.get(conf.getKERAS_PARAM_NAME_W()));
          else
              throw new InvalidKerasConfigurationException(
                      "Parameter " + conf.getKERAS_PARAM_NAME_W() + " does not exist in weights");
          if (hasBias) {
              if (weights.containsKey(conf.getKERAS_PARAM_NAME_B()))
                  this.weights.put(DefaultParamInitializer.BIAS_KEY, weights.get(conf.getKERAS_PARAM_NAME_B()));
              else
                  throw new InvalidKerasConfigurationException(
                          "Parameter " + conf.getKERAS_PARAM_NAME_B() + " does not exist in weights");
          }
          removeDefaultWeights(weights, conf);
      }
docs: Set weights for layer.
  
  @param weights Dense layer weights