Python 属性错误:模块';tf#u util';没有属性';conv2d&x27;

Python 属性错误:模块';tf#u util';没有属性';conv2d&x27;,python,python-2.7,tensorflow,Python,Python 2.7,Tensorflow,当我在自己的数据集上运行pointnet代码时,我在“conv2d”上遇到了一个问题。我的tensorflow版本:1.8.0,cudatoolkit 9.0 cudnn 7.6.5。有人能帮我吗?这是版本问题吗 /home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1typ

当我在自己的数据集上运行pointnet代码时,我在“conv2d”上遇到了一个问题。我的tensorflow版本:1.8.0,cudatoolkit 9.0 cudnn 7.6.5。有人能帮我吗?这是版本问题吗

/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:521: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:522: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
  File "train.py", line 253, in <module>
    main()
  File "train.py", line 74, in main
    pred = get_model(pointclouds_pl, is_training=is_training_pl, bn_decay=bn_decay)
  File "/home/yanz/PointNet/model.py", line 30, in get_model
    net = tf_util.conv2d(input_image, 64, [1, 4], padding='VALID', stride=[1, 1],
AttributeError: module 'tf_util' has no attribute 'conv2d'

/home/yanz/anaconda3/envs/env2/lib/python3.6/site packages/tensorflow/python/framework/dtypes.py:519:FutureWarning:Passing(type,1)或'1type'作为type的同义词不推荐使用;在numpy的未来版本中,它将被理解为(type,(1,)/“(1,)type”。
_np_qint8=np.dtype([(“qint8”,np.int8,1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site packages/tensorflow/python/framework/dtypes.py:520:FutureWarning:Passing(type,1)或'1type'作为type的同义词不推荐使用;在numpy的未来版本中,它将被理解为(type,(1,)/“(1,)type”。
_np_quint8=np.dtype([(“quint8”,np.uint8,1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site packages/tensorflow/python/framework/dtypes.py:521:FutureWarning:Passing(type,1)或'1type'作为type的同义词不推荐使用;在numpy的未来版本中,它将被理解为(type,(1,)/“(1,)type”。
_np_qint16=np.dtype([(“qint16”,np.int16,1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site packages/tensorflow/python/framework/dtypes.py:522:FutureWarning:Passing(type,1)或'1type'作为type的同义词不推荐使用;在numpy的未来版本中,它将被理解为(type,(1,)/“(1,)type”。
_np_quint16=np.dtype([(“quint16”,np.uint16,1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site packages/tensorflow/python/framework/dtypes.py:523:FutureWarning:Passing(type,1)或'1type'作为type的同义词不推荐使用;在numpy的未来版本中,它将被理解为(type,(1,)/“(1,)type”。
_np_qint32=np.dtype([(“qint32”,np.int32,1)])
/home/yanz/anaconda3/envs/env2/lib/python3.6/site packages/tensorflow/python/framework/dtypes.py:528:FutureWarning:Passing(type,1)或'1type'作为type的同义词不推荐使用;在numpy的未来版本中,它将被理解为(type,(1,)/“(1,)type”。
np_resource=np.dtype([(“resource”,np.ubyte,1)])
回溯(最近一次呼叫最后一次):
文件“train.py”,第253行,在
main()
文件“train.py”,第74行,在main中
pred=get\u模型(点云\u pl,is\u训练=is\u训练\u pl,bn\u衰减=bn\u衰减)
get_模型中第30行的文件“/home/yanz/PointNet/model.py”
net=tf_util.conv2d(输入图像,64,[1,4],padding='VALID',步长=[1,1],
AttributeError:模块“tf_util”没有属性“conv2d”

python版本:3.6欢迎使用SO。请添加相关代码,也请不要垃圾邮件发送不相关的标记;关于
numpy
(编辑)没有任何内容。您可以共享独立代码来复制您的问题吗?以便我们可以尝试帮助您。谢谢!