소스 검색

Update tf.js (#916)

Lutz Roeder 3 년 전
부모
커밋
58a08cd02a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      source/tf.js

+ 4 - 0
source/tf.js

@@ -1091,6 +1091,10 @@ tf.Attribute = class {
             this._type = schema.type;
         }
         switch (value.value) {
+            case undefined:
+                this._type = '';
+                this._value = null;
+                break;
             case 'type':
                 this._type = 'type';
                 this._value = tf.Utility.dataType(value.type);