Minor fix in HarmonicEmbedding docstring (#13)

Summary:
The multiplicative factors in function embeddings go from `2**0` to `2**(self.n_harmonic_functions-1)`, and not from `2**0` to `2**self.n_harmonic_functions`.

Pull Request resolved: https://github.com/fairinternal/pytorch3d/pull/13

Reviewed By: nikhilaravi

Differential Revision: D28637894

Pulled By: ignacio-rocco

fbshipit-source-id: da20f39eba9aaa09af5b24be1554a3bfd7556281
This commit is contained in:
Ignacio Rocco 2021-05-27 03:13:25 -07:00 committed by Facebook GitHub Bot
parent ed6983ea84
commit 4efadaecfc

View File

@ -257,12 +257,12 @@
" sin(2*x[..., i]),\n",
" sin(4*x[..., i]),\n",
" ...\n",
" sin(2**self.n_harmonic_functions * x[..., i]),\n",
" sin(2**(self.n_harmonic_functions-1) * x[..., i]),\n",
" cos(x[..., i]),\n",
" cos(2*x[..., i]),\n",
" cos(4*x[..., i]),\n",
" ...\n",
" cos(2**self.n_harmonic_functions * x[..., i])\n",
" cos(2**(self.n_harmonic_functions-1) * x[..., i])\n",
" ]\n",
" \n",
" Note that `x` is also premultiplied by `omega0` before\n",