Permalink
Browse files

op.x nullcheck

  • Loading branch information...
1 parent b5f6a5a commit 8238a626b2e091aaa4406dee1fd4ba21a0167e57 @raver119 raver119 committed Dec 27, 2016
@@ -518,7 +518,7 @@ public void profilingHookOut(Op op, long timeStart){
public static void validateDataType(DataBuffer.Type expectedType, Op op) {
- if (op.x().data().dataType() != expectedType)
+ if (op.x() != null && op.x().data().dataType() != expectedType)
throw new ND4JIllegalStateException("op.X dataType is ["+ op.x().data().dataType() +"] instead of expected [" + expectedType + "]");
if (op.z() != null && op.z().data().dataType() != expectedType)
@@ -3,7 +3,7 @@
<parent>
<artifactId>nd4j-shade</artifactId>
<groupId>org.nd4j</groupId>
- <version>0.7.2</version>
+ <version>0.7.3-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jackson</artifactId>

0 comments on commit 8238a62

Please sign in to comment.