Browse Source

Update mnn.js

Lutz Roeder 4 years ago
parent
commit
838dde992b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/mnn.js

+ 1 - 1
source/mnn.js

@@ -292,7 +292,7 @@ mnn.Attribute = class {
         this._type = null;
         this._value = ArrayBuffer.isView(value) ? Array.from(value) : value;
         this._name = name;
-        this._visible = visible;
+        this._visible = visible ? true : false;
         if (schema) {
             if (schema.type) {
                 this._type = schema.type;