TypeError: concat() got an unexpected keyword argument 'axis'
来源:互联网 发布:mysql front 5.3 注册 编辑:程序博客网 时间:2024/05/20 23:07
在训练 tensorflow-0.11 时出现了 TypeError: concat() got an unexpected keyword argument 'axis'. 的错误
输出如下:
Traceback (most recent call last): File "train_image_classifier-dist.py", line 656, in <module> tf.app.run() File "/home/docker/tensorflow-0.11/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run sys.exit(main(sys.argv[:1] + flags_passthrough)) File "train_image_classifier-dist.py", line 512, in main clones = model_deploy.create_clones(deploy_config, clone_fn, [batch_queue]) File "/home/docker/tensorflow-master/tensorflow_models/slim/deployment/model_deploy.py", line 195, in create_clones outputs = model_fn(*args, **kwargs) File "train_image_classifier-dist.py", line 496, in clone_fn logits, end_points = network_fn(images) File "/home/docker/tensorflow-master/tensorflow_models/slim/nets/nets_factory.py", line 105, in network_fn return func(images, num_classes, is_training=is_training) File "/home/docker/tensorflow-master/tensorflow_models/slim/nets/inception_v1.py", line 290, in inception_v1 net, end_points = inception_v1_base(inputs, scope=scope) File "/home/docker/tensorflow-master/tensorflow_models/slim/nets/inception_v1.py", line 96, in inception_v1_base net = tf.concat(axis=3, values=[branch_0, branch_1, branch_2, branch_3])TypeError: concat() got an unexpected keyword argument 'axis'
解决方法:
将 inception_v1.py 中
net = tf.concat(axis=3, values=[branch_0, branch_1, branch_2, branch_3])改为
net = tf.concat(3, [branch_0, branch_1, branch_2, branch_3])
0 0
- TypeError: concat() got an unexpected keyword argument 'axis'
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- TypeError: __init__() got an unexpected keyword argument ‘maxlength’
- 报错TypeError: pool_2d() got an unexpected keyword argument 'ws'
- TypeError: histogram() got an unexpected keyword argument 'new'问题
- TypeError: __init__() got an unexpected keyword argument 'syntax'
- TypeError:__init__() got an unexpected keyword argument 'xxx'
- TypeError: pivot_table() got an unexpected keyword argument 'rows'
- Django: TypeError topic() got an unexpected keyword argument 'topics_id'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- TypeError: exchange_declare() got an unexpected keyword argument 'type'的解决办法
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- TypeError: __init__() got an unexpected keyword argument 'shape'
- Keras TypeError: run() got an unexpected keyword argument 'class_mode'
- TypeError: __init__() got an unexpected keyword argument 'shape'
- pip错误:TypeError: parse() got an unexpected keyword argument 'transport_encoding'
- Keras TypeError: run() got an unexpected keyword argument 'class_mode'
- NS3实例分析second.cc_Building a Bus Network Topology
- CocoaAsyncSocket + Protobuf 处理粘包和拆包问题
- Linux用户必看:29个必须掌握的常用
- struct 与 union 在C与C++中的区别
- base64进行加密和解码
- TypeError: concat() got an unexpected keyword argument 'axis'
- 笔记本内存条怎么选?DDR3?DDR3L?
- leetcode两道题
- 临接表存图
- tolua#代码简要分析
- mac eclipse 配置ndk编译jni
- w3c网站
- MySQL数据库无法远程连接的解决办法
- session知识总结