mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Python 2 compatibility. (#5887)
This commit is contained in:
@@ -52,7 +52,7 @@ To use Ray's actor model:
|
||||
ray.init()
|
||||
|
||||
@ray.remote
|
||||
class Counter():
|
||||
class Counter(object):
|
||||
def __init__(self):
|
||||
self.n = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user