Skip to content

Commit

Permalink
Move orca learn ray tests to a ray sub dir (intel-analytics#2577)
Browse files Browse the repository at this point in the history
* move orca learn ray tests to a ray sub dir

* fix path
  • Loading branch information
yangw1234 committed Sep 26, 2021
1 parent e550ab2 commit c4477d3
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def forward(self, x):

class TestMXNetSparkXShards(TestCase):
def test_xshards_symbol_with_val(self):
resource_path = os.path.join(os.path.split(__file__)[0], "../../../resources")
resource_path = os.path.join(os.path.split(__file__)[0], "../../../../resources")
train_file_path = os.path.join(resource_path, "orca/learn/single_input_json/train")
train_data_shard = zoo.orca.data.pandas.read_json(
train_file_path, orient='records', lines=False).transform_shard(prepare_data_symbol)
Expand All @@ -99,7 +99,7 @@ def test_xshards_symbol_with_val(self):
estimator.shutdown()

def test_xshards_symbol_without_val(self):
resource_path = os.path.join(os.path.split(__file__)[0], "../../../resources")
resource_path = os.path.join(os.path.split(__file__)[0], "../../../../resources")
train_file_path = os.path.join(resource_path, "orca/learn/single_input_json/train")
train_data_shard = zoo.orca.data.pandas.read_json(
train_file_path, orient='records', lines=False).transform_shard(prepare_data_symbol)
Expand All @@ -110,7 +110,7 @@ def test_xshards_symbol_without_val(self):
estimator.shutdown()

def test_xshards_gluon(self):
resource_path = os.path.join(os.path.split(__file__)[0], "../../../resources")
resource_path = os.path.join(os.path.split(__file__)[0], "../../../../resources")
train_file_path = os.path.join(resource_path, "orca/learn/single_input_json/train")
train_data_shard = zoo.orca.data.pandas.read_json(
train_file_path, orient='records', lines=False).transform_shard(prepare_data_gluon)
Expand Down
15 changes: 15 additions & 0 deletions python/orca/test/bigdl/orca/learn/ray/pytorch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

0 comments on commit c4477d3

Please sign in to comment.