Last active
February 4, 2019 21:33
-
-
Save HarshSingh16/74af6704ea335aeecc9a6d11784f4494 to your computer and use it in GitHub Desktop.
Pre-processing the targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Pre-processing the targets | |
def preprocess_targets(): | |
left_side=tf.fill([batch_size,1],word2int["<SOS>"]) | |
right_side=tf.strided_slice(targets,[0,0],[0,-1],[1,1]) | |
preprocessed_targets=tf.concat([left_side,right_side],1) | |
return preprocessed_targets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment