刚才特意找到源码看了以下:
你把 W, H, C = (x.value for x in input_data.get_shape ()[-3:]) 这条语句改成下面的试试看:
W, H, C = [x.value for x in input_data.get_shape ()[-3:]] 或者
W, H, C = [x for x in input_data.get_shape ().as_list ()[-3:]]
libertatis 发表于 2018-4-16 09:05:53
刚才特意找到源码看了以下:
你把 W, H, C = (x.value for x in input_data.get_shape ()[-3:]) 这条语句改成下面的试试看:
W, H, C = [x.value for x in input_data.get_shape ()[-3:]] 或者
W, H, C = [x for x in input_data.get_shape ().as_list ()[-3:]]
libertatis 发表于 2018-4-16 09:05:53