Skip to content

Feature request: add (log_)gamma and (log_)beta functions #678

@stepelu

Description

@stepelu

It would be nice if some special math functions would be available in PyTorch with CUDA support.

I am working with neural networks with probabilistic components and as such it's necessary for me to compute the (log-)pdf, which often requires the computation of currently unavailable math functions.

A good start would be to support the gamma, log_gamma, beta, log_beta and factorial functions.

I am aware that I can write my own NumPy-based-modules, but that precludes the use of CUDA rendering training of such models basically impossible (and it's also error prone in terms of derivatives).

As an aside, great work here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    todoNot as important as medium or high priority tasks, but we will work on these.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions