tensorflowtensorflow.jstensorflowjs-converter

TensorflowJS: It is possible to convert a graph model to a layers model?


Is it possible to convert a graph model into a layers model? The official TensorFlow js converter (https://github.com/tensorflow/tfjs/tree/master/tfjs-converter) does not support this feature at the moment or are there reasons that cannot work?


Solution

  • tfjs does not support converting a graph layer to a sequential one.

    A graph layer gives more abilities to create model that it can't be narrowed to a sequential layer.

    "If you can move mountains you can move molehills", so layers models can be converted to graph models. The converter supports converting sequential layers to graph. But obviously the converse is not true