java.lang.IllegalStateException: Network did not have same number of parameters as the broadcasted set parameter

Stack Overflow | graffo | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Deeplearning4j with spark: SparkDl4jMultiLayer evaluation with JavaRDD<DataSet>

    Stack Overflow | 7 months ago | graffo
    java.lang.IllegalStateException: Network did not have same number of parameters as the broadcasted set parameter

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Network did not have same number of parameters as the broadcasted set parameter

      at org.deeplearning4j.spark.impl.multilayer.evaluation.EvaluateFlatMapFunction.call()
    2. org.deeplearning4j.spark
      EvaluateFlatMapFunction.call
      1. org.deeplearning4j.spark.impl.multilayer.evaluation.EvaluateFlatMapFunction.call(EvaluateFlatMapFunction.java:75)
      2. org.deeplearning4j.spark.impl.multilayer.evaluation.EvaluateFlatMapFunction.call(EvaluateFlatMapFunction.java:41)
      2 frames
    3. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.api.java.JavaRDDLike$$anonfun$fn$4$1.apply(JavaRDDLike.scala:156)
      2. org.apache.spark.api.java.JavaRDDLike$$anonfun$fn$4$1.apply(JavaRDDLike.scala:156)
      3. org.apache.spark.rdd.RDD$$anonfun$mapPartitions$1$$anonfun$apply$17.apply(RDD.scala:706)
      4. org.apache.spark.rdd.RDD$$anonfun$mapPartitions$1$$anonfun$apply$17.apply(RDD.scala:706)
      5. org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
      6. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:297)
      7. org.apache.spark.rdd.RDD.iterator(RDD.scala:264)
      8. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)
      9. org.apache.spark.scheduler.Task.run(Task.scala:88)
      10. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)
      10 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames