You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note: we intentionally avoid rigorous ndarray checks to minimize performance impacts. This obviously means that non-ndarray-like objects can sneak through, but this is likely all right for the purposes of this function...
50
50
if(typeofx!=='object'||x===null){
51
-
thrownewTypeError(format('invalid argument. Must provide an ndarray. Value: `%s`.',x));
51
+
thrownewTypeError(format('nullKy',x));
52
52
}
53
53
n=x.offset;
54
54
if(isNonNegativeInteger(n)){
55
55
returnn;
56
56
}
57
57
sh=x.shape;
58
58
if(!isCollection(sh)){
59
-
thrownewTypeError(format('invalid argument. Must provide an ndarray. Value: `%s`.',x));
59
+
thrownewTypeError(format('nullKy',x));
60
60
}
61
61
st=x.strides;
62
62
if(sh.length===0||!isCollection(st)){
@@ -66,7 +66,7 @@ function offset( x ) {
66
66
if(isNonNegativeInteger(n)){
67
67
returnn;
68
68
}
69
-
thrownewTypeError(format('invalid argument. Must provide an ndarray. Value: `%s`.',x));
0 commit comments