{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6339","repository_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j","labels_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6339/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6339/comments","events_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6339/events","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6339","id":356273154,"node_id":"MDU6SXNzdWUzNTYyNzMxNTQ=","number":6339,"title":"PRELU OP: wrong shape of alpha array, expected is [1, 1, 198], but got [1, 1, 10] instead !","user":{"login":"xiptos","id":1430594,"node_id":"MDQ6VXNlcjE0MzA1OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1430594?v=4","gravatar_id":"","url":"https://api.github.com/users/xiptos","html_url":"https://github.com/xiptos","followers_url":"https://api.github.com/users/xiptos/followers","following_url":"https://api.github.com/users/xiptos/following{/other_user}","gists_url":"https://api.github.com/users/xiptos/gists{/gist_id}","starred_url":"https://api.github.com/users/xiptos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiptos/subscriptions","organizations_url":"https://api.github.com/users/xiptos/orgs","repos_url":"https://api.github.com/users/xiptos/repos","events_url":"https://api.github.com/users/xiptos/events{/privacy}","received_events_url":"https://api.github.com/users/xiptos/received_events","type":"User","site_admin":false},"labels":[{"id":67900999,"node_id":"MDU6TGFiZWw2NzkwMDk5OQ==","url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/labels/Bug","name":"Bug","color":"d93f0b","default":false},{"id":501813555,"node_id":"MDU6TGFiZWw1MDE4MTM1NTU=","url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/labels/DL4J%20Keras","name":"DL4J Keras","color":"b60205","default":false},{"id":915096470,"node_id":"MDU6TGFiZWw5MTUwOTY0NzA=","url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/labels/Java","name":"Java","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"maxpumperla","id":3462566,"node_id":"MDQ6VXNlcjM0NjI1NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/3462566?v=4","gravatar_id":"","url":"https://api.github.com/users/maxpumperla","html_url":"https://github.com/maxpumperla","followers_url":"https://api.github.com/users/maxpumperla/followers","following_url":"https://api.github.com/users/maxpumperla/following{/other_user}","gists_url":"https://api.github.com/users/maxpumperla/gists{/gist_id}","starred_url":"https://api.github.com/users/maxpumperla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxpumperla/subscriptions","organizations_url":"https://api.github.com/users/maxpumperla/orgs","repos_url":"https://api.github.com/users/maxpumperla/repos","events_url":"https://api.github.com/users/maxpumperla/events{/privacy}","received_events_url":"https://api.github.com/users/maxpumperla/received_events","type":"User","site_admin":false},"assignees":[{"login":"maxpumperla","id":3462566,"node_id":"MDQ6VXNlcjM0NjI1NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/3462566?v=4","gravatar_id":"","url":"https://api.github.com/users/maxpumperla","html_url":"https://github.com/maxpumperla","followers_url":"https://api.github.com/users/maxpumperla/followers","following_url":"https://api.github.com/users/maxpumperla/following{/other_user}","gists_url":"https://api.github.com/users/maxpumperla/gists{/gist_id}","starred_url":"https://api.github.com/users/maxpumperla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxpumperla/subscriptions","organizations_url":"https://api.github.com/users/maxpumperla/orgs","repos_url":"https://api.github.com/users/maxpumperla/repos","events_url":"https://api.github.com/users/maxpumperla/events{/privacy}","received_events_url":"https://api.github.com/users/maxpumperla/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-02T11:06:38Z","updated_at":"2018-09-02T19:36:12Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\nI'm getting the following exception when inputing dynamic shape images to a CNN with PReLU activation layer:\r\n[main] INFO org.nd4j.linalg.factory.Nd4jBackend - Loaded [CpuBackend] backend\r\n[main] INFO org.nd4j.nativeblas.NativeOpsHolder - Number of threads used for NativeOps: 2\r\n[main] INFO org.nd4j.nativeblas.Nd4jBlas - Number of threads used for BLAS: 2\r\n[main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Backend used: [CPU]; OS: [Mac OS X]\r\n[main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Cores: [4]; Memory: [1.8GB];\r\n[main] INFO org.nd4j.linalg.api.ops.executioner.DefaultOpExecutioner - Blas vendor: [OPENBLAS]\r\n[main] INFO org.deeplearning4j.nn.graph.ComputationGraph - Starting ComputationGraph with WorkspaceModes set to [training: ENABLED; inference: ENABLED], cacheMode set to [NONE]\r\n\r\n==========================================================================================================================================================================================================================================================\r\nVertexName (VertexType)                 nIn,nOut  TotalParams ParamsShape                             Vertex Inputs                 \r\n==========================================================================================================================================================================================================================================================\r\ninput_3 (InputVertex)                   -,-       -           -                                       -                             \r\nconv1 (ConvolutionLayer)                3,10      280         W:{10,3,3,3}, b:{1,10}                  [input_3]                     \r\nPReLU1 (PReLU)                          -,-       10          W:{1,1,10}                              [conv1]                       \r\nmax_pooling2d_6 (SubsamplingLayer)      -,-       0           -                                       [PReLU1]                      \r\nconv2 (ConvolutionLayer)                10,16     1456        W:{16,10,3,3}, b:{1,16}                 [max_pooling2d_6]             \r\nPReLU2 (PReLU)                          -,-       3           W:{1,1,3}                               [conv2]                       \r\nconv3 (ConvolutionLayer)                16,32     4640        W:{32,16,3,3}, b:{1,32}                 [PReLU2]                      \r\nPReLU3 (PReLU)                          -,-       1           W:{1,1,1}                               [conv3]                       \r\nconv4-1 (ConvolutionLayer)              32,2      66          W:{2,32,1,1}, b:{1,2}                   [PReLU3]                      \r\nconv4-2 (ConvolutionLayer)              32,4      132         W:{4,32,1,1}, b:{1,4}                   [PReLU3]                      \r\n----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n            Total Parameters:  6588\r\n        Trainable Parameters:  6588\r\n           Frozen Parameters:  0\r\n==========================================================================================================================================================================================================================================================\r\n\r\n12x12: Rank: 4,Offset: 0\r\n Order: c Shape: [1,3,12,12],  stride: [432,144,12,1]\r\n12x12: Rank: 4,Offset: 0\r\n Order: c Shape: [1,2,1,1],  stride: [1,1,1,1]\r\n100x200: Rank: 4,Offset: 0\r\n Order: c Shape: [1,3,100,200],  stride: [60000,20000,200,1]\r\nError at [/Users/jenkins/jenkins/workspace/deeplearning4j-master-macosx-x86_64-cpu/libnd4j/include/ops/declarable/generic/activations/prelu.cpp:64:0]:\r\nPRELU OP: wrong shape of alpha array, expected is [1, 1, 198], but got [1, 1, 10] instead !\r\nException in thread \"main\" java.lang.RuntimeException: Op validation failed\r\n\tat org.nd4j.nativeblas.Nd4jCpu$NativeOps.execCustomOpFloat(Native Method)\r\n\tat org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.exec(NativeOpExecutioner.java:1714)\r\n\tat org.nd4j.linalg.activations.impl.ActivationPReLU.getActivation(ActivationPReLU.java:61)\r\n\tat org.deeplearning4j.nn.layers.feedforward.PReLU.activate(PReLU.java:75)\r\n\tat org.deeplearning4j.nn.graph.vertex.impl.LayerVertex.doForward(LayerVertex.java:110)\r\n\tat org.deeplearning4j.nn.graph.ComputationGraph.outputOfLayersDetached(ComputationGraph.java:2307)\r\n\tat org.deeplearning4j.nn.graph.ComputationGraph.output(ComputationGraph.java:1718)\r\n\tat org.deeplearning4j.nn.graph.ComputationGraph.output(ComputationGraph.java:1677)\r\n\tat org.deeplearning4j.nn.graph.ComputationGraph.output(ComputationGraph.java:1607)\r\n\tat pt.ipb.face.BugReport.main(BugReport.java:25)\r\n\r\nThe source code is in attach, with the model used.\r\nI'm using \r\njava version \"1.8.0_151\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_151-b12)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)\r\n\r\non macOS 10.13.6\r\n\r\n[BugReport.java.zip](https://github.com/deeplearning4j/deeplearning4j/files/2343228/BugReport.java.zip)\r\n[12net.zip](https://github.com/deeplearning4j/deeplearning4j/files/2343229/12net.zip)"},"comment":{"url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/comments/417954629","html_url":"https://github.com/deeplearning4j/deeplearning4j/issues/6339#issuecomment-417954629","issue_url":"https://api.github.com/repos/deeplearning4j/deeplearning4j/issues/6339","id":417954629,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzk1NDYyOQ==","user":{"login":"maxpumperla","id":3462566,"node_id":"MDQ6VXNlcjM0NjI1NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/3462566?v=4","gravatar_id":"","url":"https://api.github.com/users/maxpumperla","html_url":"https://github.com/maxpumperla","followers_url":"https://api.github.com/users/maxpumperla/followers","following_url":"https://api.github.com/users/maxpumperla/following{/other_user}","gists_url":"https://api.github.com/users/maxpumperla/gists{/gist_id}","starred_url":"https://api.github.com/users/maxpumperla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxpumperla/subscriptions","organizations_url":"https://api.github.com/users/maxpumperla/orgs","repos_url":"https://api.github.com/users/maxpumperla/repos","events_url":"https://api.github.com/users/maxpumperla/events{/privacy}","received_events_url":"https://api.github.com/users/maxpumperla/received_events","type":"User","site_admin":false},"created_at":"2018-09-02T19:36:12Z","updated_at":"2018-09-02T19:36:12Z","author_association":"CONTRIBUTOR","body":"@xiptos thanks for reporting, I'll take a look asap."}}
{"actor":{"display_login":"maxpumperla"}}