Skip to content

torch.distributions.multinomial.Multinomial cannot be used in batch #42407

@J-zin

Description

@J-zin

torch.distributions.multinomial.Multinomial(total_count=1, probs=None, logits=None, validate_args=None)

the total_count is must be int, but not tensor, so I can't use this function in a batch scenario. It's quite inconvenient.
image

cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA request for a proper, new feature.module: distributionsRelated to torch.distributionstriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions