瀏覽代碼

Fix TensorFlow metadata (#840)

Lutz Roeder 4 年之前
父節點
當前提交
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) {