我找不到任何将tensorflow 1.14模型导出为JSON的方法。
我用了一种方法-
import tensorflow as tf
from google.protobuf import json_format
with tf.Graph().as_default() as graph:
# Add nodes to the graph...
graph_def = graph.as_graph_def()
json_string = json_format.MessageToJson(graph_def)
但这给出了GraphDef的JSON表示形式,但模型给出的不是JSON