Skip to content

Commit

Permalink
ensure shape
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenWizard2015 committed Apr 10, 2024
1 parent 8590866 commit 1680f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NN/Nerf2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ def getChunk(ind, sz):
latents = self._withExtraLatents(latents=latents, src=src, points=posC)
# get residuals if needed
residual = self._withResidual(src, points=posCB)
residual = tf.reshape(residual, (flatB, -1))
residual = tf.reshape(residual, (-1, 3))
tf.assert_equal(tf.shape(residual), (flatB, 3))
return dict(
latents=latents, pos=posC, reverseArgs=reverseArgs, value=value,
residual=residual
Expand Down

0 comments on commit 1680f9d

Please sign in to comment.