java.lang.ClassCastException: org.deeplearning4j.nn.conf.layers.LocalResponseNormalization cannot be cast to org.deeplearning4j.nn.conf.layers.FeedForwardLayer

GitHub | BDUG | 8 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

    Unexpected class cast exception

    GitHub | 8 months ago | BDUG
    java.lang.ClassCastException: org.deeplearning4j.nn.conf.layers.LocalResponseNormalization cannot be cast to org.deeplearning4j.nn.conf.layers.FeedForwardLayer
  2. 0

    Unexpected exception: java.lang.ClassCastException

    GitHub | 8 months ago | BDUG
    java.lang.ClassCastException: org.deeplearning4j.nn.conf.inputs.InputType$InputTypeFeedForward cannot be cast to org.deeplearning4j.nn.conf.inputs.InputType$InputTypeConvolutional

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.deeplearning4j.nn.conf.layers.LocalResponseNormalization cannot be cast to org.deeplearning4j.nn.conf.layers.FeedForwardLayer

      at org.deeplearning4j.nn.conf.ComputationGraphConfiguration.addPreProcessors()
    2. org.deeplearning4j.nn
      ComputationGraphConfiguration$GraphBuilder.build
      1. org.deeplearning4j.nn.conf.ComputationGraphConfiguration.addPreProcessors(ComputationGraphConfiguration.java:411)
      2. org.deeplearning4j.nn.conf.ComputationGraphConfiguration$GraphBuilder.build(ComputationGraphConfiguration.java:691)
      2 frames
    3. imagenet.Models
      GoogleLeNet.init
      1. imagenet.Models.GoogleLeNet.init(GoogleLeNet.java:203)
      1 frame
    4. imagenet
      ImageNetMain.main
      1. imagenet.ImageNetMain.main(ImageNetMain.java:18)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame