Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Tensorflow冻结图在以下情况下不工作:_Python_Unity3d_Tensorflow_Export - Fatal编程技术网

Python Tensorflow冻结图在以下情况下不工作:

Python Tensorflow冻结图在以下情况下不工作:,python,unity3d,tensorflow,export,Python,Unity3d,Tensorflow,Export,我想冻结一个图形,如下所示,将input_binary设置为true: freeze_graph.freeze_graph(input_graph = model_path +'/raw_graph_def.pb', input_binary = True, input_checkpoint = last_checkpoint, output_node_names = "action", output_graph = model_path +'/your_name_graph.bytes' ,

我想冻结一个图形,如下所示,将input_binary设置为true:

freeze_graph.freeze_graph(input_graph = model_path +'/raw_graph_def.pb', input_binary = True, input_checkpoint = last_checkpoint, output_node_names = "action", output_graph = model_path +'/your_name_graph.bytes' , clear_devices = True, initializer_nodes = "",input_saver = "", restore_op_name = "save/restore_all", filename_tensor_name = "save/Const:0")
对于input\u checkpoint=last\u checkpoint,是否表示ckpt文件的路径?这就是我正在使用的

每次导出时,我都会收到错误消息:

google.protobuf.message.DecodeError:解析消息时出错

如果我将input_binary=False保留,则没有问题,但我需要它为true,因为我想将它导出到Unity


我遗漏了什么吗?

您解决问题了吗?