Skip to content

Commit 228fcff

Browse files
Kiuk Chungfacebook-github-bot
authored andcommitted
(torchx/runtime/hpo) fix ax_test for fb, cleaned up apps/* and added prepend_cwd runopt to local_scheduler + some local scheduler code cleanup (#210)
Summary: Pull Request resolved: #210 1. Makes ax_test.py work again in sandcastle 2. Clean up `apps/*` directory of unused/empty placeholder modules 3. Add `//torchx/apps:penv` python_binary to be able to deploy apps as penv 4. Add `prepend_cwd` runopt for local scheduler to prepend CWD to replica PATH so that binaries in CWD can take precedence over the ones in PATH (needed to enable ax_test in fb) 5. Some syntactical cleanup for local_scheduler 6. (minimally) deletes base_image (yes it doesn't delete all of it, I'm trying to keep the diff as relevant to enabling ax_test, but had to remove some of it to simplify local_scheduler logic) Reviewed By: aivanou Differential Revision: D31262463 fbshipit-source-id: 3f1649e4bc062f3fe6b54f13b03d11b53164fc8d
1 parent 46e4392 commit 228fcff

File tree

18 files changed

+216
-198
lines changed

18 files changed

+216
-198
lines changed

torchx/apps/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@
44
#
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
7-
8-
from .data import * # noqa F401
9-
from .train import * # noqa F401
10-
from .hpo import * # noqa F401

torchx/apps/captum/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

torchx/apps/captum/test/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

torchx/apps/data/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

torchx/apps/data/test/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

torchx/apps/hpo/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

torchx/apps/hpo/test/__init__.py

Whitespace-only changes.

torchx/apps/io/__init__.py

Whitespace-only changes.

torchx/apps/io/test/__init__.py

Whitespace-only changes.

torchx/apps/serve/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.

0 commit comments

Comments
 (0)