Skip to content

Commit

Permalink
Merge pull request MPolaris#9 from MPolaris/dev
Browse files Browse the repository at this point in the history
Expand update
  • Loading branch information
MPolaris authored Sep 23, 2022
2 parents dee84a0 + 981c07a commit 22e2a9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layers/deformation_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def __call__(self, inputs):
for i in range(len(self.shape)):
if int(self.shape[i]//inputs.shape[i]) > 1:
inputs = tf.repeat(inputs, repeats=int(self.shape[i]//inputs.shape[i]), axis=i)
elif self.shape[i] < inputs.shape[i] and self.shape[i] != 1:
inputs = tf.repeat(inputs, repeats=int(self.shape[i]), axis=i)
return inputs

@OPERATOR.register_operator("Unsqueeze")
Expand Down

0 comments on commit 22e2a9f

Please sign in to comment.