Skip to content

Commit da24d7e

Browse files
Update physicsnemo/nn/module/embedding_layers.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent e592657 commit da24d7e

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

physicsnemo/nn/module/embedding_layers.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,21 +288,20 @@ class FourierPositionalEmbedding(Module):
288288
289289
Parameters
290290
----------
291-
in_dim : int, optional
292-
Dimension of the input coordinates. Default 3.
293-
num_bands : int, optional
294-
Number of frequency bands when ``freqs`` is not given. Default 10.
295-
include_input : bool, optional
296-
Prepend the raw input coordinates to the embedding. Default True.
297-
base_freq : float, optional
291+
in_dim : int, optional, default=3
292+
Dimension of the input coordinates.
293+
num_bands : int, optional, default=10
294+
Number of frequency bands when ``freqs`` is not given.
295+
include_input : bool, optional, default=True
296+
Prepend the raw input coordinates to the embedding.
297+
base_freq : float, optional, default=math.pi
298298
Frequency of the first band for the generated schedule.
299-
Default ``math.pi``.
300-
freq_scale : float, optional
299+
freq_scale : float, optional, default=2.0
301300
Geometric ratio between consecutive band frequencies for the
302-
generated schedule. Default 2.0.
303-
freqs : torch.Tensor or sequence of float, optional
301+
generated schedule.
302+
freqs : torch.Tensor or sequence of float, optional, default=None
304303
Explicit 1-D frequency schedule. Overrides ``num_bands``,
305-
``base_freq`` and ``freq_scale`` when provided. Default None.
304+
``base_freq`` and ``freq_scale`` when provided.
306305
307306
Forward
308307
-------

0 commit comments

Comments
 (0)