Jelajahi Sumber

Update tf.js (#916)

Lutz Roeder 3 tahun lalu
induk
melakukan
58a08cd02a
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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);