http://www.cnblogs.com/yssongest/p/5303151.html 双线性插值算法及需要注意事项 input = tf.placeholder(tf.float32, shape=(1,2, 2,1)) image = np.ndarray(shape=(1,2,2,1),dtype='float32') image[0,0,1,0] = 1 image[0,1,0,0] = 2 image[0,1,1,0] = 3 resize = tf.image.resize_…