Skip to content

Commit

Permalink
More readthedocs fixes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 468784319
  • Loading branch information
romanngg committed Aug 19, 2022
1 parent 6019cc8 commit 9f21e6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion neural_tangents/_src/stax/branching.py
Expand Up @@ -226,7 +226,7 @@ def kernel_fn(ks: Kernels, **kwargs) -> Kernel:
raise NotImplementedError(
'`FanInConcat` layer along the non-channel axis is only implemented'
'for the case if all input layers guaranteed to be mean-zero '
'Gaussian, i.e. having all `is_gaussian set to `True`.')
'Gaussian, i.e. having all `is_gaussian` set to `True`.')
else:
# TODO(romann): allow nonlinearity after channelwise concatenation.
# TODO(romann): support concatenating different channelwise masks.
Expand Down
6 changes: 4 additions & 2 deletions neural_tangents/_src/stax/elementwise.py
Expand Up @@ -912,10 +912,12 @@ def nngp_fn_diag(nngp: np.ndarray) -> np.ndarray:
@layer
@supports_masking(remask_kernel=False)
def Polynomial(coef: Sequence[float]) -> InternalLayer:
"""Polynomials, i.e. `coef[0] + coef[1] * x + ... + coef[n] * x**n`.
"""Polynomials, i.e. `coef[0] + coef[1] * x + + coef[n] * x**n`.
Args:
coef: a sequence of coefficients. Follows `numpy.polynomial.Polynomial` API.
coef:
a sequence of coefficients. Follows
:class:`numpy.polynomial.polynomial.Polynomial` API.
Returns:
`(init_fn, apply_fn, kernel_fn)`.
Expand Down
2 changes: 1 addition & 1 deletion neural_tangents/_src/stax/linear.py
Expand Up @@ -3162,7 +3162,7 @@ def _conv_kernel_full_spatial_unshared(
Used when `kernel.diagonal_spatial == False`. Has the same outputs on the
spatial diagonal as `_conv_kernel_full_spatial_shared`, but `0` in all
off-spatial-diagonal entries. The diagonal entries are computed via calling
``_conv_kernel_diagonal_spatial`.
`_conv_kernel_diagonal_spatial`.
Args:
lhs:
Expand Down

0 comments on commit 9f21e6e

Please sign in to comment.