Guest User

Untitled

a guest
Nov 22nd, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def unique_idx(x):
  2. output = tf.unique(x)
  3. return output[1]
  4.  
  5. inp1 = Input(batch_shape(None, 1))
  6. idx = Lambda(unique_idx)(inp1)
  7.  
  8. model = Model(inputs=inp1, outputs=idx)
Add Comment
Please, Sign In to add comment