При использовании Autoclass для документирования DataClass вы получаете раздел «Параметры» после класса DocStrings. Как вы можете это удалить? Вот изображение того, чего я хотел бы достичь:
edit : PrettyPrint-Override ">class Dense(Module):
"""A linear transformation applied over the last dimension of the input.
Attributes:
features: the number of output features.
use_bias: whether to add a bias to the output (default: True).
dtype: the dtype of the computation (default: infer from input and params).
param_dtype: the dtype passed to parameter initializers (default: float32).
precision: numerical precision of the computation see `jax.lax.Precision`
for details.
"""
features: int
use_bias: bool = True
dtype: Optional[Dtype] = None
param_dtype: Dtype = jnp.float32
precision: PrecisionLike = None
kernel_init: Callable[[PRNGKey, Shape, Dtype], Array] = default_kernel_init
bias_init: Callable[[PRNGKey, Shape, Dtype], Array] = zeros
Подробнее здесь: https://stackoverflow.com/questions/724 ... ass-output
Как удалить раздел «Параметры» с вывода Sphinx Autoclass ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как я могу использовать Automodule или Autoclass для Sphinx в файле разметки?
Anonymous » » в форуме Python - 0 Ответы
- 10 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Как я могу использовать Automodule или Autoclass для Sphinx в файле разметки?
Anonymous » » в форуме Python - 0 Ответы
- 9 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Вход в систему веб -сайта с помощью вывода и сохранения вывода и сохранения вывода и сеанса?
Anonymous » » в форуме Php - 0 Ответы
- 13 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Вход в систему веб -сайта с помощью вывода и сохранения вывода и сохранения вывода и сеанса?
Anonymous » » в форуме Php - 0 Ответы
- 11 Просмотры
-
Последнее сообщение Anonymous
-