Created
August 26, 2018 17:44
-
-
Save NMZivkovic/bb76d48a9cd0d3973a19435082b63592 to your computer and use it in GitHub Desktop.
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
def _generate_index_matrix(self, x,y): | |
return tf.constant(np.array(list(self._iterator(x, y)))) | |
def _iterator(self, x, y): | |
for i in range(x): | |
for j in range(y): | |
yield np.array([i, j]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment