java.lang.IllegalArgumentException

Illegal concatneation at array 1 and shape element 1

Solutions on the web8148

  • via GitHub by akhodakivskiy
    , 11 months ago
    Illegal concatneation at array 1 and shape element 1
  • The data and shape arguments are not compatible, data.length = 196608 and shape = Array(227, 256, 256).
  • [Assertion failed] - this array must not be empty: it must contain at least 1 element
  • Stack trace

    • java.lang.IllegalArgumentException: Illegal concatneation at array 1 and shape element 1 at org.nd4j.linalg.jcublas.JCublasNDArrayFactory.concat(JCublasNDArrayFactory.java:581) at org.nd4j.linalg.factory.Nd4j.concat(Nd4j.java:4795) at org.nd4j.linalg.factory.BaseNDArrayFactory.vstack(BaseNDArrayFactory.java:1201) at org.nd4j.linalg.factory.Nd4j.vstack(Nd4j.java:4683) at org.nd4j.linalg.dataset.api.preprocessor.NormalizerStandardize.getMean(NormalizerStandardize.java:231)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.