Skip to content

Commit

Permalink
remove ray file level imports from shard.py (intel-analytics#3030)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangw1234 committed Sep 26, 2021
1 parent f14efe5 commit 80a3935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/orca/src/bigdl/orca/data/shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#
from py4j.protocol import Py4JError

from zoo.orca.data.ray_rdd import RayRdd
from zoo.orca.data.utils import *
from zoo.orca import OrcaContext
from zoo.common.nncontext import init_nncontext
Expand Down Expand Up @@ -160,6 +159,7 @@ def to_spark_xshards(self):

@staticmethod
def from_spark_xshards(spark_xshards):
from zoo.orca.data.ray_rdd import RayRdd
ray_rdd = RayRdd.from_spark_rdd(spark_xshards.rdd)
return RayXShards(ray_rdd)

Expand Down

0 comments on commit 80a3935

Please sign in to comment.