Как удалить раздел «Параметры» с вывода Sphinx AutoclassPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Как удалить раздел «Параметры» с вывода Sphinx Autoclass

Сообщение Anonymous »

При использовании 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
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»