Lutz Roeder пре 1 месец
родитељ
комит
180786e256
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      source/message.js

+ 1 - 1
source/message.js

@@ -109,7 +109,7 @@ message.Argument = class {
 message.Value = class {
 
     constructor(data) {
-        this.name = data.name ? data.name.toString() : '';
+        this.name = data.name !== undefined && data.name !== null ? data.name.toString() : '';
         this.initializer = data.initializer ? new message.Tensor(data.initializer) : null;
         if (this.initializer && this.initializer.type) {
             this.type = this.initializer.type;