Skip to content

[Doc] RandomProjectionHash init_method docstring still says TODO #4466

Description

@YeonwooSung

Motivation

RandomProjectionHash.__init__ already accepts init_method: Callable[[torch.Tensor], torch.Tensor | None] | None = None and applies it as self.init_method(self.transform) after the projection buffer is materialized. When init_method is None, the constructor falls back to torch.nn.init.normal_.

The class docstring still documents this as init_method: TODO.

Solution

Replace the TODO with a Sphinx Keyword Args: entry that states the type, the default (torch.nn.init.normal_ when None), and that the callable initializes the projection buffer.

Checklist

  • I have checked that there is no similar issue in the repo (required)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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