Skip to content

Remove _docs.py #165

@jamarshon

Description

@jamarshon

In #166, we add _docs.py because we can't get the doc string of a class in a @torch.jit.script_method without creating an instance (e.g using the syntax Class.method.__doc__).
So the workaround is to have _docs.py

class Spectrogram:
    forward = torchaudio.transforms.Spectrogram().forward

This creates an instance to expose the docstring to sphinx.
An issue has been made for the pytorch jit pytorch/pytorch#23394

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions