提交 0e8dba4f 编写于 作者: L lang

修复ndarray传入空数组初始化的问题

上级 06c063b8
......@@ -111,7 +111,7 @@ var NDArray = function(array) {
if (array instanceof NDArray) {
array._dtype = this._dtype;
return array;
} else if (array.length) {
} else if (typeof(array.length) !== 'undefined') {
// Init from array
this.initFromArray(array);
} else if(typeof(array) === 'number') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册