Target and input must have the same number of elements. target nelement (262144) != input nelement (

NoSuchKey