Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3.11 compliance for dataclasses: Don't use mutable defaults (#…
…1927) Summary: ## Motivation See error here: https://github.com/pytorch/botorch/actions/runs/5508336054/jobs/10039481686?pr=1924 * Tested with a tensor instead of a `DenseContainer` since we needed something non-mutable * Added a test that the tensor is properly cast to a `DenseContainer` * made code more readable (for me anyway) ### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)? Yes Pull Request resolved: #1927 Test Plan: Units ## Related PRs Unblocks #1924 Reviewed By: saitcakmak Differential Revision: D47341881 Pulled By: esantorella fbshipit-source-id: 64c497504bffde8cc227dff8eaaa85e17aa36b95
- Loading branch information