ソースを参照

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);