8000 [Bug] `ard_num_dims` no longer passed from `LinearKernel` to `Kernel` base class · Issue #2633 · cornellius-gp/gpytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] ard_num_dims no longer passed from LinearKernel to Kernel base class #2633
Closed
@AdrianSosic

Description

@AdrianSosic

🐛 Bug

With the newest release, the ard_num_dims attribute (and potentially others!?) is no longer set in the Kernel base class. I think the problem is that it entered via kwargs in the previous version but now comes as an explicit parameter, which was perhaps forgotten to be passed to the super().__init__ call?

To reproduce

Code snippet to reproduce

from gpytorch.kernels import LinearKernel

print(LinearKernel(ard_num_dims=1).ard_num_dims)

Stack trace/error message

1  # gpytorch==1.13
None  # gpytorch==1.14

System information

Please complete the following information:

  • GPyTorch Version: 1.14
  • PyTorch Version: 2.5.1
  • Computer OS: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0