From 637847e252809b5c48ac4c941d9081476c1cdaf5 Mon Sep 17 00:00:00 2001 From: Sait Cakmak Date: Wed, 21 Jun 2023 10:05:46 -0700 Subject: [PATCH] Add missing __init__ file (#1672) Summary: ~Although I can't reproduce the error locally,~ I believe this is the cause of the `ModuleNotFoundError: No module named 'ax.models.torch.botorch_modular.input_constructors'` errors in https://github.com/pytorch/botorch/actions/runs/5329180791/jobs/9654605153 Actually, I managed to repro. This is indeed the cause / fix for those failures. Before: Screenshot 2023-06-20 at 7 26 59 PM After: Screenshot 2023-06-20 at 7 29 56 PM Pull Request resolved: https://github.com/facebook/Ax/pull/1672 Reviewed By: Balandat Differential Revision: D46884977 Pulled By: saitcakmak fbshipit-source-id: ef733027ca5a5e27765103492e7be3a178829e18 --- .../torch/botorch_modular/input_constructors/__init__.py | 5 +++++ sphinx/source/models.rst | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 ax/models/torch/botorch_modular/input_constructors/__init__.py diff --git a/ax/models/torch/botorch_modular/input_constructors/__init__.py b/ax/models/torch/botorch_modular/input_constructors/__init__.py new file mode 100644 index 00000000000..4b87eb9e4d0 --- /dev/null +++ b/ax/models/torch/botorch_modular/input_constructors/__init__.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. diff --git a/sphinx/source/models.rst b/sphinx/source/models.rst index 620284be08f..c3173fcb4a3 100644 --- a/sphinx/source/models.rst +++ b/sphinx/source/models.rst @@ -272,6 +272,14 @@ ax.models.torch.botorch_modular.kernels module :undoc-members: :show-inheritance: +ax.models.torch.botorch_modular.input_constructors.covar_modules module +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. automodule:: ax.models.torch.botorch_modular.input_constructors.covar_modules + :members: + :undoc-members: + :show-inheritance: + ax.models.torch.cbo_lcea module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~