Closed vvmnnnkv closed 4 years ago
This is related to #16
Noticed issue in tfjs parsed .json file:
e.g. if you see tf.GraphModel in tfjs API, it's methods are listed w/o tf.GraphModel. prefix.
Doc parser doesn't add tf.GraphModel prefix, so all these methods appear as is they were in global scope.
I'm going to manually remove "add" from tfjs/1.5.1.json because it interferes with tf.add()
, but will create separate issue to fix doc parser.
Separate ticket: https://github.com/OpenMined/Threepio/issues/113
Description
I've noticed that in torch -> tfjs conversion,
tf.reshape
is overridden bytf.layers.reshape
, which has different arguments. Correct translation would betorch.reshape
->tf.reshape
, buttf.layers.reshape
has same key in the funcs map and overwritestf.reshape
when the map is populated. I'm trying to solve that by giving priority to functions that has shorterattrs
path.This kinda works, but it seems the problem needs more correct fix that would keep both funcs in the map but differentiate them by sub-module on mapping time?
Affected Dependencies
n/a
How has this been tested?
Unit tests
Checklist