本文主要是介绍【分布式Tensorflow(0.11.0)问题 未解决】 alexnet_v2/pool1/MaxPool : tensor_in must be 4-dimensional,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
系统:linux Centos 7.1
Tensorflow版本:0.11.0 whl 安装
出错信息:
tensorflow.python.framework.errors_impl.InvalidArgumentError: tensor_in must be 4-dimensional[[Node: alexnet_v2/pool1/MaxPool = MaxPool[T=DT_FLOAT, data_format="NHWC", ksize=[1, 3, 3, 1], padding="VALID", strides=[1, 2, 2, 1], _device="/job:worker/replica:0/task:0/cpu:0"](alexnet_v2/conv1/Relu)]]
源代码
from __future__ import absolute_import
from __future__ import division
from __future__ import print_functionimport argparse
from datetime import datetime
import math
import sys
import timefrom six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tftf.app.flags.DEFINE_string("ps_hosts", "", "Comma-separated list of hostname:port pairs")
tf.app.flags.DEFINE_string("worker_hosts", "", "Comma-separated list of hostname:port pairs")tf.app.flags.DEFINE_string("job_name", "", "One of 'ps', 'worker'")
tf.app.flags.DEFIN
这篇关于【分布式Tensorflow(0.11.0)问题 未解决】 alexnet_v2/pool1/MaxPool : tensor_in must be 4-dimensional的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!