Lutz Roeder 4 лет назад
Родитель
Сommit
5198db554e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      source/tf.js

+ 1 - 0
source/tf.js

@@ -1983,6 +1983,7 @@ tf.GraphMetadata = class {
             this._functions.set(name, new tf.Function(this, name, null));
             return this._functions.get(name);
         }
+        return type;
     }
 
     attribute(type, name) {