Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warning in
test_normalize
(#1876)
Summary: Return the proper type of `indices` in `get_init_args()` for `Normalize`. This would cause the following warning: ``` botorch/models/transforms/input.py:362: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor). indices = torch.tensor(indices, dtype=torch.long) ``` Pull Request resolved: #1876 Reviewed By: SebastianAment Differential Revision: D46547569 Pulled By: Balandat fbshipit-source-id: 6f7f3e15d5d80851e68e9e3b60575b807c8c24a4
- Loading branch information