java.lang.ClassCastException: org.deeplearning4j.nn.conf.inputs.InputType$InputTypeFeedForward cannot be cast to org.deeplearning4j.nn.conf.inputs.InputType$InputTypeConvolutional

GitHub | BDUG | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unexpected exception: java.lang.ClassCastException

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

    Unexpected class cast exception

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

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.deeplearning4j.nn.conf.inputs.InputType$InputTypeFeedForward cannot be cast to org.deeplearning4j.nn.conf.inputs.InputType$InputTypeConvolutional

      at org.deeplearning4j.nn.conf.graph.LayerVertex.getOutputType()
    2. org.deeplearning4j.nn
      ComputationGraphConfiguration$GraphBuilder.build
      1. org.deeplearning4j.nn.conf.graph.LayerVertex.getOutputType(LayerVertex.java:117)
      2. org.deeplearning4j.nn.conf.ComputationGraphConfiguration.addPreProcessors(ComputationGraphConfiguration.java:433)
      3. org.deeplearning4j.nn.conf.ComputationGraphConfiguration$GraphBuilder.build(ComputationGraphConfiguration.java:699)
      3 frames
    3. imagenet.Models
      GoogleLeNet.init
      1. imagenet.Models.GoogleLeNet.init(GoogleLeNet.java:451)
      1 frame
    4. imagenet
      ImageNetMain.main
      1. imagenet.ImageNetMain.main(ImageNetMain.java:20)
      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