Tensorflow Slim: TypeError: Expected int32, got list containing Tensors of type '_Message' instead

前端 未结 4 1882
名媛妹妹
名媛妹妹 2020-12-08 13:58

I am following this tutorial for learning TensorFlow Slim but upon running the following code for Inception:

import numpy as np
import os
import tensorflow a         


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 14:35

    I found most people answering wrong way. Its just due to the change in the tf.concat. It works in the following way.

    net = tf.concat(3, [branch_0, branch_1, branch_2, branch_3])

    use the following

    net = tf.concat(values=[branch_0, branch_1, branch_2, branch_3],axis=3,)

    Remember while passing the keyword arguments should be before the others.

提交回复
热议问题