使用tensorboard查看模型结构时报错NodeDef mentions attr 'explicit_paddings'

WARNING:tensorflow:From pb.py:7: __init__ (from tensorflow.python.platform.gfile) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.gfile.GFile.
Traceback (most recent call last):
  File "pb.py", line 8, in
    tf.import_graph_def(graph_def, name='graph')
  File "/home/wangpan/anaconda2/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
    return func(*args, **kwargs)
  File "/home/wangpan/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/importer.py", line 430, in import_graph_def
    raise ValueError(str(e))
ValueError: NodeDef mentions attr 'explicit_paddings' not in Op output:T; attr=T:type,allowed=[DT_HALF, DT_BFLOAT16, DT_FLOAT, DT_DOUBLE]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"]; attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]; attr=dilations:list(int),default=[1, 1, 1, 1]>; NodeDef: {{node graph/MobilenetV2/Conv/Conv2D_Fold}}. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
 

升级到tensorflow1.14就好了。

升级tensorflow1.14过程ERROR: Cannot uninstall 'wrapt'问题,参考下面链接:

https://blog.csdn.net/dragonfly91/article/details/96425763

你可能感兴趣的:(android,小技巧,Python)