【问题标题】:Unrecognized arguments in tensorflowjs convertertensorflowjs转换器中无法识别的参数
【发布时间】:2019-06-06 23:00:42
【问题描述】:

我正在使用 tf_saved_model 来保存模型

saver = tf.train.Saver()
saver.restore(session, checkpoint)

关注tutorial。 但是当我尝试将模型转换为 tensorflowjs 模型时出现问题

带有张量流版本

tensorflowjs_converter -v

tensorflowjs 1.1.2

Dependency versions:
  keras 2.2.4-tf
  tensorflow 2.0.0-dev20190606

and related things
tensorflow                       1.13.1              
tensorflow-estimator             1.13.0              
tensorflow-estimator-2.0-preview 1.14.0.dev2019060600
tensorflow-hub                   0.3.0               
tensorflowjs                     1.1.2    

我试过了

tensorflowjs_converter \
     --input_format=tf_saved_model \
     --output_node_names='embedding, contextual-lstm, attention-lstm, projection' \
     --saved_model_tags=serve \
     /model \
     /web_model

结果: TensorFlow.js model converters.: error: unrecognized arguments: /model /web_model

还有一个问题,output_node_names 的真正含义是什么?

【问题讨论】:

    标签: python tensorflow tensorflow.js tensorflowjs-converter


    【解决方案1】:

    你忘记了./,你应该把/model改成./model

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-16
      • 2020-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-14
      • 2013-08-09
      相关资源
      最近更新 更多