Skip to content

Commit

Permalink
TFLite fix 2 (#9518)
Browse files Browse the repository at this point in the history
* TFLite fix 2

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
glenn-jocher and pre-commit-ci[bot] authored Sep 20, 2022
1 parent bd35191 commit c0d9713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def call(self, inputs):
y = tf.concat([xy, wh, tf.sigmoid(y[..., 4:5 + self.nc]), y[..., 5 + self.nc:]], -1)
z.append(tf.reshape(y, [-1, self.na * ny * nx, self.no]))

return tf.transpose(x, [0, 2, 1, 3]) if self.training else (tf.concat(z, 1), x)
return tf.transpose(x, [0, 2, 1, 3]) if self.training else (tf.concat(z, 1),)

@staticmethod
def _make_grid(nx=20, ny=20):
Expand Down

0 comments on commit c0d9713

Please sign in to comment.