I implemented some code with tf.tile and got this error message:
InvalidArgumentError : expected multiples argument to be a vector of length 2 but got length 3
The code is quite complicated and I can't directly find out what caused the error. So I made some dummy codes to reproduce the error, so that I may understand which value was the source of the error. However, I can't figure out how to reproduce this error with dummy code.
I tried to do it like this:
import tensorflow as tf
a = tf.constant([[1,2,3],[2,3,4]])
b = tf.tile(a, [1,1,3])
This gives me error the message:
Shape must be rank 2 but is rank 3 for 'Tile_0' with input shapes:~~
Can anybody provide some example code that can reproduce my original error?