MatchPyramid-TensorFlow icon indicating copy to clipboard operation
MatchPyramid-TensorFlow copied to clipboard

pos neg strided_slice bug?

Open gokunwu opened this issue 8 years ago • 2 comments

https://github.com/pl8787/MatchPyramid-TensorFlow/blob/36271e46e8301fc429e52ebcb40bae91b41bc24b/model/model_mp.py#L59-L60

should be: pos = tf.strided_slice(self.pred, [0], [self.batch_size * 2], [2]) neg = tf.strided_slice(self.pred, [1], [self.batch_size * 2], [2]) ?

gokunwu avatar Oct 31 '18 03:10 gokunwu

@earthwu It is right here, because self.batch_size = tf.shape(self.X1)[0] and the first dimension of X1 equals to 2 times original batch size.

pl8787 avatar Nov 11 '18 01:11 pl8787

@earthwu It is right here, because self.batch_size = tf.shape(self.X1)[0] and the first dimension of X1 equals to 2 times original batch size.

yes, i kown you are right

gokunwu avatar Nov 20 '18 09:11 gokunwu