8000 [Feature Request] Add batch_shape property to GP models · Issue #2301 · cornellius-gp/gpytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature Request] Add batch_shape property to GP models #2301
Open
@Balandat

Description

@Balandat

🚀 Feature Request

Expose a batch_shape property on models. For Exact GPs or models that have all the training inputs, this can just return the batch shape of the input tensors. For other models this can be overwritten as needed

Motivation

See pytorch/botorch#1680 (comment) - for some fantasizing functionality we'd like to know what the batch shape of the model is to appropriately fantasize based on model outputs.

There are a lot of other use cases for such property, we currently have this defined on the botorch Model class and are using it in a number of places (check the botorch repo).

Pitch

Describe the solution you'd like
Upstream the functionality from botorch.

Describe alternatives you've considered
Not doing this. The downside is that it makes things rather cumbersome and requires some workarounds.

Are you willing to open a pull request? (We LOVE contributions!!!)
Sure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0