repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
ray-project/ray
python/ray/worker.py
register_custom_serializer
def register_custom_serializer(cls, use_pickle=False, use_dict=False, serializer=None, deserializer=None, local=False, driver_id=None, class_id=None): """Enable serialization and deserialization for a particular class. This method runs the register_class function defined below on every worker, which will enable ray to properly serialize and deserialize objects of this class. Args: cls (type): The class that ray should use this custom serializer for. use_pickle (bool): If true, then objects of this class will be serialized using pickle. use_dict: If true, then objects of this class be serialized turning their __dict__ fields into a dictionary. Must be False if use_pickle is true. serializer: The custom serializer to use. This should be provided if and only if use_pickle and use_dict are False. deserializer: The custom deserializer to use. This should be provided if and only if use_pickle and use_dict are False. local: True if the serializers should only be registered on the current worker. This should usually be False. driver_id: ID of the driver that we want to register the class for. class_id: ID of the class that we are registering. If this is not specified, we will calculate a new one inside the function. Raises: Exception: An exception is raised if pickle=False and the class cannot be efficiently serialized by Ray. This can also raise an exception if use_dict is true and cls is not pickleable. """ worker = global_worker assert (serializer is None) == (deserializer is None), ( "The serializer/deserializer arguments must both be provided or " "both not be provided.") use_custom_serializer = (serializer is not None) assert use_custom_serializer + use_pickle + use_dict == 1, ( "Exactly one of use_pickle, use_dict, or serializer/deserializer must " "be specified.") if use_dict: # Raise an exception if cls cannot be serialized efficiently by Ray. serialization.check_serializable(cls) if class_id is None: if not local: # In this case, the class ID will be used to deduplicate the class # across workers. Note that cloudpickle unfortunately does not # produce deterministic strings, so these IDs could be different # on different workers. We could use something weaker like # cls.__name__, however that would run the risk of having # collisions. # TODO(rkn): We should improve this. try: # Attempt to produce a class ID that will be the same on each # worker. However, determinism is not guaranteed, and the # result may be different on different workers. class_id = _try_to_compute_deterministic_class_id(cls) except Exception: raise serialization.CloudPickleError("Failed to pickle class " "'{}'".format(cls)) else: # In this case, the class ID only needs to be meaningful on this # worker and not across workers. class_id = _random_string() # Make sure class_id is a string. class_id = ray.utils.binary_to_hex(class_id) if driver_id is None: driver_id = worker.task_driver_id assert isinstance(driver_id, DriverID) def register_class_for_serialization(worker_info): # TODO(rkn): We need to be more thoughtful about what to do if custom # serializers have already been registered for class_id. In some cases, # we may want to use the last user-defined serializers and ignore # subsequent calls to register_custom_serializer that were made by the # system. serialization_context = worker_info[ "worker"].get_serialization_context(driver_id) serialization_context.register_type( cls, class_id, pickle=use_pickle, custom_serializer=serializer, custom_deserializer=deserializer) if not local: worker.run_function_on_all_workers(register_class_for_serialization) else: # Since we are pickling objects of this class, we don't actually need # to ship the class definition. register_class_for_serialization({"worker": worker})
python
def register_custom_serializer(cls, use_pickle=False, use_dict=False, serializer=None, deserializer=None, local=False, driver_id=None, class_id=None): """Enable serialization and deserialization for a particular class. This method runs the register_class function defined below on every worker, which will enable ray to properly serialize and deserialize objects of this class. Args: cls (type): The class that ray should use this custom serializer for. use_pickle (bool): If true, then objects of this class will be serialized using pickle. use_dict: If true, then objects of this class be serialized turning their __dict__ fields into a dictionary. Must be False if use_pickle is true. serializer: The custom serializer to use. This should be provided if and only if use_pickle and use_dict are False. deserializer: The custom deserializer to use. This should be provided if and only if use_pickle and use_dict are False. local: True if the serializers should only be registered on the current worker. This should usually be False. driver_id: ID of the driver that we want to register the class for. class_id: ID of the class that we are registering. If this is not specified, we will calculate a new one inside the function. Raises: Exception: An exception is raised if pickle=False and the class cannot be efficiently serialized by Ray. This can also raise an exception if use_dict is true and cls is not pickleable. """ worker = global_worker assert (serializer is None) == (deserializer is None), ( "The serializer/deserializer arguments must both be provided or " "both not be provided.") use_custom_serializer = (serializer is not None) assert use_custom_serializer + use_pickle + use_dict == 1, ( "Exactly one of use_pickle, use_dict, or serializer/deserializer must " "be specified.") if use_dict: # Raise an exception if cls cannot be serialized efficiently by Ray. serialization.check_serializable(cls) if class_id is None: if not local: # In this case, the class ID will be used to deduplicate the class # across workers. Note that cloudpickle unfortunately does not # produce deterministic strings, so these IDs could be different # on different workers. We could use something weaker like # cls.__name__, however that would run the risk of having # collisions. # TODO(rkn): We should improve this. try: # Attempt to produce a class ID that will be the same on each # worker. However, determinism is not guaranteed, and the # result may be different on different workers. class_id = _try_to_compute_deterministic_class_id(cls) except Exception: raise serialization.CloudPickleError("Failed to pickle class " "'{}'".format(cls)) else: # In this case, the class ID only needs to be meaningful on this # worker and not across workers. class_id = _random_string() # Make sure class_id is a string. class_id = ray.utils.binary_to_hex(class_id) if driver_id is None: driver_id = worker.task_driver_id assert isinstance(driver_id, DriverID) def register_class_for_serialization(worker_info): # TODO(rkn): We need to be more thoughtful about what to do if custom # serializers have already been registered for class_id. In some cases, # we may want to use the last user-defined serializers and ignore # subsequent calls to register_custom_serializer that were made by the # system. serialization_context = worker_info[ "worker"].get_serialization_context(driver_id) serialization_context.register_type( cls, class_id, pickle=use_pickle, custom_serializer=serializer, custom_deserializer=deserializer) if not local: worker.run_function_on_all_workers(register_class_for_serialization) else: # Since we are pickling objects of this class, we don't actually need # to ship the class definition. register_class_for_serialization({"worker": worker})
[ "def", "register_custom_serializer", "(", "cls", ",", "use_pickle", "=", "False", ",", "use_dict", "=", "False", ",", "serializer", "=", "None", ",", "deserializer", "=", "None", ",", "local", "=", "False", ",", "driver_id", "=", "None", ",", "class_id", "=", "None", ")", ":", "worker", "=", "global_worker", "assert", "(", "serializer", "is", "None", ")", "==", "(", "deserializer", "is", "None", ")", ",", "(", "\"The serializer/deserializer arguments must both be provided or \"", "\"both not be provided.\"", ")", "use_custom_serializer", "=", "(", "serializer", "is", "not", "None", ")", "assert", "use_custom_serializer", "+", "use_pickle", "+", "use_dict", "==", "1", ",", "(", "\"Exactly one of use_pickle, use_dict, or serializer/deserializer must \"", "\"be specified.\"", ")", "if", "use_dict", ":", "# Raise an exception if cls cannot be serialized efficiently by Ray.", "serialization", ".", "check_serializable", "(", "cls", ")", "if", "class_id", "is", "None", ":", "if", "not", "local", ":", "# In this case, the class ID will be used to deduplicate the class", "# across workers. Note that cloudpickle unfortunately does not", "# produce deterministic strings, so these IDs could be different", "# on different workers. We could use something weaker like", "# cls.__name__, however that would run the risk of having", "# collisions.", "# TODO(rkn): We should improve this.", "try", ":", "# Attempt to produce a class ID that will be the same on each", "# worker. However, determinism is not guaranteed, and the", "# result may be different on different workers.", "class_id", "=", "_try_to_compute_deterministic_class_id", "(", "cls", ")", "except", "Exception", ":", "raise", "serialization", ".", "CloudPickleError", "(", "\"Failed to pickle class \"", "\"'{}'\"", ".", "format", "(", "cls", ")", ")", "else", ":", "# In this case, the class ID only needs to be meaningful on this", "# worker and not across workers.", "class_id", "=", "_random_string", "(", ")", "# Make sure class_id is a string.", "class_id", "=", "ray", ".", "utils", ".", "binary_to_hex", "(", "class_id", ")", "if", "driver_id", "is", "None", ":", "driver_id", "=", "worker", ".", "task_driver_id", "assert", "isinstance", "(", "driver_id", ",", "DriverID", ")", "def", "register_class_for_serialization", "(", "worker_info", ")", ":", "# TODO(rkn): We need to be more thoughtful about what to do if custom", "# serializers have already been registered for class_id. In some cases,", "# we may want to use the last user-defined serializers and ignore", "# subsequent calls to register_custom_serializer that were made by the", "# system.", "serialization_context", "=", "worker_info", "[", "\"worker\"", "]", ".", "get_serialization_context", "(", "driver_id", ")", "serialization_context", ".", "register_type", "(", "cls", ",", "class_id", ",", "pickle", "=", "use_pickle", ",", "custom_serializer", "=", "serializer", ",", "custom_deserializer", "=", "deserializer", ")", "if", "not", "local", ":", "worker", ".", "run_function_on_all_workers", "(", "register_class_for_serialization", ")", "else", ":", "# Since we are pickling objects of this class, we don't actually need", "# to ship the class definition.", "register_class_for_serialization", "(", "{", "\"worker\"", ":", "worker", "}", ")" ]
Enable serialization and deserialization for a particular class. This method runs the register_class function defined below on every worker, which will enable ray to properly serialize and deserialize objects of this class. Args: cls (type): The class that ray should use this custom serializer for. use_pickle (bool): If true, then objects of this class will be serialized using pickle. use_dict: If true, then objects of this class be serialized turning their __dict__ fields into a dictionary. Must be False if use_pickle is true. serializer: The custom serializer to use. This should be provided if and only if use_pickle and use_dict are False. deserializer: The custom deserializer to use. This should be provided if and only if use_pickle and use_dict are False. local: True if the serializers should only be registered on the current worker. This should usually be False. driver_id: ID of the driver that we want to register the class for. class_id: ID of the class that we are registering. If this is not specified, we will calculate a new one inside the function. Raises: Exception: An exception is raised if pickle=False and the class cannot be efficiently serialized by Ray. This can also raise an exception if use_dict is true and cls is not pickleable.
[ "Enable", "serialization", "and", "deserialization", "for", "a", "particular", "class", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L2048-L2148
train
This function registers a custom serializer for a particular class.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMC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s,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + '\062' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(111) + chr(50) + '\063' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x32' + '\064' + '\062', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b110011 + 0o74) + chr(898 - 849) + chr(552 - 497) + '\067', 14637 - 14629), ehT0Px3KOsy9('\060' + chr(0b111001 + 0o66) + '\x31' + chr(54) + chr(1141 - 1089), 55822 - 55814), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\157' + '\x32' + '\x32' + chr(0b10001 + 0o37), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + chr(156 - 105) + chr(0b1 + 0o61), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6486 - 6375) + '\061' + '\062' + chr(0b10011 + 0o44), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10 + 0o60) + chr(156 - 105) + chr(0b110010 + 0o2), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(4913 - 4802) + chr(2730 - 2676) + chr(50), 0b1000), ehT0Px3KOsy9(chr(2233 - 2185) + chr(0b1101111) + chr(50) + '\x31' + chr(0b100000 + 0o22), ord("\x08")), ehT0Px3KOsy9(chr(1803 - 1755) + chr(111) + chr(0b110110) + chr(0b100011 + 0o15), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(54) + chr(0b10110 + 0o40), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b11111 + 0o22) + chr(49) + chr(0b110101), 48313 - 48305), ehT0Px3KOsy9('\x30' + chr(0b111 + 0o150) + chr(1868 - 1817) + '\x30' + '\x35', 6795 - 6787), ehT0Px3KOsy9('\x30' + chr(9513 - 9402) + '\062' + chr(55) + '\x31', 0o10), ehT0Px3KOsy9(chr(1671 - 1623) + chr(0b1101111) + '\063' + chr(1150 - 1098) + chr(48), 0o10), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1111 + 0o140) + chr(0b110011) + '\x31' + chr(0b110111), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + '\062' + chr(0b11100 + 0o30), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101001 + 0o12) + chr(0b110001) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(5329 - 5218) + '\061' + '\062' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(1004 - 956) + '\157' + '\063' + '\x33' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10110 + 0o35) + '\x32' + chr(0b10101 + 0o34), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(53) + '\x32', 0b1000), ehT0Px3KOsy9(chr(171 - 123) + '\157' + chr(0b101 + 0o56) + '\064' + chr(54), 924 - 916), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + chr(55) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x31' + chr(1251 - 1196) + '\062', 13117 - 13109), ehT0Px3KOsy9(chr(48) + chr(0b1 + 0o156) + chr(0b10101 + 0o35) + chr(2751 - 2697), 0b1000), ehT0Px3KOsy9('\060' + chr(8676 - 8565) + chr(0b101111 + 0o4) + '\x37' + '\065', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100010 + 0o17) + chr(51) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101010 + 0o5) + chr(51) + chr(48) + '\x37', 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\157' + '\061' + chr(1680 - 1629) + chr(1540 - 1491), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x34' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\x6f' + '\x34' + chr(258 - 209), 9992 - 9984), ehT0Px3KOsy9(chr(48) + chr(0b111000 + 0o67) + chr(0b110010) + '\063', 0b1000), ehT0Px3KOsy9(chr(1931 - 1883) + '\157' + chr(49) + chr(50), 0b1000), ehT0Px3KOsy9(chr(1711 - 1663) + '\157' + chr(0b110001) + chr(54) + chr(49), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(1348 - 1299) + '\063' + chr(2021 - 1973), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b0 + 0o157) + chr(0b101010 + 0o10) + chr(55) + '\x37', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b1000 + 0o147) + '\x35' + chr(48), 14981 - 14973)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb'), '\144' + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b100111 + 0o77) + chr(0b101101) + chr(0b101010 + 0o16)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def mCiUIaeXcvtr(NSstowUUZlxS, ku7uRo_sTmlK=ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110000), 0b1000), V_hUNeC4ufJp=ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110000), 8), SCdqlfw0aKEP=None, zuWs155KQlej=None, eIF9i_6N6Pnk=ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\060', 8), xrb3JXGvKq_I=None, BshyLHM1dmii=None): sijXcSaDomT1 = Fn_g0gvMIHCm assert (SCdqlfw0aKEP is None) == (zuWs155KQlej is None), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc1\xf7\xc7_\x07\xf5(j6\xf0[\xf0U\xc4b\xa1\xdc\x93\xaa\xa6\xa72\xb0\xb8\x90\x83\nZw\x8f8\xb24FOgyQ5\xca\xe6\xeb\x82\x1d\x1b\xe42#5\xf9\x12\xfaB\xd9;\xac\xdd\x85\xab\xf4\xa1!\xfc\xb3\x85\x92\x10Zx\x92+\xe7;F\x01cx\x1e.\xd6\xf1\xfa\xc6Q'), chr(0b111110 + 0o46) + chr(0b1100101) + chr(9720 - 9621) + chr(0b1101111) + chr(9944 - 9844) + chr(8837 - 8736))(chr(0b101 + 0o160) + chr(0b1000 + 0o154) + chr(0b1110 + 0o130) + '\x2d' + '\070') JMJnxQvb5PPM = SCdqlfw0aKEP is not None assert JMJnxQvb5PPM + ku7uRo_sTmlK + V_hUNeC4ufJp == ehT0Px3KOsy9(chr(48) + chr(6485 - 6374) + chr(0b1000 + 0o51), 43863 - 43855), xafqLlk3kkUe(SXOLrMavuUCe(b'\xd0\xe7\xc3\x1c\x00\xfc##8\xf2W\xaa_\xd0m\xb0\xca\x85\x90\xa4\xa70\xb7\xbd\x8f\xcaX\x0fe\x98\x00\xa30@U?*\x1e*\x9f\xe6\xfa\xd0\x16\x15\xfc3y2\xee\x1d\xeeU\xc5(\xb7\xd0\x81\xa3\xbd\xb46\xae\xf1\x87\x93\x0b\x0e6\x9f:\xe7*SDpc\x171\xda\xf1\xb1'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\x64' + chr(0b1100101))(chr(117) + chr(0b11100 + 0o130) + chr(0b1001110 + 0o30) + '\055' + '\x38') if V_hUNeC4ufJp: xafqLlk3kkUe(ZIuo0KBgiGez, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6\xf7\xc7\x1c\x1f\xcf)f%\xf5S\xe6Y\xcc,\xa7\xd5\x85'), chr(100) + chr(0b0 + 0o145) + chr(9244 - 9145) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110011 + 0o2) + chr(0b1110100) + chr(10300 - 10198) + chr(969 - 924) + chr(1558 - 1502)))(NSstowUUZlxS) if BshyLHM1dmii is None: if not eIF9i_6N6Pnk: try: BshyLHM1dmii = CaMWDFEmy9eq(NSstowUUZlxS) except jLmadlzMdunT: raise xafqLlk3kkUe(ZIuo0KBgiGez, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\xf3\xcd\n\x10\xc03`<\xf0W\xcfB\xc4"\xb7'), '\144' + chr(9099 - 8998) + '\143' + '\157' + chr(0b1100100) + chr(101))('\165' + '\x74' + chr(0b1011111 + 0o7) + chr(0b101101) + '\070'))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3\xfe\xcb\x13\x11\xf4zw8\xbcB\xe3S\xdd!\xa0\x99\x83\xa3\xb5\xbd \xfc\xf6\x91\x9b_'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b111010 + 0o52) + chr(101))(chr(0b1110101) + chr(116) + chr(5971 - 5869) + chr(500 - 455) + chr(0b10 + 0o66)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc3\xab\xd0\x10<\xf1\t0\x07\xecW\xe0'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(101))(chr(3344 - 3227) + chr(0b1011010 + 0o32) + chr(8933 - 8831) + chr(45) + chr(56)))(NSstowUUZlxS)) else: BshyLHM1dmii = _ziDFDWKkR8w() BshyLHM1dmii = H9zaXRrGK6Cq.utils.binary_to_hex(BshyLHM1dmii) if xrb3JXGvKq_I is None: xrb3JXGvKq_I = sijXcSaDomT1.kKUFZvz2Gqts assert PlSM16l2KDPD(xrb3JXGvKq_I, bAkkLgl6Zv7t) def H5xtn3eRPuqu(xAj9EW_R7udH): _bqQfnqZP_Lp = xAj9EW_R7udH[xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\xf0\xd0\x14\x11\xe2'), chr(100) + '\145' + chr(4929 - 4830) + chr(111) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + '\x66' + chr(360 - 315) + chr(56))].get_serialization_context(xrb3JXGvKq_I) xafqLlk3kkUe(_bqQfnqZP_Lp, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\xfa\xc5\x16\x07\xe4?q\x08\xe8K\xfaU'), chr(1863 - 1763) + chr(0b1 + 0o144) + '\143' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1001101 + 0o47) + chr(7085 - 6983) + chr(0b101000 + 0o5) + '\x38'))(NSstowUUZlxS, BshyLHM1dmii, pickle=ku7uRo_sTmlK, custom_serializer=SCdqlfw0aKEP, custom_deserializer=zuWs155KQlej) if not eIF9i_6N6Pnk: xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\xea\xcc \x12\xe54`#\xf5]\xe4o\xd9#\x9a\xd8\x8c\xa3\x8b\xb9<\xae\xba\x8f\x94\x0b'), chr(0b1100100) + chr(101) + chr(2288 - 2189) + '\x6f' + '\144' + chr(3837 - 3736))('\165' + chr(4584 - 4468) + chr(0b1100110) + chr(864 - 819) + chr(56)))(H5xtn3eRPuqu) else: H5xtn3eRPuqu({xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\xf0\xd0\x14\x11\xe2'), chr(6874 - 6774) + chr(101) + chr(0b111010 + 0o51) + '\157' + chr(0b111110 + 0o46) + chr(101))(chr(0b1011 + 0o152) + '\164' + chr(0b1100110) + chr(575 - 530) + '\x38'): sijXcSaDomT1})
ray-project/ray
python/ray/worker.py
get
def get(object_ids): """Get a remote object or a list of remote objects from the object store. This method blocks until the object corresponding to the object ID is available in the local object store. If this object is not in the local object store, it will be shipped from an object store that has it (once the object has been created). If object_ids is a list, then the objects corresponding to each object in the list will be returned. Args: object_ids: Object ID of the object to get or a list of object IDs to get. Returns: A Python object or a list of Python objects. Raises: Exception: An exception is raised if the task that created the object or that created one of the objects raised an exception. """ worker = global_worker worker.check_connected() with profiling.profile("ray.get"): if worker.mode == LOCAL_MODE: # In LOCAL_MODE, ray.get is the identity operation (the input will # actually be a value not an objectid). return object_ids global last_task_error_raise_time if isinstance(object_ids, list): values = worker.get_object(object_ids) for i, value in enumerate(values): if isinstance(value, RayError): last_task_error_raise_time = time.time() raise value return values else: value = worker.get_object([object_ids])[0] if isinstance(value, RayError): # If the result is a RayError, then the task that created # this object failed, and we should propagate the error message # here. last_task_error_raise_time = time.time() raise value return value
python
def get(object_ids): """Get a remote object or a list of remote objects from the object store. This method blocks until the object corresponding to the object ID is available in the local object store. If this object is not in the local object store, it will be shipped from an object store that has it (once the object has been created). If object_ids is a list, then the objects corresponding to each object in the list will be returned. Args: object_ids: Object ID of the object to get or a list of object IDs to get. Returns: A Python object or a list of Python objects. Raises: Exception: An exception is raised if the task that created the object or that created one of the objects raised an exception. """ worker = global_worker worker.check_connected() with profiling.profile("ray.get"): if worker.mode == LOCAL_MODE: # In LOCAL_MODE, ray.get is the identity operation (the input will # actually be a value not an objectid). return object_ids global last_task_error_raise_time if isinstance(object_ids, list): values = worker.get_object(object_ids) for i, value in enumerate(values): if isinstance(value, RayError): last_task_error_raise_time = time.time() raise value return values else: value = worker.get_object([object_ids])[0] if isinstance(value, RayError): # If the result is a RayError, then the task that created # this object failed, and we should propagate the error message # here. last_task_error_raise_time = time.time() raise value return value
[ "def", "get", "(", "object_ids", ")", ":", "worker", "=", "global_worker", "worker", ".", "check_connected", "(", ")", "with", "profiling", ".", "profile", "(", "\"ray.get\"", ")", ":", "if", "worker", ".", "mode", "==", "LOCAL_MODE", ":", "# In LOCAL_MODE, ray.get is the identity operation (the input will", "# actually be a value not an objectid).", "return", "object_ids", "global", "last_task_error_raise_time", "if", "isinstance", "(", "object_ids", ",", "list", ")", ":", "values", "=", "worker", ".", "get_object", "(", "object_ids", ")", "for", "i", ",", "value", "in", "enumerate", "(", "values", ")", ":", "if", "isinstance", "(", "value", ",", "RayError", ")", ":", "last_task_error_raise_time", "=", "time", ".", "time", "(", ")", "raise", "value", "return", "values", "else", ":", "value", "=", "worker", ".", "get_object", "(", "[", "object_ids", "]", ")", "[", "0", "]", "if", "isinstance", "(", "value", ",", "RayError", ")", ":", "# If the result is a RayError, then the task that created", "# this object failed, and we should propagate the error message", "# here.", "last_task_error_raise_time", "=", "time", ".", "time", "(", ")", "raise", "value", "return", "value" ]
Get a remote object or a list of remote objects from the object store. This method blocks until the object corresponding to the object ID is available in the local object store. If this object is not in the local object store, it will be shipped from an object store that has it (once the object has been created). If object_ids is a list, then the objects corresponding to each object in the list will be returned. Args: object_ids: Object ID of the object to get or a list of object IDs to get. Returns: A Python object or a list of Python objects. Raises: Exception: An exception is raised if the task that created the object or that created one of the objects raised an exception.
[ "Get", "a", "remote", "object", "or", "a", "list", "of", "remote", "objects", "from", "the", "object", "store", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L2151-L2194
train
Get a remote object or a list of remote objects from the object store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X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kZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1194 - 1146) + '\157' + chr(51) + chr(0b110100) + chr(50), 27003 - 26995), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b110011) + chr(810 - 758), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b0 + 0o157) + chr(0b1 + 0o60) + chr(0b10001 + 0o37) + chr(0b11110 + 0o27), 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\157' + chr(49) + '\x30' + chr(2126 - 2077), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(2140 - 2089) + '\063' + chr(1483 - 1429), 50928 - 50920), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1011001 + 0o26) + '\x32' + chr(0b110010) + '\x30', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(402 - 351) + chr(0b110001) + chr(0b10001 + 0o40), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(1192 - 1137) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + chr(0b110011) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(6198 - 6087) + '\x32' + chr(53), 0o10), ehT0Px3KOsy9('\060' + chr(0b1010110 + 0o31) + chr(49) + chr(1891 - 1837) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011111 + 0o20) + '\x31' + chr(48) + chr(0b11001 + 0o35), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\065' + chr(1274 - 1226), 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b10110 + 0o131) + chr(0b110010) + chr(54) + chr(0b1110 + 0o44), 3176 - 3168), ehT0Px3KOsy9(chr(1591 - 1543) + chr(111) + chr(51) + chr(0b110010), 58214 - 58206), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + '\x37' + chr(0b10101 + 0o36), 0b1000), ehT0Px3KOsy9(chr(48) + chr(11212 - 11101) + chr(0b110100) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(0b110110) + '\067', 0o10), ehT0Px3KOsy9(chr(48) + chr(550 - 439) + chr(0b111 + 0o52) + '\x31' + chr(564 - 510), 0b1000), ehT0Px3KOsy9(chr(906 - 858) + '\x6f' + chr(51) + chr(0b110 + 0o54) + chr(0b1011 + 0o45), ord("\x08")), ehT0Px3KOsy9(chr(1589 - 1541) + '\x6f' + chr(0b110010) + chr(2880 - 2826) + chr(48), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b11001 + 0o126) + chr(51) + chr(0b110010) + chr(0b100111 + 0o20), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\067' + chr(0b101010 + 0o12), 45787 - 45779), ehT0Px3KOsy9('\060' + chr(111) + chr(702 - 649) + chr(0b10010 + 0o36), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(0b10001 + 0o45) + chr(0b110011), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(1763 - 1714) + chr(0b101101 + 0o11) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(1757 - 1709) + chr(111) + chr(51) + '\x34' + '\062', 8), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(0b110100) + chr(0b100101 + 0o21), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1404 - 1355) + '\062' + '\x37', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(2071 - 1960) + chr(1733 - 1684) + '\060' + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(2184 - 2133) + chr(0b110100), 8), ehT0Px3KOsy9(chr(2039 - 1991) + chr(111) + chr(806 - 751) + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x32' + '\x31' + chr(1433 - 1383), 32913 - 32905), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(0b100101 + 0o22) + chr(55), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001101 + 0o42) + chr(51) + chr(0b101000 + 0o11) + '\x30', 63023 - 63015), ehT0Px3KOsy9(chr(1129 - 1081) + '\157' + chr(0b110110) + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\062' + '\065' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(1634 - 1584) + chr(49), 47876 - 47868), ehT0Px3KOsy9(chr(0b110000) + chr(0b110101 + 0o72) + chr(2384 - 2333) + chr(0b110110) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b1101111) + '\x31', 42374 - 42366)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(4177 - 4066) + chr(911 - 858) + '\x30', 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc'), '\144' + '\x65' + '\143' + '\157' + chr(0b1100100 + 0o0) + chr(101))('\165' + chr(116) + chr(9045 - 8943) + chr(107 - 62) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Q8b5UytA0vqH(wYkLMlAXWXDn): sijXcSaDomT1 = Fn_g0gvMIHCm xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'\x814 "\xb5\xcf\xaa\xd3\xf0{\x13%\x9c\xd7~'), chr(100) + '\x65' + chr(0b1111 + 0o124) + '\x6f' + chr(0b101111 + 0o65) + chr(0b1100 + 0o131))(chr(6567 - 6450) + '\164' + chr(0b1000 + 0o136) + '\x2d' + '\070'))() with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8a0\x08-\xe8\xe6\x8e\xe3\xa8Z\x0e)'), '\x64' + '\x65' + '\x63' + '\157' + chr(100) + chr(101))('\x75' + chr(116) + chr(0b1010 + 0o134) + chr(45) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x90=<o\xb9\xf5\xbd'), '\144' + chr(7610 - 7509) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b110101 + 0o60))(chr(0b1101100 + 0o11) + '\164' + '\x66' + chr(325 - 280) + chr(2627 - 2571))): if xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8f3!$'), chr(0b1100100) + chr(7427 - 7326) + '\x63' + chr(9737 - 9626) + '\144' + chr(101))('\x75' + chr(116) + chr(0b1000010 + 0o44) + chr(0b10000 + 0o35) + chr(0b111000))) == vegegFjq4lAA: return wYkLMlAXWXDn global qUhYyFh6LYHH if PlSM16l2KDPD(wYkLMlAXWXDn, YyaZ4tpXu4lf): SPnCNu54H1db = sijXcSaDomT1.get_object(wYkLMlAXWXDn) for (WVxHKyX45z_L, QmmgWUB13VCJ) in YlkZvXL8qwsX(SPnCNu54H1db): if PlSM16l2KDPD(QmmgWUB13VCJ, MC4oN1znBE1T): qUhYyFh6LYHH = ltvhPP4VhXre.time() raise QmmgWUB13VCJ return SPnCNu54H1db else: QmmgWUB13VCJ = sijXcSaDomT1.get_object([wYkLMlAXWXDn])[ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110000), 646 - 638)] if PlSM16l2KDPD(QmmgWUB13VCJ, MC4oN1znBE1T): qUhYyFh6LYHH = ltvhPP4VhXre.time() raise QmmgWUB13VCJ return QmmgWUB13VCJ
ray-project/ray
python/ray/worker.py
put
def put(value): """Store an object in the object store. Args: value: The Python object to be stored. Returns: The object ID assigned to this value. """ worker = global_worker worker.check_connected() with profiling.profile("ray.put"): if worker.mode == LOCAL_MODE: # In LOCAL_MODE, ray.put is the identity operation. return value object_id = ray._raylet.compute_put_id( worker.current_task_id, worker.task_context.put_index, ) worker.put_object(object_id, value) worker.task_context.put_index += 1 return object_id
python
def put(value): """Store an object in the object store. Args: value: The Python object to be stored. Returns: The object ID assigned to this value. """ worker = global_worker worker.check_connected() with profiling.profile("ray.put"): if worker.mode == LOCAL_MODE: # In LOCAL_MODE, ray.put is the identity operation. return value object_id = ray._raylet.compute_put_id( worker.current_task_id, worker.task_context.put_index, ) worker.put_object(object_id, value) worker.task_context.put_index += 1 return object_id
[ "def", "put", "(", "value", ")", ":", "worker", "=", "global_worker", "worker", ".", "check_connected", "(", ")", "with", "profiling", ".", "profile", "(", "\"ray.put\"", ")", ":", "if", "worker", ".", "mode", "==", "LOCAL_MODE", ":", "# In LOCAL_MODE, ray.put is the identity operation.", "return", "value", "object_id", "=", "ray", ".", "_raylet", ".", "compute_put_id", "(", "worker", ".", "current_task_id", ",", "worker", ".", "task_context", ".", "put_index", ",", ")", "worker", ".", "put_object", "(", "object_id", ",", "value", ")", "worker", ".", "task_context", ".", "put_index", "+=", "1", "return", "object_id" ]
Store an object in the object store. Args: value: The Python object to be stored. Returns: The object ID assigned to this value.
[ "Store", "an", "object", "in", "the", "object", "store", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L2197-L2218
train
Stores an object in the object store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthd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Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100011 + 0o16) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(9465 - 9354) + chr(684 - 634) + chr(54) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1101111) + '\x31' + chr(0b110110) + chr(906 - 853), 45235 - 45227), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b10000 + 0o42) + chr(0b110101) + chr(0b110010), 10834 - 10826), ehT0Px3KOsy9(chr(871 - 823) + chr(0b100001 + 0o116) + '\063' + chr(53) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + '\063' + '\x36', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b1000 + 0o50) + '\x6f' + '\x31' + '\x34' + '\063', 0b1000), ehT0Px3KOsy9(chr(1828 - 1780) + '\x6f' + chr(423 - 372) + '\x34' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1000100 + 0o53) + chr(0b11111 + 0o24) + chr(0b10011 + 0o43) + '\061', 0o10), ehT0Px3KOsy9('\060' + chr(0b11000 + 0o127) + chr(0b110010) + chr(0b10001 + 0o40) + chr(1633 - 1583), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(52) + chr(1867 - 1817), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001) + '\067' + chr(54), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(52) + chr(1433 - 1378), 55112 - 55104), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b101000 + 0o17) + chr(0b100010 + 0o22), 0o10), ehT0Px3KOsy9('\060' + chr(0b10000 + 0o137) + '\x33' + chr(0b110011) + '\061', 0o10), ehT0Px3KOsy9(chr(1987 - 1939) + '\x6f' + chr(0b100111 + 0o14) + chr(0b110000 + 0o0) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\063', 18249 - 18241), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + chr(0b110000) + chr(2202 - 2152), 0b1000), ehT0Px3KOsy9('\x30' + chr(10485 - 10374) + chr(0b101100 + 0o5) + '\061' + '\062', 0b1000), ehT0Px3KOsy9('\x30' + chr(11129 - 11018) + '\063' + chr(0b100000 + 0o26) + chr(0b1011 + 0o46), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + '\x35' + chr(0b110011), 0o10), ehT0Px3KOsy9('\060' + chr(7202 - 7091) + chr(1375 - 1324) + chr(2161 - 2110) + '\062', 0b1000), ehT0Px3KOsy9(chr(2248 - 2200) + chr(0b1101111) + '\x32' + chr(255 - 205) + chr(895 - 845), ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(0b110011 + 0o74) + '\x31' + chr(1954 - 1904), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(2645 - 2534) + chr(0b100101 + 0o14) + chr(371 - 323) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + '\066' + chr(604 - 556), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010010 + 0o35) + '\x33' + '\060' + chr(2555 - 2503), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1001 + 0o51) + chr(640 - 588) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(0b110101) + '\060', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(1913 - 1862) + chr(0b1 + 0o65) + chr(211 - 159), 0o10), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\x6f' + chr(0b1011 + 0o46) + chr(0b11101 + 0o25) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(105 - 57) + chr(0b101001 + 0o106) + chr(0b100010 + 0o22), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110110) + chr(0b100010 + 0o22), 0b1000), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\x6f' + chr(0b110011) + chr(0b110111) + chr(2428 - 2374), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(1936 - 1886) + '\x36' + '\x32', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1923 - 1868) + chr(1414 - 1359), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b100010 + 0o21) + '\x33' + chr(53), 53438 - 53430), ehT0Px3KOsy9(chr(224 - 176) + '\157' + chr(0b110001) + '\x32' + chr(1962 - 1912), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b100010 + 0o17) + '\066' + chr(0b0 + 0o67), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\157' + '\065' + chr(271 - 223), 11668 - 11660)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'%'), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(2566 - 2465))(chr(117) + '\164' + '\x66' + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def toPNk1iz_XYX(QmmgWUB13VCJ): sijXcSaDomT1 = Fn_g0gvMIHCm xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'h\xdd\x10\xc9\x85\x81n\x0c\x8c\x9f\xef\x01\n\xc2X'), chr(0b10001 + 0o123) + '\145' + '\143' + chr(111) + '\x64' + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + chr(45) + chr(1493 - 1437)))() with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b'c\xd98\xc6\xd8\xa8J<\xd4\xbe\xf2\r'), chr(100) + chr(2734 - 2633) + chr(8045 - 7946) + '\x6f' + '\x64' + '\x65')(chr(0b1101000 + 0o15) + '\164' + '\146' + '\055' + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'y\xd4\x0c\x84\x9e\xaby'), '\x64' + chr(4904 - 4803) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1010000 + 0o25))(chr(11129 - 11012) + chr(6401 - 6285) + chr(102) + chr(0b101101) + chr(0b111000))): if xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'f\xda\x11\xcf'), chr(0b1100010 + 0o2) + '\x65' + chr(7625 - 7526) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(56))) == vegegFjq4lAA: return QmmgWUB13VCJ HTn3JlC1RoCF = H9zaXRrGK6Cq._raylet.compute_put_id(sijXcSaDomT1.SjcyWRd98p5e, sijXcSaDomT1.task_context.put_index) xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'{\xc0\x01\xf5\x81\xbcg\x06\x81\x85'), '\144' + chr(765 - 664) + '\x63' + chr(3001 - 2890) + chr(0b1001001 + 0o33) + chr(101))(chr(0b10110 + 0o137) + '\x74' + '\x66' + chr(0b101101) + chr(0b11 + 0o65)))(HTn3JlC1RoCF, QmmgWUB13VCJ) sijXcSaDomT1.task_context.iyAlZqK5N0vl += ehT0Px3KOsy9('\060' + '\157' + '\x31', 0o10) return HTn3JlC1RoCF
ray-project/ray
python/ray/worker.py
wait
def wait(object_ids, num_returns=1, timeout=None): """Return a list of IDs that are ready and a list of IDs that are not. .. warning:: The **timeout** argument used to be in **milliseconds** (up through ``ray==0.6.1``) and now it is in **seconds**. If timeout is set, the function returns either when the requested number of IDs are ready or when the timeout is reached, whichever occurs first. If it is not set, the function simply waits until that number of objects is ready and returns that exact number of object IDs. This method returns two lists. The first list consists of object IDs that correspond to objects that are available in the object store. The second list corresponds to the rest of the object IDs (which may or may not be ready). Ordering of the input list of object IDs is preserved. That is, if A precedes B in the input list, and both are in the ready list, then A will precede B in the ready list. This also holds true if A and B are both in the remaining list. Args: object_ids (List[ObjectID]): List of object IDs for objects that may or may not be ready. Note that these IDs must be unique. num_returns (int): The number of object IDs that should be returned. timeout (float): The maximum amount of time in seconds to wait before returning. Returns: A list of object IDs that are ready and a list of the remaining object IDs. """ worker = global_worker if isinstance(object_ids, ObjectID): raise TypeError( "wait() expected a list of ray.ObjectID, got a single ray.ObjectID" ) if not isinstance(object_ids, list): raise TypeError( "wait() expected a list of ray.ObjectID, got {}".format( type(object_ids))) if isinstance(timeout, int) and timeout != 0: logger.warning("The 'timeout' argument now requires seconds instead " "of milliseconds. This message can be suppressed by " "passing in a float.") if timeout is not None and timeout < 0: raise ValueError("The 'timeout' argument must be nonnegative. " "Received {}".format(timeout)) if worker.mode != LOCAL_MODE: for object_id in object_ids: if not isinstance(object_id, ObjectID): raise TypeError("wait() expected a list of ray.ObjectID, " "got list containing {}".format( type(object_id))) worker.check_connected() # TODO(swang): Check main thread. with profiling.profile("ray.wait"): # When Ray is run in LOCAL_MODE, all functions are run immediately, # so all objects in object_id are ready. if worker.mode == LOCAL_MODE: return object_ids[:num_returns], object_ids[num_returns:] # TODO(rkn): This is a temporary workaround for # https://github.com/ray-project/ray/issues/997. However, it should be # fixed in Arrow instead of here. if len(object_ids) == 0: return [], [] if len(object_ids) != len(set(object_ids)): raise Exception("Wait requires a list of unique object IDs.") if num_returns <= 0: raise Exception( "Invalid number of objects to return %d." % num_returns) if num_returns > len(object_ids): raise Exception("num_returns cannot be greater than the number " "of objects provided to ray.wait.") timeout = timeout if timeout is not None else 10**6 timeout_milliseconds = int(timeout * 1000) ready_ids, remaining_ids = worker.raylet_client.wait( object_ids, num_returns, timeout_milliseconds, False, worker.current_task_id, ) return ready_ids, remaining_ids
python
def wait(object_ids, num_returns=1, timeout=None): """Return a list of IDs that are ready and a list of IDs that are not. .. warning:: The **timeout** argument used to be in **milliseconds** (up through ``ray==0.6.1``) and now it is in **seconds**. If timeout is set, the function returns either when the requested number of IDs are ready or when the timeout is reached, whichever occurs first. If it is not set, the function simply waits until that number of objects is ready and returns that exact number of object IDs. This method returns two lists. The first list consists of object IDs that correspond to objects that are available in the object store. The second list corresponds to the rest of the object IDs (which may or may not be ready). Ordering of the input list of object IDs is preserved. That is, if A precedes B in the input list, and both are in the ready list, then A will precede B in the ready list. This also holds true if A and B are both in the remaining list. Args: object_ids (List[ObjectID]): List of object IDs for objects that may or may not be ready. Note that these IDs must be unique. num_returns (int): The number of object IDs that should be returned. timeout (float): The maximum amount of time in seconds to wait before returning. Returns: A list of object IDs that are ready and a list of the remaining object IDs. """ worker = global_worker if isinstance(object_ids, ObjectID): raise TypeError( "wait() expected a list of ray.ObjectID, got a single ray.ObjectID" ) if not isinstance(object_ids, list): raise TypeError( "wait() expected a list of ray.ObjectID, got {}".format( type(object_ids))) if isinstance(timeout, int) and timeout != 0: logger.warning("The 'timeout' argument now requires seconds instead " "of milliseconds. This message can be suppressed by " "passing in a float.") if timeout is not None and timeout < 0: raise ValueError("The 'timeout' argument must be nonnegative. " "Received {}".format(timeout)) if worker.mode != LOCAL_MODE: for object_id in object_ids: if not isinstance(object_id, ObjectID): raise TypeError("wait() expected a list of ray.ObjectID, " "got list containing {}".format( type(object_id))) worker.check_connected() # TODO(swang): Check main thread. with profiling.profile("ray.wait"): # When Ray is run in LOCAL_MODE, all functions are run immediately, # so all objects in object_id are ready. if worker.mode == LOCAL_MODE: return object_ids[:num_returns], object_ids[num_returns:] # TODO(rkn): This is a temporary workaround for # https://github.com/ray-project/ray/issues/997. However, it should be # fixed in Arrow instead of here. if len(object_ids) == 0: return [], [] if len(object_ids) != len(set(object_ids)): raise Exception("Wait requires a list of unique object IDs.") if num_returns <= 0: raise Exception( "Invalid number of objects to return %d." % num_returns) if num_returns > len(object_ids): raise Exception("num_returns cannot be greater than the number " "of objects provided to ray.wait.") timeout = timeout if timeout is not None else 10**6 timeout_milliseconds = int(timeout * 1000) ready_ids, remaining_ids = worker.raylet_client.wait( object_ids, num_returns, timeout_milliseconds, False, worker.current_task_id, ) return ready_ids, remaining_ids
[ "def", "wait", "(", "object_ids", ",", "num_returns", "=", "1", ",", "timeout", "=", "None", ")", ":", "worker", "=", "global_worker", "if", "isinstance", "(", "object_ids", ",", "ObjectID", ")", ":", "raise", "TypeError", "(", "\"wait() expected a list of ray.ObjectID, got a single ray.ObjectID\"", ")", "if", "not", "isinstance", "(", "object_ids", ",", "list", ")", ":", "raise", "TypeError", "(", "\"wait() expected a list of ray.ObjectID, got {}\"", ".", "format", "(", "type", "(", "object_ids", ")", ")", ")", "if", "isinstance", "(", "timeout", ",", "int", ")", "and", "timeout", "!=", "0", ":", "logger", ".", "warning", "(", "\"The 'timeout' argument now requires seconds instead \"", "\"of milliseconds. This message can be suppressed by \"", "\"passing in a float.\"", ")", "if", "timeout", "is", "not", "None", "and", "timeout", "<", "0", ":", "raise", "ValueError", "(", "\"The 'timeout' argument must be nonnegative. \"", "\"Received {}\"", ".", "format", "(", "timeout", ")", ")", "if", "worker", ".", "mode", "!=", "LOCAL_MODE", ":", "for", "object_id", "in", "object_ids", ":", "if", "not", "isinstance", "(", "object_id", ",", "ObjectID", ")", ":", "raise", "TypeError", "(", "\"wait() expected a list of ray.ObjectID, \"", "\"got list containing {}\"", ".", "format", "(", "type", "(", "object_id", ")", ")", ")", "worker", ".", "check_connected", "(", ")", "# TODO(swang): Check main thread.", "with", "profiling", ".", "profile", "(", "\"ray.wait\"", ")", ":", "# When Ray is run in LOCAL_MODE, all functions are run immediately,", "# so all objects in object_id are ready.", "if", "worker", ".", "mode", "==", "LOCAL_MODE", ":", "return", "object_ids", "[", ":", "num_returns", "]", ",", "object_ids", "[", "num_returns", ":", "]", "# TODO(rkn): This is a temporary workaround for", "# https://github.com/ray-project/ray/issues/997. However, it should be", "# fixed in Arrow instead of here.", "if", "len", "(", "object_ids", ")", "==", "0", ":", "return", "[", "]", ",", "[", "]", "if", "len", "(", "object_ids", ")", "!=", "len", "(", "set", "(", "object_ids", ")", ")", ":", "raise", "Exception", "(", "\"Wait requires a list of unique object IDs.\"", ")", "if", "num_returns", "<=", "0", ":", "raise", "Exception", "(", "\"Invalid number of objects to return %d.\"", "%", "num_returns", ")", "if", "num_returns", ">", "len", "(", "object_ids", ")", ":", "raise", "Exception", "(", "\"num_returns cannot be greater than the number \"", "\"of objects provided to ray.wait.\"", ")", "timeout", "=", "timeout", "if", "timeout", "is", "not", "None", "else", "10", "**", "6", "timeout_milliseconds", "=", "int", "(", "timeout", "*", "1000", ")", "ready_ids", ",", "remaining_ids", "=", "worker", ".", "raylet_client", ".", "wait", "(", "object_ids", ",", "num_returns", ",", "timeout_milliseconds", ",", "False", ",", "worker", ".", "current_task_id", ",", ")", "return", "ready_ids", ",", "remaining_ids" ]
Return a list of IDs that are ready and a list of IDs that are not. .. warning:: The **timeout** argument used to be in **milliseconds** (up through ``ray==0.6.1``) and now it is in **seconds**. If timeout is set, the function returns either when the requested number of IDs are ready or when the timeout is reached, whichever occurs first. If it is not set, the function simply waits until that number of objects is ready and returns that exact number of object IDs. This method returns two lists. The first list consists of object IDs that correspond to objects that are available in the object store. The second list corresponds to the rest of the object IDs (which may or may not be ready). Ordering of the input list of object IDs is preserved. That is, if A precedes B in the input list, and both are in the ready list, then A will precede B in the ready list. This also holds true if A and B are both in the remaining list. Args: object_ids (List[ObjectID]): List of object IDs for objects that may or may not be ready. Note that these IDs must be unique. num_returns (int): The number of object IDs that should be returned. timeout (float): The maximum amount of time in seconds to wait before returning. Returns: A list of object IDs that are ready and a list of the remaining object IDs.
[ "Return", "a", "list", "of", "IDs", "that", "are", "ready", "and", "a", "list", "of", "IDs", "that", "are", "not", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L2221-L2315
train
Wait until the specified list of objects in the object store are ready.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCe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6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110011) + chr(0b110101) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(8883 - 8772) + '\063' + chr(288 - 240) + '\x33', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b111101 + 0o62) + '\065' + chr(55), 0o10), ehT0Px3KOsy9(chr(1576 - 1528) + '\x6f' + '\062' + chr(0b101011 + 0o14) + chr(230 - 182), 0b1000), ehT0Px3KOsy9('\x30' + chr(600 - 489) + chr(0b110010) + '\062' + '\x33', 0b1000), ehT0Px3KOsy9(chr(183 - 135) + chr(111) + chr(51) + chr(150 - 96) + chr(0b10001 + 0o40), 0o10), ehT0Px3KOsy9(chr(1466 - 1418) + '\157' + chr(0b1 + 0o62) + chr(54) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x35' + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + chr(0b101110 + 0o10) + '\062', 0o10), ehT0Px3KOsy9(chr(48) + chr(11242 - 11131) + chr(49) + chr(2386 - 2334) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(1657 - 1546) + '\064' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(1554 - 1443) + chr(1275 - 1226) + chr(0b1101 + 0o45) + chr(0b110001 + 0o3), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b101000 + 0o12) + '\067' + '\x31', 28693 - 28685), ehT0Px3KOsy9('\x30' + chr(4082 - 3971) + chr(0b1001 + 0o52) + chr(0b11101 + 0o27) + '\x37', 18016 - 18008), ehT0Px3KOsy9('\x30' + chr(0b1100010 + 0o15) + '\x32' + chr(774 - 725) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\157' + '\061' + chr(1888 - 1837) + '\060', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + chr(51) + chr(0b110101), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(51) + '\067' + chr(51), 35123 - 35115), ehT0Px3KOsy9('\x30' + chr(0b1011100 + 0o23) + chr(50) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\157' + chr(50) + chr(49) + '\062', 0o10), ehT0Px3KOsy9('\060' + chr(0b1010000 + 0o37) + chr(0b11011 + 0o26) + '\x37' + '\x36', 11762 - 11754), ehT0Px3KOsy9(chr(0b1100 + 0o44) + chr(111) + chr(50) + chr(504 - 453) + chr(0b10001 + 0o46), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(0b110101) + '\x31', 0o10), ehT0Px3KOsy9(chr(1087 - 1039) + chr(0b1101011 + 0o4) + '\x33' + chr(0b111 + 0o52) + chr(0b10 + 0o57), 0o10), ehT0Px3KOsy9(chr(84 - 36) + chr(111) + chr(0b11101 + 0o26) + '\067', 52819 - 52811), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110100) + '\x37', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b11100 + 0o123) + '\x32' + chr(52) + chr(909 - 858), 25926 - 25918), ehT0Px3KOsy9(chr(170 - 122) + chr(111) + chr(50) + '\065' + chr(0b110101), 62960 - 62952), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(50) + chr(250 - 199) + chr(0b100011 + 0o21), 40528 - 40520), ehT0Px3KOsy9(chr(1119 - 1071) + chr(2226 - 2115) + chr(1276 - 1221) + chr(0b110110), 14640 - 14632), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(111) + '\x31' + chr(52) + chr(0b1011 + 0o53), 0o10), ehT0Px3KOsy9('\x30' + chr(1553 - 1442) + '\x31' + chr(1236 - 1183) + '\063', 0b1000), ehT0Px3KOsy9(chr(1187 - 1139) + chr(0b110011 + 0o74) + chr(479 - 424) + chr(55), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110100 + 0o2), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101010 + 0o5) + chr(50) + chr(0b110111) + chr(0b110111), 824 - 816), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11101 + 0o26) + chr(0b11100 + 0o30) + chr(0b100000 + 0o27), 8), ehT0Px3KOsy9(chr(48) + chr(1668 - 1557) + chr(0b110111) + chr(0b100010 + 0o25), 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001 + 0o4) + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b111 + 0o52) + '\062' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(628 - 579) + chr(50) + '\065', 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + '\x35' + chr(48), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6'), chr(9995 - 9895) + '\x65' + chr(0b1100011) + chr(111) + chr(1915 - 1815) + chr(0b101100 + 0o71))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b10110 + 0o27) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def iik9wfy8nMEV(wYkLMlAXWXDn, Rp4AHRcABhkb=ehT0Px3KOsy9(chr(1613 - 1565) + chr(0b1101111) + chr(0b110001), 4192 - 4184), FaIjqlnzCXev=None): sijXcSaDomT1 = Fn_g0gvMIHCm if PlSM16l2KDPD(wYkLMlAXWXDn, O_W8KG047Mor): raise sznFqDbNBHlx(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9f\xa2F\xcc\xbb\xd8\xd2I\xca\x15@7\xcd\x82\xefx\xbc\xdbz\xe3\r\xeb\xc9\xa6y\x07\xd1\xcc\xe5\x10)\tUc\xdc\x93voyu\x8f\xac[\x98\xf2\xd1\x81E\xdc\x02I1\x99\x95\xea!\xf3\xb4t\xe0\x1b\xfc\x9d\x80['), '\x64' + chr(8685 - 8584) + chr(0b10010 + 0o121) + '\157' + '\x64' + chr(0b1001100 + 0o31))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b1000 + 0o45) + '\070')) if not PlSM16l2KDPD(wYkLMlAXWXDn, YyaZ4tpXu4lf): raise sznFqDbNBHlx(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9f\xa2F\xcc\xbb\xd8\xd2I\xca\x15@7\xcd\x82\xefx\xbc\xdbz\xe3\r\xeb\xc9\xa6y\x07\xd1\xcc\xe5\x10)\tUc\xdc\x93voyu\x8f\xac[\x98\xe8\x8c'), chr(2707 - 2607) + chr(0b1001000 + 0o35) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(8040 - 7939))(chr(0b1110101) + chr(6612 - 6496) + '\x66' + '\055' + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\xf7]\xd7\xdb\x90\xa1\x1f\xe2\x15@>'), chr(0b1100100) + chr(0b10000 + 0o125) + chr(3902 - 3803) + '\x6f' + chr(7011 - 6911) + '\145')('\165' + chr(116) + chr(4765 - 4663) + chr(0b101101) + '\070'))(wmQmyeWBmUpv(wYkLMlAXWXDn))) if PlSM16l2KDPD(FaIjqlnzCXev, ehT0Px3KOsy9) and FaIjqlnzCXev != ehT0Px3KOsy9('\060' + chr(0b111101 + 0o62) + chr(2026 - 1978), 0o10): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9f\xa2]\xd6\xfa\x9f\x95'), chr(0b1101 + 0o127) + '\145' + chr(0b111010 + 0o51) + '\157' + chr(724 - 624) + chr(0b110011 + 0o62))(chr(117) + chr(116) + chr(0b1100110) + chr(522 - 477) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbc\xabJ\x98\xb4\x85\x9bA\xd7\nP \x9e\xc7\xea*\xba\x8e{\xef\x10\xeb\xc9\xa7pP\x83\xdf\xf9O\x13\x02Mc\xcc\xc7LN6:\x86\xa7\\\x98\xfa\x9f\x81X\xd7\x04At\xd6\x81\xab5\xb4\x97z\xe3\r\xfa\x8a\xa6qC\xd0\x83\xbcj\x0e\x02L&\xd2\x82LX42\x8d\xe3L\xd9\xfd\xd1\x90I\x92\x16P$\xc9\x95\xee+\xae\x9er\xaa\x1c\xe6\xc9\xb9~T\xd0\xc4\xf2YF\x02Q&\xde\xc7YG:4\x9c\xed'), chr(0b1001010 + 0o32) + chr(0b11111 + 0o106) + '\143' + '\157' + chr(0b1100100) + chr(0b100000 + 0o105))(chr(0b1110101) + chr(0b1100 + 0o150) + chr(0b1000101 + 0o41) + chr(0b10010 + 0o33) + chr(3135 - 3079))) if FaIjqlnzCXev is not None and FaIjqlnzCXev < ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x30', 8): raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbc\xabJ\x98\xb4\x85\x9bA\xd7\nP \x9e\xc7\xea*\xba\x8e{\xef\x10\xeb\xc9\xa4jT\xd7\x8d\xfe[F\x05Ph\xd1\x82XJ!<\x9e\xa6\x01\x98\xc1\x94\x91I\xdb\x13@0\x99\x9c\xf6'), '\x64' + chr(0b1100101) + '\x63' + chr(0b101101 + 0o102) + '\x64' + chr(3169 - 3068))(chr(0b1011100 + 0o31) + chr(0b1101111 + 0o5) + chr(0b1000001 + 0o45) + '\055' + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\xf7]\xd7\xdb\x90\xa1\x1f\xe2\x15@>'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + chr(0b101100 + 0o71))(chr(0b1100100 + 0o21) + chr(2229 - 2113) + chr(0b1100110) + chr(0b1001 + 0o44) + '\x38'))(FaIjqlnzCXev)) if xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'\x85\xacK\xdd'), chr(0b1100100) + chr(0b1000011 + 0o42) + '\x63' + chr(111) + '\x64' + chr(101))('\x75' + '\164' + '\x66' + '\055' + chr(56))) != vegegFjq4lAA: for HTn3JlC1RoCF in wYkLMlAXWXDn: if not PlSM16l2KDPD(HTn3JlC1RoCF, O_W8KG047Mor): raise sznFqDbNBHlx(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9f\xa2F\xcc\xbb\xd8\xd2I\xca\x15@7\xcd\x82\xefx\xbc\xdbz\xe3\r\xeb\xc9\xa6y\x07\xd1\xcc\xe5\x10)\tUc\xdc\x93voyu\x8f\xac[\x98\xff\x98\x81X\x92\x06J:\xcd\x86\xe26\xb4\x95q\xaa\x05\xe2'), '\144' + chr(8765 - 8664) + chr(0b1010111 + 0o14) + chr(0b1101111) + chr(4182 - 4082) + chr(3079 - 2978))(chr(9294 - 9177) + chr(6833 - 6717) + chr(102) + chr(0b10000 + 0o35) + chr(0b10110 + 0o42)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\xf7]\xd7\xdb\x90\xa1\x1f\xe2\x15@>'), '\x64' + chr(101) + chr(99) + '\x6f' + chr(0b101 + 0o137) + chr(501 - 400))(chr(7638 - 7521) + '\164' + chr(0b11111 + 0o107) + chr(0b101101) + chr(0b110111 + 0o1)))(wmQmyeWBmUpv(HTn3JlC1RoCF))) xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8b\xabJ\xdb\xf8\xae\x91C\xdc\x0b@7\xcd\x82\xef'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + chr(9838 - 9738) + '\145')(chr(9622 - 9505) + '\164' + chr(0b1100110) + chr(0b10000 + 0o35) + chr(1812 - 1756)))() with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b'\x80\xafb\xd4\xa5\x87\xb5s\x84*];'), '\144' + chr(272 - 171) + chr(99) + '\x6f' + chr(2491 - 2391) + chr(6945 - 6844))('\x75' + chr(0b1000000 + 0o64) + chr(5711 - 5609) + chr(0b1111 + 0o36) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9a\xa2V\x96\xe4\x90\x9bX'), '\144' + chr(0b1100101) + chr(9101 - 9002) + '\157' + '\x64' + '\x65')(chr(0b1100001 + 0o24) + chr(116) + chr(102) + chr(45) + chr(56))): if xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'\x85\xacK\xdd'), '\144' + chr(395 - 294) + chr(0b1010001 + 0o22) + chr(0b1101111) + chr(100) + chr(8838 - 8737))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(2230 - 2174))) == vegegFjq4lAA: return (wYkLMlAXWXDn[:Rp4AHRcABhkb], wYkLMlAXWXDn[Rp4AHRcABhkb:]) if c2A0yzQpDQB3(wYkLMlAXWXDn) == ehT0Px3KOsy9(chr(48) + '\x6f' + chr(377 - 329), 8): return ([], []) if c2A0yzQpDQB3(wYkLMlAXWXDn) != c2A0yzQpDQB3(MVEN8G6CxlvR(wYkLMlAXWXDn)): raise jLmadlzMdunT(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xa2F\xcc\xb3\x83\x97]\xc7\x0cW1\xca\xc7\xeax\xb1\x92e\xfe^\xf0\x8f\xe9jI\xca\xdc\xe9[F\x04]l\xda\x84K\x0b\x1c\x11\x9b\xed'), '\144' + chr(0b1100101) + '\143' + '\x6f' + '\x64' + '\145')(chr(0b1001010 + 0o53) + chr(6085 - 5969) + '\x66' + '\x2d' + chr(0b1 + 0o67))) if Rp4AHRcABhkb <= ehT0Px3KOsy9('\060' + chr(0b110011 + 0o74) + chr(0b10111 + 0o31), 8): raise jLmadlzMdunT(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1\xadY\xd9\xff\x98\x96\x0c\xdc\x10H6\xdc\x95\xab7\xbb\xdby\xe8\x14\xfa\x8a\xbdl\x07\xd7\xc2\xbcL\x03\x1fJt\xd1\xc7\x1aO{'), '\144' + '\x65' + chr(99) + chr(7857 - 7746) + chr(2969 - 2869) + chr(0b1010010 + 0o23))(chr(9454 - 9337) + '\164' + chr(0b1100110) + chr(1822 - 1777) + chr(834 - 778)) % Rp4AHRcABhkb) if Rp4AHRcABhkb > c2A0yzQpDQB3(wYkLMlAXWXDn): raise jLmadlzMdunT(xafqLlk3kkUe(SXOLrMavuUCe(b'\x86\xb6B\xe7\xe1\x94\x86Y\xc0\x0bVt\xda\x86\xe56\xb2\x8f6\xe8\x1b\xbf\x8e\xbbzF\xd7\xc8\xee\x1e\x12\x03^h\x9f\x93WNu;\x9d\xaeM\xdd\xe1\xd1\x9dJ\x92\nG>\xdc\x84\xff+\xfd\x8bd\xe5\x08\xf6\x8d\xac{\x07\xd7\xc2\xbcL\x07\x12\x11q\xde\x8eK\x05'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(7601 - 7501) + chr(8808 - 8707))('\165' + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b111000))) FaIjqlnzCXev = FaIjqlnzCXev if FaIjqlnzCXev is not None else ehT0Px3KOsy9('\060' + chr(0b1011100 + 0o23) + chr(541 - 492) + chr(50), 55502 - 55494) ** ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + '\066', 8) HYZ0cnZHKK9C = ehT0Px3KOsy9(FaIjqlnzCXev * ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(0b1101111) + chr(0b110001) + chr(0b110111) + '\x35' + chr(48), 36210 - 36202)) (bbEEIbOjuM3E, GSm9EDvBFbo4) = sijXcSaDomT1.raylet_client.iik9wfy8nMEV(wYkLMlAXWXDn, Rp4AHRcABhkb, HYZ0cnZHKK9C, ehT0Px3KOsy9(chr(614 - 566) + chr(111) + chr(0b1001 + 0o47), 8), sijXcSaDomT1.SjcyWRd98p5e) return (bbEEIbOjuM3E, GSm9EDvBFbo4)
ray-project/ray
python/ray/worker.py
remote
def remote(*args, **kwargs): """Define a remote function or an actor class. This can be used with no arguments to define a remote function or actor as follows: .. code-block:: python @ray.remote def f(): return 1 @ray.remote class Foo(object): def method(self): return 1 It can also be used with specific keyword arguments: * **num_return_vals:** This is only for *remote functions*. It specifies the number of object IDs returned by the remote function invocation. * **num_cpus:** The quantity of CPU cores to reserve for this task or for the lifetime of the actor. * **num_gpus:** The quantity of GPUs to reserve for this task or for the lifetime of the actor. * **resources:** The quantity of various custom resources to reserve for this task or for the lifetime of the actor. This is a dictionary mapping strings (resource names) to numbers. * **max_calls:** Only for *remote functions*. This specifies the maximum number of times that a given worker can execute the given remote function before it must exit (this can be used to address memory leaks in third-party libraries or to reclaim resources that cannot easily be released, e.g., GPU memory that was acquired by TensorFlow). By default this is infinite. * **max_reconstructions**: Only for *actors*. This specifies the maximum number of times that the actor should be reconstructed when it dies unexpectedly. The minimum valid value is 0 (default), which indicates that the actor doesn't need to be reconstructed. And the maximum valid value is ray.ray_constants.INFINITE_RECONSTRUCTIONS. This can be done as follows: .. code-block:: python @ray.remote(num_gpus=1, max_calls=1, num_return_vals=2) def f(): return 1, 2 @ray.remote(num_cpus=2, resources={"CustomResource": 1}) class Foo(object): def method(self): return 1 """ worker = get_global_worker() if len(args) == 1 and len(kwargs) == 0 and callable(args[0]): # This is the case where the decorator is just @ray.remote. return make_decorator(worker=worker)(args[0]) # Parse the keyword arguments from the decorator. error_string = ("The @ray.remote decorator must be applied either " "with no arguments and no parentheses, for example " "'@ray.remote', or it must be applied using some of " "the arguments 'num_return_vals', 'num_cpus', 'num_gpus', " "'resources', 'max_calls', " "or 'max_reconstructions', like " "'@ray.remote(num_return_vals=2, " "resources={\"CustomResource\": 1})'.") assert len(args) == 0 and len(kwargs) > 0, error_string for key in kwargs: assert key in [ "num_return_vals", "num_cpus", "num_gpus", "resources", "max_calls", "max_reconstructions" ], error_string num_cpus = kwargs["num_cpus"] if "num_cpus" in kwargs else None num_gpus = kwargs["num_gpus"] if "num_gpus" in kwargs else None resources = kwargs.get("resources") if not isinstance(resources, dict) and resources is not None: raise Exception("The 'resources' keyword argument must be a " "dictionary, but received type {}.".format( type(resources))) if resources is not None: assert "CPU" not in resources, "Use the 'num_cpus' argument." assert "GPU" not in resources, "Use the 'num_gpus' argument." # Handle other arguments. num_return_vals = kwargs.get("num_return_vals") max_calls = kwargs.get("max_calls") max_reconstructions = kwargs.get("max_reconstructions") return make_decorator( num_return_vals=num_return_vals, num_cpus=num_cpus, num_gpus=num_gpus, resources=resources, max_calls=max_calls, max_reconstructions=max_reconstructions, worker=worker)
python
def remote(*args, **kwargs): """Define a remote function or an actor class. This can be used with no arguments to define a remote function or actor as follows: .. code-block:: python @ray.remote def f(): return 1 @ray.remote class Foo(object): def method(self): return 1 It can also be used with specific keyword arguments: * **num_return_vals:** This is only for *remote functions*. It specifies the number of object IDs returned by the remote function invocation. * **num_cpus:** The quantity of CPU cores to reserve for this task or for the lifetime of the actor. * **num_gpus:** The quantity of GPUs to reserve for this task or for the lifetime of the actor. * **resources:** The quantity of various custom resources to reserve for this task or for the lifetime of the actor. This is a dictionary mapping strings (resource names) to numbers. * **max_calls:** Only for *remote functions*. This specifies the maximum number of times that a given worker can execute the given remote function before it must exit (this can be used to address memory leaks in third-party libraries or to reclaim resources that cannot easily be released, e.g., GPU memory that was acquired by TensorFlow). By default this is infinite. * **max_reconstructions**: Only for *actors*. This specifies the maximum number of times that the actor should be reconstructed when it dies unexpectedly. The minimum valid value is 0 (default), which indicates that the actor doesn't need to be reconstructed. And the maximum valid value is ray.ray_constants.INFINITE_RECONSTRUCTIONS. This can be done as follows: .. code-block:: python @ray.remote(num_gpus=1, max_calls=1, num_return_vals=2) def f(): return 1, 2 @ray.remote(num_cpus=2, resources={"CustomResource": 1}) class Foo(object): def method(self): return 1 """ worker = get_global_worker() if len(args) == 1 and len(kwargs) == 0 and callable(args[0]): # This is the case where the decorator is just @ray.remote. return make_decorator(worker=worker)(args[0]) # Parse the keyword arguments from the decorator. error_string = ("The @ray.remote decorator must be applied either " "with no arguments and no parentheses, for example " "'@ray.remote', or it must be applied using some of " "the arguments 'num_return_vals', 'num_cpus', 'num_gpus', " "'resources', 'max_calls', " "or 'max_reconstructions', like " "'@ray.remote(num_return_vals=2, " "resources={\"CustomResource\": 1})'.") assert len(args) == 0 and len(kwargs) > 0, error_string for key in kwargs: assert key in [ "num_return_vals", "num_cpus", "num_gpus", "resources", "max_calls", "max_reconstructions" ], error_string num_cpus = kwargs["num_cpus"] if "num_cpus" in kwargs else None num_gpus = kwargs["num_gpus"] if "num_gpus" in kwargs else None resources = kwargs.get("resources") if not isinstance(resources, dict) and resources is not None: raise Exception("The 'resources' keyword argument must be a " "dictionary, but received type {}.".format( type(resources))) if resources is not None: assert "CPU" not in resources, "Use the 'num_cpus' argument." assert "GPU" not in resources, "Use the 'num_gpus' argument." # Handle other arguments. num_return_vals = kwargs.get("num_return_vals") max_calls = kwargs.get("max_calls") max_reconstructions = kwargs.get("max_reconstructions") return make_decorator( num_return_vals=num_return_vals, num_cpus=num_cpus, num_gpus=num_gpus, resources=resources, max_calls=max_calls, max_reconstructions=max_reconstructions, worker=worker)
[ "def", "remote", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "worker", "=", "get_global_worker", "(", ")", "if", "len", "(", "args", ")", "==", "1", "and", "len", "(", "kwargs", ")", "==", "0", "and", "callable", "(", "args", "[", "0", "]", ")", ":", "# This is the case where the decorator is just @ray.remote.", "return", "make_decorator", "(", "worker", "=", "worker", ")", "(", "args", "[", "0", "]", ")", "# Parse the keyword arguments from the decorator.", "error_string", "=", "(", "\"The @ray.remote decorator must be applied either \"", "\"with no arguments and no parentheses, for example \"", "\"'@ray.remote', or it must be applied using some of \"", "\"the arguments 'num_return_vals', 'num_cpus', 'num_gpus', \"", "\"'resources', 'max_calls', \"", "\"or 'max_reconstructions', like \"", "\"'@ray.remote(num_return_vals=2, \"", "\"resources={\\\"CustomResource\\\": 1})'.\"", ")", "assert", "len", "(", "args", ")", "==", "0", "and", "len", "(", "kwargs", ")", ">", "0", ",", "error_string", "for", "key", "in", "kwargs", ":", "assert", "key", "in", "[", "\"num_return_vals\"", ",", "\"num_cpus\"", ",", "\"num_gpus\"", ",", "\"resources\"", ",", "\"max_calls\"", ",", "\"max_reconstructions\"", "]", ",", "error_string", "num_cpus", "=", "kwargs", "[", "\"num_cpus\"", "]", "if", "\"num_cpus\"", "in", "kwargs", "else", "None", "num_gpus", "=", "kwargs", "[", "\"num_gpus\"", "]", "if", "\"num_gpus\"", "in", "kwargs", "else", "None", "resources", "=", "kwargs", ".", "get", "(", "\"resources\"", ")", "if", "not", "isinstance", "(", "resources", ",", "dict", ")", "and", "resources", "is", "not", "None", ":", "raise", "Exception", "(", "\"The 'resources' keyword argument must be a \"", "\"dictionary, but received type {}.\"", ".", "format", "(", "type", "(", "resources", ")", ")", ")", "if", "resources", "is", "not", "None", ":", "assert", "\"CPU\"", "not", "in", "resources", ",", "\"Use the 'num_cpus' argument.\"", "assert", "\"GPU\"", "not", "in", "resources", ",", "\"Use the 'num_gpus' argument.\"", "# Handle other arguments.", "num_return_vals", "=", "kwargs", ".", "get", "(", "\"num_return_vals\"", ")", "max_calls", "=", "kwargs", ".", "get", "(", "\"max_calls\"", ")", "max_reconstructions", "=", "kwargs", ".", "get", "(", "\"max_reconstructions\"", ")", "return", "make_decorator", "(", "num_return_vals", "=", "num_return_vals", ",", "num_cpus", "=", "num_cpus", ",", "num_gpus", "=", "num_gpus", ",", "resources", "=", "resources", ",", "max_calls", "=", "max_calls", ",", "max_reconstructions", "=", "max_reconstructions", ",", "worker", "=", "worker", ")" ]
Define a remote function or an actor class. This can be used with no arguments to define a remote function or actor as follows: .. code-block:: python @ray.remote def f(): return 1 @ray.remote class Foo(object): def method(self): return 1 It can also be used with specific keyword arguments: * **num_return_vals:** This is only for *remote functions*. It specifies the number of object IDs returned by the remote function invocation. * **num_cpus:** The quantity of CPU cores to reserve for this task or for the lifetime of the actor. * **num_gpus:** The quantity of GPUs to reserve for this task or for the lifetime of the actor. * **resources:** The quantity of various custom resources to reserve for this task or for the lifetime of the actor. This is a dictionary mapping strings (resource names) to numbers. * **max_calls:** Only for *remote functions*. This specifies the maximum number of times that a given worker can execute the given remote function before it must exit (this can be used to address memory leaks in third-party libraries or to reclaim resources that cannot easily be released, e.g., GPU memory that was acquired by TensorFlow). By default this is infinite. * **max_reconstructions**: Only for *actors*. This specifies the maximum number of times that the actor should be reconstructed when it dies unexpectedly. The minimum valid value is 0 (default), which indicates that the actor doesn't need to be reconstructed. And the maximum valid value is ray.ray_constants.INFINITE_RECONSTRUCTIONS. This can be done as follows: .. code-block:: python @ray.remote(num_gpus=1, max_calls=1, num_return_vals=2) def f(): return 1, 2 @ray.remote(num_cpus=2, resources={"CustomResource": 1}) class Foo(object): def method(self): return 1
[ "Define", "a", "remote", "function", "or", "an", "actor", "class", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L2369-L2467
train
Define a remote function or an actor class.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb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h,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(526 - 478) + '\x6f' + '\x33' + chr(127 - 78) + chr(52), 0o10), ehT0Px3KOsy9(chr(2264 - 2216) + chr(7523 - 7412) + chr(0b111 + 0o53) + chr(0b100110 + 0o17) + chr(1661 - 1613), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + chr(0b110110) + chr(1840 - 1790), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b111011 + 0o64) + chr(0b1100 + 0o52) + chr(0b1111 + 0o47), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(0b110111) + chr(0b10001 + 0o43), 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1101111) + chr(0b1000 + 0o53) + chr(1853 - 1803), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(4526 - 4415) + chr(49) + chr(0b110101), 56530 - 56522), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2212 - 2162) + chr(0b110000) + chr(1738 - 1685), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32', 25164 - 25156), ehT0Px3KOsy9('\x30' + '\x6f' + chr(53) + chr(0b110001 + 0o1), 0o10), ehT0Px3KOsy9(chr(1242 - 1194) + '\x6f' + chr(50) + chr(0b110111) + chr(0b11 + 0o61), 22385 - 22377), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + '\067' + chr(0b100110 + 0o13), 0b1000), ehT0Px3KOsy9('\x30' + chr(3720 - 3609) + '\x31' + '\065' + chr(0b10111 + 0o36), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10010 + 0o40) + '\062', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(0b11000 + 0o33) + chr(49), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + '\x36' + chr(0b101100 + 0o7), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(1325 - 1214) + chr(55), 0o10), ehT0Px3KOsy9(chr(1707 - 1659) + chr(0b1101111) + chr(0b110001) + '\064' + chr(50), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(50) + chr(0b110110), 7945 - 7937), ehT0Px3KOsy9(chr(2034 - 1986) + '\157' + chr(55) + '\067', 0o10), ehT0Px3KOsy9(chr(48) + chr(8541 - 8430) + chr(366 - 317) + chr(52) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + '\060' + chr(53), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b11111 + 0o120) + chr(0b110011) + chr(52) + '\063', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(49) + chr(0b10100 + 0o34) + chr(0b10000 + 0o41), 54727 - 54719), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101010 + 0o5) + '\063' + '\063' + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(2205 - 2157) + '\x6f' + chr(50) + '\064' + chr(272 - 221), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1259 - 1209) + chr(1821 - 1772) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(310 - 260) + chr(0b110000) + '\x36', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(1972 - 1919) + chr(51), 0o10), ehT0Px3KOsy9(chr(1709 - 1661) + '\157' + chr(0b101011 + 0o10) + chr(1013 - 965) + chr(0b101011 + 0o6), 18024 - 18016), ehT0Px3KOsy9(chr(2303 - 2255) + chr(0b1101101 + 0o2) + chr(0b1110 + 0o43) + '\x34' + '\061', 0b1000), ehT0Px3KOsy9(chr(252 - 204) + '\x6f' + '\063' + chr(2280 - 2226) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b101100 + 0o103) + chr(0b110 + 0o55) + chr(0b110100) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\x6f' + '\x31' + chr(0b110001), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + '\062' + chr(0b10111 + 0o33), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(55) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1630 - 1519) + chr(50) + chr(50), 8), ehT0Px3KOsy9('\060' + chr(1595 - 1484) + chr(51) + '\062' + chr(0b11110 + 0o25), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11111 + 0o23) + '\062' + chr(0b10100 + 0o34), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(1334 - 1285) + '\x33' + chr(2476 - 2423), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(0b101001 + 0o106) + chr(53) + '\x30', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2'), '\x64' + '\x65' + chr(0b1001001 + 0o32) + '\157' + chr(355 - 255) + chr(9234 - 9133))(chr(0b110111 + 0o76) + chr(0b1100000 + 0o24) + '\146' + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def p1xJaV_tyCLH(*kJDRfRhcZHjS, **M8EIoTs2GJXE): sijXcSaDomT1 = qsivKkJERtAl() if c2A0yzQpDQB3(kJDRfRhcZHjS) == ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31', 24939 - 24931) and c2A0yzQpDQB3(M8EIoTs2GJXE) == ehT0Px3KOsy9(chr(0b110000 + 0o0) + '\157' + '\x30', 0o10) and tzcpInYwBvYW(kJDRfRhcZHjS[ehT0Px3KOsy9(chr(561 - 513) + '\x6f' + '\x30', 8)]): return bQG1v5DnIQsh(worker=sijXcSaDomT1)(kJDRfRhcZHjS[ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1100 + 0o143) + chr(0b101001 + 0o7), 8)]) bMkVmPey9l68 = xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\xc0\xd7\x16\xbchl\xfc,X\xd9\x94\x02f\xfcSc\x075P\x15\xe4\x97.\xa9\x83\xe0\xf3\x98\xb5A\x97\x85)\xb3Jb\xbf\xf98\xa8\x88\xd7_\x88rh\xf7"]\xd5\x8d\x052\xf7\x1c\'\x03$X\x12\xe8\x86/\xaf\xd0\xad\xe7\x85\xa5A\x9b\x8f)\xa2[`\xb6\xfe)\xa4\xcd\xc1S\x8f6-\xe3mX\x9c\x9c\x15s\xf4\x03k\x07v\x18\'\xf7\x828\xf5\xd1\xe8\xeb\x84\xb5\x04\xd2\xcc)\xbdH2\xba\xe4}\xa1\xdd\xc1B\xdcxh\xa5cZ\xcc\x95\x04w\xfdSr\x11?Q\x00\xa5\x90.\xb6\xc6\xad\xe9\x8d\xe1\x15\x9d\x85)\xb3Hu\xa6\xfd8\xa2\xdc\xc1\x16\xdbtx\xe8]X\xd9\x8d\x18`\xf7,q\x03:L@\xa9\xc3f\xb5\xd6\xe0\xd9\x88\xb1\x14\x86\xc7%\xf2\x1d|\xa6\xfd\x02\xab\xd8\xc7E\xdb6-\xa2pO\xcf\x96\x18`\xfa\x16tEz\x1f@\xe8\x829\x84\xc0\xec\xea\x87\xb2F\xd9\xc0f\xa0\x1a5\xbe\xf1%\x93\xda\xd7U\x93t~\xf1p_\xdf\x8d\x04}\xf7\x00 NvS\x0e\xee\x86a\xfc\xe3\xff\xe7\x92\xef\x13\x90\x8df\xa6_:\xbd\xe50\x93\xda\xd7B\x89hc\xdatK\xd0\x8aP \xb5Su\x07%P\x12\xf7\x80$\xa8\x9e\xf6\xa4\xa8\xb4\x12\x81\x8fd\x80_a\xbc\xe5/\xaf\xcd\x90\x0c\xdc+p\xac%\x04'), '\x64' + chr(101) + '\143' + chr(0b1101111) + chr(0b110110 + 0o56) + chr(0b1011 + 0o132))('\165' + chr(0b1110100) + chr(0b100001 + 0o105) + '\055' + chr(1900 - 1844)) assert c2A0yzQpDQB3(kJDRfRhcZHjS) == ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + chr(1809 - 1761), 8) and c2A0yzQpDQB3(M8EIoTs2GJXE) > ehT0Px3KOsy9(chr(0b110000) + chr(3531 - 3420) + chr(1344 - 1296), 8), bMkVmPey9l68 for K3J4ZwSlE0sT in M8EIoTs2GJXE: assert K3J4ZwSlE0sT in [xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x8e\x7fy\xf0pD\xe3\x8f\x0c~\xea'), '\x64' + chr(0b110110 + 0o57) + '\143' + '\157' + chr(0b1011 + 0o131) + '\145')(chr(0b100011 + 0o122) + chr(0b100000 + 0o124) + chr(0b1100110) + chr(0b100101 + 0o10) + chr(2192 - 2136)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x9fjx\xf6'), chr(0b1100100) + chr(0b10000 + 0o125) + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b11111 + 0o16) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x9bjx\xf6'), chr(0b1100100) + chr(101) + chr(99) + chr(0b110000 + 0o77) + chr(0b1100100) + chr(5219 - 5118))(chr(0b1011110 + 0o27) + chr(13445 - 13329) + chr(102) + chr(299 - 254) + chr(2540 - 2484)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\xcd\xc1Y\x89hn\xe0q'), chr(0b1101 + 0o127) + chr(9350 - 9249) + chr(0b1100011) + chr(0b11010 + 0o125) + '\144' + chr(2180 - 2079))(chr(0b1001101 + 0o50) + '\164' + '\x66' + chr(0b101101) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1\xc9\xcai\x9f{a\xe9q'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100001 + 0o3) + chr(101))(chr(117) + '\164' + chr(0b110100 + 0o62) + '\055' + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1\xc9\xcai\x8e\x7fn\xealY\xc8\x8b\x18q\xed\x1ah\x0c%'), '\144' + chr(0b1100010 + 0o3) + chr(0b1010101 + 0o16) + chr(9814 - 9703) + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(0b11 + 0o52) + chr(56))], bMkVmPey9l68 Mrs8455cKlOd = M8EIoTs2GJXE[xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x9fjx\xf6'), chr(4187 - 4087) + '\145' + chr(99) + chr(111) + chr(0b1010011 + 0o21) + '\145')(chr(0b1110101) + chr(4733 - 4617) + chr(0b1100110) + '\x2d' + '\x38')] if xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x9fjx\xf6'), chr(3269 - 3169) + chr(9860 - 9759) + chr(0b1100011) + chr(11753 - 11642) + chr(100) + '\145')(chr(0b1110101) + '\x74' + '\146' + chr(45) + chr(0b111000)) in M8EIoTs2GJXE else None zcNH1ym8cZBx = M8EIoTs2GJXE[xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x9bjx\xf6'), chr(4983 - 4883) + chr(200 - 99) + chr(0b1100011) + chr(111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b101101 + 0o107) + chr(0b1100110) + '\x2d' + chr(1372 - 1316))] if xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x9bjx\xf6'), chr(0b1000101 + 0o37) + chr(0b101111 + 0o66) + chr(6199 - 6100) + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(5985 - 5869) + chr(102) + chr(464 - 419) + '\x38') in M8EIoTs2GJXE else None z4Xs9XhDbg00 = M8EIoTs2GJXE.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\xcd\xc1Y\x89hn\xe0q'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(8606 - 8490) + chr(0b1100110) + '\055' + '\x38')) if not PlSM16l2KDPD(z4Xs9XhDbg00, wLqBDw8l0eIm) and z4Xs9XhDbg00 is not None: raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\xc0\xd7\x16\xdbhh\xf6m_\xce\x9a\x08a\xbeSl\x07/H\x08\xf7\x87a\xba\xd1\xea\xf3\x86\xa4\x0f\x81\xc0d\xa7If\xf3\xf28\xec\xc9\x92R\x95yy\xecmD\xdd\x8b\x14>\xb9\x11r\x16vM\x02\xe6\x86(\xad\xc6\xe9\xa6\x9f\xb8\x11\x90\xc0r\xaf\x14'), '\x64' + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + '\164' + chr(102) + '\x2d' + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x9a\x9c\xc0Y\xb4{^\xb6RZ\xd9\x93'), '\144' + '\x65' + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + '\x2d' + '\070'))(wmQmyeWBmUpv(z4Xs9XhDbg00))) if z4Xs9XhDbg00 is not None: assert xafqLlk3kkUe(SXOLrMavuUCe(b'\x8f\xf8\xe7'), '\x64' + chr(0b1100101) + '\143' + chr(3233 - 3122) + '\x64' + '\145')('\x75' + '\x74' + '\146' + '\x2d' + '\x38') not in z4Xs9XhDbg00, xafqLlk3kkUe(SXOLrMavuUCe(b'\x99\xdb\xd7\x16\x88rh\xa5%D\xc9\x942q\xe9\x06tEv^\x15\xe2\x96,\xbe\xcd\xf9\xa8'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1011110 + 0o6) + chr(0b1100101))('\165' + chr(0b1110100) + chr(8877 - 8775) + chr(0b100010 + 0o13) + chr(0b111000)) assert xafqLlk3kkUe(SXOLrMavuUCe(b'\x8b\xf8\xe7'), '\144' + chr(101) + '\143' + chr(111) + chr(5831 - 5731) + '\x65')('\x75' + '\164' + chr(10009 - 9907) + chr(45) + chr(0b100010 + 0o26)) not in z4Xs9XhDbg00, xafqLlk3kkUe(SXOLrMavuUCe(b'\x99\xdb\xd7\x16\x88rh\xa5%D\xc9\x942u\xe9\x06tEv^\x15\xe2\x96,\xbe\xcd\xf9\xa8'), chr(0b1100100) + '\x65' + '\143' + '\157' + chr(0b1000111 + 0o35) + '\x65')(chr(0b101010 + 0o113) + '\x74' + chr(0b1100110) + chr(45) + chr(174 - 118)) Ku0iJ7hrQyI0 = M8EIoTs2GJXE.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xdd\xdfi\x8e\x7fy\xf0pD\xe3\x8f\x0c~\xea'), '\x64' + chr(4651 - 4550) + chr(99) + chr(111) + '\144' + '\x65')(chr(0b1110 + 0o147) + '\164' + chr(8730 - 8628) + chr(45) + '\070')) ExYhgc5I0Li3 = M8EIoTs2GJXE.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1\xc9\xcai\x9f{a\xe9q'), '\144' + chr(0b101011 + 0o72) + chr(99) + '\157' + chr(6849 - 6749) + chr(101))('\165' + chr(0b1110100) + chr(0b100101 + 0o101) + chr(0b101101) + chr(0b101101 + 0o13))) WSKlyV9eCRpR = M8EIoTs2GJXE.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1\xc9\xcai\x8e\x7fn\xealY\xc8\x8b\x18q\xed\x1ah\x0c%'), chr(100) + chr(8985 - 8884) + '\x63' + '\157' + chr(100) + '\145')(chr(0b110011 + 0o102) + '\x74' + chr(8596 - 8494) + chr(0b101101) + '\070')) return bQG1v5DnIQsh(num_return_vals=Ku0iJ7hrQyI0, num_cpus=Mrs8455cKlOd, num_gpus=zcNH1ym8cZBx, resources=z4Xs9XhDbg00, max_calls=ExYhgc5I0Li3, max_reconstructions=WSKlyV9eCRpR, worker=sijXcSaDomT1)
ray-project/ray
python/ray/worker.py
Worker.task_context
def task_context(self): """A thread-local that contains the following attributes. current_task_id: For the main thread, this field is the ID of this worker's current running task; for other threads, this field is a fake random ID. task_index: The number of tasks that have been submitted from the current task. put_index: The number of objects that have been put from the current task. """ if not hasattr(self._task_context, "initialized"): # Initialize task_context for the current thread. if ray.utils.is_main_thread(): # If this is running on the main thread, initialize it to # NIL. The actual value will set when the worker receives # a task from raylet backend. self._task_context.current_task_id = TaskID.nil() else: # If this is running on a separate thread, then the mapping # to the current task ID may not be correct. Generate a # random task ID so that the backend can differentiate # between different threads. self._task_context.current_task_id = TaskID(_random_string()) if getattr(self, "_multithreading_warned", False) is not True: logger.warning( "Calling ray.get or ray.wait in a separate thread " "may lead to deadlock if the main thread blocks on " "this thread and there are not enough resources to " "execute more tasks") self._multithreading_warned = True self._task_context.task_index = 0 self._task_context.put_index = 1 self._task_context.initialized = True return self._task_context
python
def task_context(self): """A thread-local that contains the following attributes. current_task_id: For the main thread, this field is the ID of this worker's current running task; for other threads, this field is a fake random ID. task_index: The number of tasks that have been submitted from the current task. put_index: The number of objects that have been put from the current task. """ if not hasattr(self._task_context, "initialized"): # Initialize task_context for the current thread. if ray.utils.is_main_thread(): # If this is running on the main thread, initialize it to # NIL. The actual value will set when the worker receives # a task from raylet backend. self._task_context.current_task_id = TaskID.nil() else: # If this is running on a separate thread, then the mapping # to the current task ID may not be correct. Generate a # random task ID so that the backend can differentiate # between different threads. self._task_context.current_task_id = TaskID(_random_string()) if getattr(self, "_multithreading_warned", False) is not True: logger.warning( "Calling ray.get or ray.wait in a separate thread " "may lead to deadlock if the main thread blocks on " "this thread and there are not enough resources to " "execute more tasks") self._multithreading_warned = True self._task_context.task_index = 0 self._task_context.put_index = 1 self._task_context.initialized = True return self._task_context
[ "def", "task_context", "(", "self", ")", ":", "if", "not", "hasattr", "(", "self", ".", "_task_context", ",", "\"initialized\"", ")", ":", "# Initialize task_context for the current thread.", "if", "ray", ".", "utils", ".", "is_main_thread", "(", ")", ":", "# If this is running on the main thread, initialize it to", "# NIL. The actual value will set when the worker receives", "# a task from raylet backend.", "self", ".", "_task_context", ".", "current_task_id", "=", "TaskID", ".", "nil", "(", ")", "else", ":", "# If this is running on a separate thread, then the mapping", "# to the current task ID may not be correct. Generate a", "# random task ID so that the backend can differentiate", "# between different threads.", "self", ".", "_task_context", ".", "current_task_id", "=", "TaskID", "(", "_random_string", "(", ")", ")", "if", "getattr", "(", "self", ",", "\"_multithreading_warned\"", ",", "False", ")", "is", "not", "True", ":", "logger", ".", "warning", "(", "\"Calling ray.get or ray.wait in a separate thread \"", "\"may lead to deadlock if the main thread blocks on \"", "\"this thread and there are not enough resources to \"", "\"execute more tasks\"", ")", "self", ".", "_multithreading_warned", "=", "True", "self", ".", "_task_context", ".", "task_index", "=", "0", "self", ".", "_task_context", ".", "put_index", "=", "1", "self", ".", "_task_context", ".", "initialized", "=", "True", "return", "self", ".", "_task_context" ]
A thread-local that contains the following attributes. current_task_id: For the main thread, this field is the ID of this worker's current running task; for other threads, this field is a fake random ID. task_index: The number of tasks that have been submitted from the current task. put_index: The number of objects that have been put from the current task.
[ "A", "thread", "-", "local", "that", "contains", "the", "following", "attributes", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L175-L210
train
A thread - local that contains the attributes needed to initialize the task_context.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2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riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(2107 - 2058) + chr(1908 - 1857), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(896 - 841) + '\x36', 0o10), ehT0Px3KOsy9(chr(691 - 643) + chr(7101 - 6990) + chr(0b110001) + chr(0b10 + 0o56) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(0b100001 + 0o23) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(607 - 559) + chr(0b1101111) + '\x31' + chr(48) + '\065', 0o10), ehT0Px3KOsy9(chr(2258 - 2210) + chr(592 - 481) + '\061' + '\066' + chr(0b10011 + 0o42), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b111010 + 0o65) + '\x32' + chr(0b100000 + 0o25) + chr(53), 12963 - 12955), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b11011 + 0o33) + chr(50), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + '\x31' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(9461 - 9350) + '\x32' + chr(1801 - 1751) + '\062', 0b1000), ehT0Px3KOsy9(chr(993 - 945) + chr(0b11010 + 0o125) + '\x32' + '\x32' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(789 - 741) + '\157' + chr(2250 - 2201) + '\065' + chr(0b100010 + 0o23), 3792 - 3784), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\x6f' + chr(0b111 + 0o53) + chr(1216 - 1163) + '\x30', 48965 - 48957), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(1480 - 1432), 47539 - 47531), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\065' + chr(49), 26491 - 26483), ehT0Px3KOsy9('\060' + chr(0b110 + 0o151) + '\x32' + '\x30' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1111 + 0o140) + '\062' + chr(0b110010) + chr(0b100 + 0o63), 20874 - 20866), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(803 - 748) + chr(0b1 + 0o65), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1879 - 1829) + '\x33' + '\060', 10550 - 10542), ehT0Px3KOsy9(chr(48) + chr(3788 - 3677) + chr(49) + chr(0b111 + 0o54) + chr(0b110110), 33265 - 33257), ehT0Px3KOsy9(chr(2289 - 2241) + chr(0b1101111) + chr(50) + chr(473 - 418) + chr(48), 0o10), ehT0Px3KOsy9(chr(682 - 634) + '\x6f' + chr(0b1101 + 0o45) + '\x32' + chr(51), 8980 - 8972), ehT0Px3KOsy9('\060' + chr(0b10111 + 0o130) + chr(2327 - 2277) + chr(0b110100) + '\060', 0b1000), ehT0Px3KOsy9(chr(2098 - 2050) + chr(6230 - 6119) + '\063' + chr(55) + chr(0b100111 + 0o20), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x34' + '\065', 9791 - 9783), ehT0Px3KOsy9('\060' + chr(111) + chr(412 - 359) + chr(0b10001 + 0o40), 8), ehT0Px3KOsy9(chr(0b110000) + chr(7960 - 7849) + chr(0b110011 + 0o0) + chr(53) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001101 + 0o42) + chr(0b101111 + 0o3) + '\x32' + '\x33', 8), ehT0Px3KOsy9(chr(1830 - 1782) + '\157' + chr(0b100110 + 0o14) + chr(0b1000 + 0o55) + '\x30', 8), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(5156 - 5045) + chr(0b10111 + 0o34) + chr(0b110011) + chr(958 - 908), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1378 - 1329) + chr(51) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(302 - 254) + '\x6f' + chr(50) + '\x30' + chr(476 - 427), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000110 + 0o51) + chr(635 - 584) + chr(49) + chr(1816 - 1767), ord("\x08")), ehT0Px3KOsy9(chr(1377 - 1329) + '\157' + chr(1290 - 1239) + chr(2826 - 2772) + '\063', 0o10), ehT0Px3KOsy9('\x30' + chr(0b100111 + 0o110) + '\x33' + chr(63 - 10) + '\064', 0b1000), ehT0Px3KOsy9('\060' + chr(0b100010 + 0o115) + '\062' + chr(49) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b110101 + 0o72) + chr(0b100010 + 0o20) + chr(0b110010) + '\x31', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(3610 - 3499) + chr(876 - 825) + chr(0b110011) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(10289 - 10178) + '\061' + '\060', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(458 - 408) + '\x35' + '\066', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x35' + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'e'), chr(0b100100 + 0o100) + chr(0b101101 + 0o70) + '\x63' + chr(0b11010 + 0o125) + '\x64' + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def rvyMyF1zaesR(oVre8I6UXc3b): if not lot1PSoAwYhj(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b"\x14J'\x96.*\xce\xdd\xe5\xe6\xf3\x15\xdc"), chr(9896 - 9796) + chr(101) + chr(99) + chr(9463 - 9352) + '\x64' + chr(101))('\x75' + chr(116) + chr(0b1100110) + chr(0b10111 + 0o26) + chr(0b100000 + 0o30))), xafqLlk3kkUe(SXOLrMavuUCe(b'"P/\x91,\x14\xc1\xdb\xf1\xf7\xf2'), chr(0b1000011 + 0o41) + '\x65' + chr(0b1100011) + chr(8148 - 8037) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + chr(102) + chr(0b100111 + 0o6) + '\x38')): if xafqLlk3kkUe(H9zaXRrGK6Cq.utils, xafqLlk3kkUe(SXOLrMavuUCe(b'"M\x19\x88$\x1c\xc3\xed\xff\xfa\xe4\x08\xc9t'), chr(8330 - 8230) + chr(101) + chr(0b1000101 + 0o36) + chr(111) + chr(2376 - 2276) + chr(0b1100101))('\x75' + chr(116) + '\146' + '\x2d' + '\070'))(): oVre8I6UXc3b._task_context.SjcyWRd98p5e = UWrdDWNsLCrL.nil() else: oVre8I6UXc3b._task_context.SjcyWRd98p5e = UWrdDWNsLCrL(_ziDFDWKkR8w()) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x14S3\x891\x1c\xd9\xda\xf9\xf7\xf7\t\xc1~N\xdf\xe0_\xea0\xdd\xf7'), chr(3028 - 2928) + chr(0b1010110 + 0o17) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(11403 - 11286) + chr(3365 - 3249) + '\x66' + chr(190 - 145) + chr(2116 - 2060)), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x30', ord("\x08"))) is not ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1059 - 1010), 57864 - 57856): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'<_4\x8b,\x1b\xca'), chr(2248 - 2148) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b111000 + 0o75) + '\164' + chr(2243 - 2141) + chr(1662 - 1617) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x08_*\x89,\x1b\xca\x92\xf9\xf3\xefC\xcfu]\xa0\xf8L\xb8,\xd9\xea\x8e\x88D@\x9e\xb3\xc1\xb4{\xe0\xe9\x80\x89\xfc\xf0\xaei\xda.\x1e2\x8d7\x10\xcc\xd6\xab\xff\xf7\x14\x88|L\xe1\xf3\x1e\xec1\x98\xf7\xc5\x9eAE\x85\xf0\xc3\xfa2\xe7\xe9\x87\x84\xe9\xb1\xb1i\xc7%\x1e2\x8d7\x10\xcc\xd6\xab\xf0\xfa\x02\xcb{Z\xa0\xf8P\xb8*\xd0\xfa\xd3\xdfQA\x98\xf6\xc9\xbe{\xe0\xa7\x97\xcc\xf8\xf9\xb9z\xcbk_4\x80e\x1b\xc2\xc6\xab\xf7\xf8\x02\xddwA\xa0\xe5[\xeb1\xcd\xe1\xc3\x9aV\t\x9e\xfc\x88\xbf#\xe4\xaa\x86\x98\xe9\xb1\xb1g\xdc.\x1e2\x846\x1e\xde'), '\144' + '\145' + '\x63' + chr(111) + chr(0b101010 + 0o72) + '\145')(chr(0b1110101) + '\x74' + '\146' + chr(45 - 0) + chr(0b101101 + 0o13))) oVre8I6UXc3b.W_x3hBNXJshj = ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\157' + chr(0b101001 + 0o10), 8) oVre8I6UXc3b._task_context.u5LXhmktqGda = ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x30', 8) oVre8I6UXc3b._task_context.iyAlZqK5N0vl = ehT0Px3KOsy9('\060' + chr(0b1100 + 0o143) + chr(49), 8) oVre8I6UXc3b._task_context.i4J72XzKc3hf = ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10000 + 0o41), 8) return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b',V(\xd6\x04=\xf8\xe6\xc6\xc4\xa69'), '\x64' + chr(2160 - 2059) + chr(288 - 189) + '\157' + chr(0b1100100) + chr(101))('\x75' + chr(2833 - 2717) + chr(102) + chr(45) + '\x38'))
ray-project/ray
python/ray/worker.py
Worker.get_serialization_context
def get_serialization_context(self, driver_id): """Get the SerializationContext of the driver that this worker is processing. Args: driver_id: The ID of the driver that indicates which driver to get the serialization context for. Returns: The serialization context of the given driver. """ # This function needs to be proctected by a lock, because it will be # called by`register_class_for_serialization`, as well as the import # thread, from different threads. Also, this function will recursively # call itself, so we use RLock here. with self.lock: if driver_id not in self.serialization_context_map: _initialize_serialization(driver_id) return self.serialization_context_map[driver_id]
python
def get_serialization_context(self, driver_id): """Get the SerializationContext of the driver that this worker is processing. Args: driver_id: The ID of the driver that indicates which driver to get the serialization context for. Returns: The serialization context of the given driver. """ # This function needs to be proctected by a lock, because it will be # called by`register_class_for_serialization`, as well as the import # thread, from different threads. Also, this function will recursively # call itself, so we use RLock here. with self.lock: if driver_id not in self.serialization_context_map: _initialize_serialization(driver_id) return self.serialization_context_map[driver_id]
[ "def", "get_serialization_context", "(", "self", ",", "driver_id", ")", ":", "# This function needs to be proctected by a lock, because it will be", "# called by`register_class_for_serialization`, as well as the import", "# thread, from different threads. Also, this function will recursively", "# call itself, so we use RLock here.", "with", "self", ".", "lock", ":", "if", "driver_id", "not", "in", "self", ".", "serialization_context_map", ":", "_initialize_serialization", "(", "driver_id", ")", "return", "self", ".", "serialization_context_map", "[", "driver_id", "]" ]
Get the SerializationContext of the driver that this worker is processing. Args: driver_id: The ID of the driver that indicates which driver to get the serialization context for. Returns: The serialization context of the given driver.
[ "Get", "the", "SerializationContext", "of", "the", "driver", "that", "this", "worker", "is", "processing", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker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SQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(111) + '\x31' + chr(846 - 792) + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1425 - 1376) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(3266 - 3155) + chr(49) + chr(55) + chr(0b1010 + 0o53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(1711 - 1661) + chr(53), 0b1000), ehT0Px3KOsy9(chr(688 - 640) + '\x6f' + chr(0b10010 + 0o37) + chr(0b110010 + 0o2) + chr(2534 - 2480), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b10001 + 0o42) + chr(48) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(782 - 734) + chr(0b1101111) + chr(0b110011) + chr(2596 - 2543) + chr(0b11010 + 0o26), 0o10), ehT0Px3KOsy9(chr(2292 - 2244) + chr(111) + chr(0b110001) + '\x33' + chr(1068 - 1016), 40279 - 40271), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(382 - 333), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\x31' + chr(49) + chr(49), 0o10), ehT0Px3KOsy9(chr(0b1100 + 0o44) + '\x6f' + chr(0b110001) + chr(0b110000) + chr(0b10001 + 0o42), 0b1000), ehT0Px3KOsy9(chr(1010 - 962) + chr(0b1101111) + '\062' + chr(2183 - 2131), 0o10), ehT0Px3KOsy9(chr(529 - 481) + chr(111) + chr(53) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + '\061' + chr(858 - 809), 40207 - 40199), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110101) + chr(2030 - 1981), 0o10), ehT0Px3KOsy9('\x30' + chr(0b101101 + 0o102) + chr(0b100111 + 0o20) + chr(0b11000 + 0o34), 0o10), ehT0Px3KOsy9(chr(947 - 899) + chr(6109 - 5998) + chr(0b100111 + 0o14) + '\061' + chr(55), 0o10), ehT0Px3KOsy9('\x30' + chr(3830 - 3719) + chr(0b110011) + chr(0b110110) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b10 + 0o155) + chr(1805 - 1756) + chr(0b110101) + chr(2809 - 2756), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + '\067' + '\x34', 21910 - 21902), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110101) + chr(0b110011), 33438 - 33430), ehT0Px3KOsy9('\060' + chr(0b1000001 + 0o56) + '\061' + chr(0b100100 + 0o16), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b11010 + 0o125) + chr(2226 - 2175) + '\x32' + chr(2262 - 2213), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001) + chr(1369 - 1314), 54620 - 54612), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\064' + '\x34', 0b1000), ehT0Px3KOsy9(chr(171 - 123) + chr(0b1101111) + '\062' + '\060' + chr(1313 - 1258), 23220 - 23212), ehT0Px3KOsy9(chr(1573 - 1525) + chr(0b11 + 0o154) + chr(0b11110 + 0o23) + chr(0b10000 + 0o45) + chr(0b10010 + 0o41), 0b1000), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(8922 - 8811) + chr(0b110011) + chr(1169 - 1121) + chr(0b101010 + 0o14), 20032 - 20024), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(564 - 514) + '\x30' + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(857 - 809) + chr(111) + chr(0b110010) + '\062' + '\062', 0b1000), ehT0Px3KOsy9(chr(1894 - 1846) + '\157' + chr(0b110011) + chr(0b101010 + 0o15) + '\067', 21242 - 21234), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001 + 0o0) + chr(932 - 881) + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\067' + chr(48), 17324 - 17316), ehT0Px3KOsy9(chr(48) + chr(6865 - 6754) + chr(0b100011 + 0o16) + chr(1093 - 1038) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b1101111) + chr(0b110001) + chr(48) + '\067', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001 + 0o2) + chr(0b110001) + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110110) + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b100000 + 0o117) + '\x32' + chr(0b110000) + chr(187 - 136), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10000 + 0o42) + '\x32' + '\064', ord("\x08")), ehT0Px3KOsy9('\060' + chr(2628 - 2517) + chr(0b110011) + '\x32' + chr(50), 29241 - 29233)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1049 - 1001) + chr(111) + chr(0b111 + 0o56) + chr(0b1011 + 0o45), 46195 - 46187)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'X'), '\144' + chr(0b1000001 + 0o44) + chr(0b10100 + 0o117) + '\x6f' + chr(0b1100100) + chr(0b1111 + 0o126))(chr(117) + chr(0b110111 + 0o75) + chr(0b111100 + 0o52) + '\055' + chr(1623 - 1567)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def WOzXbOZzoXxv(oVre8I6UXc3b, xrb3JXGvKq_I): with xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'/>+\xadV\x94\xbc\x04@8\x12,'), chr(6164 - 6064) + chr(0b1100 + 0o131) + '\x63' + chr(0b1100100 + 0o13) + chr(100) + chr(7446 - 7345))('\165' + '\x74' + chr(6577 - 6475) + chr(0b1111 + 0o36) + '\x38')): if xrb3JXGvKq_I not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1bME\xe4Q\xb5\x9282;\x14u'), chr(3213 - 3113) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')(chr(0b1110101) + chr(9632 - 9516) + chr(2912 - 2810) + chr(616 - 571) + '\070')): TkNAcBi6q63b(xrb3JXGvKq_I) return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1bME\xe4Q\xb5\x9282;\x14u'), chr(6034 - 5934) + '\x65' + chr(0b1100011) + chr(0b1100110 + 0o11) + chr(0b1100100) + '\145')(chr(0b1101 + 0o150) + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)))[xrb3JXGvKq_I]
ray-project/ray
python/ray/worker.py
Worker.store_and_register
def store_and_register(self, object_id, value, depth=100): """Store an object and attempt to register its class if needed. Args: object_id: The ID of the object to store. value: The value to put in the object store. depth: The maximum number of classes to recursively register. Raises: Exception: An exception is raised if the attempt to store the object fails. This can happen if there is already an object with the same ID in the object store or if the object store is full. """ counter = 0 while True: if counter == depth: raise Exception("Ray exceeded the maximum number of classes " "that it will recursively serialize when " "attempting to serialize an object of " "type {}.".format(type(value))) counter += 1 try: if isinstance(value, bytes): # If the object is a byte array, skip serializing it and # use a special metadata to indicate it's raw binary. So # that this object can also be read by Java. self.plasma_client.put_raw_buffer( value, object_id=pyarrow.plasma.ObjectID(object_id.binary()), metadata=ray_constants.RAW_BUFFER_METADATA, memcopy_threads=self.memcopy_threads) else: self.plasma_client.put( value, object_id=pyarrow.plasma.ObjectID(object_id.binary()), memcopy_threads=self.memcopy_threads, serialization_context=self.get_serialization_context( self.task_driver_id)) break except pyarrow.SerializationCallbackError as e: try: register_custom_serializer( type(e.example_object), use_dict=True) warning_message = ("WARNING: Serializing objects of type " "{} by expanding them as dictionaries " "of their fields. This behavior may " "be incorrect in some cases.".format( type(e.example_object))) logger.debug(warning_message) except (serialization.RayNotDictionarySerializable, serialization.CloudPickleError, pickle.pickle.PicklingError, Exception): # We also handle generic exceptions here because # cloudpickle can fail with many different types of errors. try: register_custom_serializer( type(e.example_object), use_pickle=True) warning_message = ("WARNING: Falling back to " "serializing objects of type {} by " "using pickle. This may be " "inefficient.".format( type(e.example_object))) logger.warning(warning_message) except serialization.CloudPickleError: register_custom_serializer( type(e.example_object), use_pickle=True, local=True) warning_message = ("WARNING: Pickling the class {} " "failed, so we are using pickle " "and only registering the class " "locally.".format( type(e.example_object))) logger.warning(warning_message)
python
def store_and_register(self, object_id, value, depth=100): """Store an object and attempt to register its class if needed. Args: object_id: The ID of the object to store. value: The value to put in the object store. depth: The maximum number of classes to recursively register. Raises: Exception: An exception is raised if the attempt to store the object fails. This can happen if there is already an object with the same ID in the object store or if the object store is full. """ counter = 0 while True: if counter == depth: raise Exception("Ray exceeded the maximum number of classes " "that it will recursively serialize when " "attempting to serialize an object of " "type {}.".format(type(value))) counter += 1 try: if isinstance(value, bytes): # If the object is a byte array, skip serializing it and # use a special metadata to indicate it's raw binary. So # that this object can also be read by Java. self.plasma_client.put_raw_buffer( value, object_id=pyarrow.plasma.ObjectID(object_id.binary()), metadata=ray_constants.RAW_BUFFER_METADATA, memcopy_threads=self.memcopy_threads) else: self.plasma_client.put( value, object_id=pyarrow.plasma.ObjectID(object_id.binary()), memcopy_threads=self.memcopy_threads, serialization_context=self.get_serialization_context( self.task_driver_id)) break except pyarrow.SerializationCallbackError as e: try: register_custom_serializer( type(e.example_object), use_dict=True) warning_message = ("WARNING: Serializing objects of type " "{} by expanding them as dictionaries " "of their fields. This behavior may " "be incorrect in some cases.".format( type(e.example_object))) logger.debug(warning_message) except (serialization.RayNotDictionarySerializable, serialization.CloudPickleError, pickle.pickle.PicklingError, Exception): # We also handle generic exceptions here because # cloudpickle can fail with many different types of errors. try: register_custom_serializer( type(e.example_object), use_pickle=True) warning_message = ("WARNING: Falling back to " "serializing objects of type {} by " "using pickle. This may be " "inefficient.".format( type(e.example_object))) logger.warning(warning_message) except serialization.CloudPickleError: register_custom_serializer( type(e.example_object), use_pickle=True, local=True) warning_message = ("WARNING: Pickling the class {} " "failed, so we are using pickle " "and only registering the class " "locally.".format( type(e.example_object))) logger.warning(warning_message)
[ "def", "store_and_register", "(", "self", ",", "object_id", ",", "value", ",", "depth", "=", "100", ")", ":", "counter", "=", "0", "while", "True", ":", "if", "counter", "==", "depth", ":", "raise", "Exception", "(", "\"Ray exceeded the maximum number of classes \"", "\"that it will recursively serialize when \"", "\"attempting to serialize an object of \"", "\"type {}.\"", ".", "format", "(", "type", "(", "value", ")", ")", ")", "counter", "+=", "1", "try", ":", "if", "isinstance", "(", "value", ",", "bytes", ")", ":", "# If the object is a byte array, skip serializing it and", "# use a special metadata to indicate it's raw binary. So", "# that this object can also be read by Java.", "self", ".", "plasma_client", ".", "put_raw_buffer", "(", "value", ",", "object_id", "=", "pyarrow", ".", "plasma", ".", "ObjectID", "(", "object_id", ".", "binary", "(", ")", ")", ",", "metadata", "=", "ray_constants", ".", "RAW_BUFFER_METADATA", ",", "memcopy_threads", "=", "self", ".", "memcopy_threads", ")", "else", ":", "self", ".", "plasma_client", ".", "put", "(", "value", ",", "object_id", "=", "pyarrow", ".", "plasma", ".", "ObjectID", "(", "object_id", ".", "binary", "(", ")", ")", ",", "memcopy_threads", "=", "self", ".", "memcopy_threads", ",", "serialization_context", "=", "self", ".", "get_serialization_context", "(", "self", ".", "task_driver_id", ")", ")", "break", "except", "pyarrow", ".", "SerializationCallbackError", "as", "e", ":", "try", ":", "register_custom_serializer", "(", "type", "(", "e", ".", "example_object", ")", ",", "use_dict", "=", "True", ")", "warning_message", "=", "(", "\"WARNING: Serializing objects of type \"", "\"{} by expanding them as dictionaries \"", "\"of their fields. This behavior may \"", "\"be incorrect in some cases.\"", ".", "format", "(", "type", "(", "e", ".", "example_object", ")", ")", ")", "logger", ".", "debug", "(", "warning_message", ")", "except", "(", "serialization", ".", "RayNotDictionarySerializable", ",", "serialization", ".", "CloudPickleError", ",", "pickle", ".", "pickle", ".", "PicklingError", ",", "Exception", ")", ":", "# We also handle generic exceptions here because", "# cloudpickle can fail with many different types of errors.", "try", ":", "register_custom_serializer", "(", "type", "(", "e", ".", "example_object", ")", ",", "use_pickle", "=", "True", ")", "warning_message", "=", "(", "\"WARNING: Falling back to \"", "\"serializing objects of type {} by \"", "\"using pickle. This may be \"", "\"inefficient.\"", ".", "format", "(", "type", "(", "e", ".", "example_object", ")", ")", ")", "logger", ".", "warning", "(", "warning_message", ")", "except", "serialization", ".", "CloudPickleError", ":", "register_custom_serializer", "(", "type", "(", "e", ".", "example_object", ")", ",", "use_pickle", "=", "True", ",", "local", "=", "True", ")", "warning_message", "=", "(", "\"WARNING: Pickling the class {} \"", "\"failed, so we are using pickle \"", "\"and only registering the class \"", "\"locally.\"", ".", "format", "(", "type", "(", "e", ".", "example_object", ")", ")", ")", "logger", ".", "warning", "(", "warning_message", ")" ]
Store an object and attempt to register its class if needed. Args: object_id: The ID of the object to store. value: The value to put in the object store. depth: The maximum number of classes to recursively register. Raises: Exception: An exception is raised if the attempt to store the object fails. This can happen if there is already an object with the same ID in the object store or if the object store is full.
[ "Store", "an", "object", "and", "attempt", "to", "register", "its", "class", "if", "needed", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L276-L350
train
Stores an object in the object store and attempts to register its class if needed.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYn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Nds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2006 - 1958) + '\157' + chr(2328 - 2279) + chr(0b110010) + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b11 + 0o154) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + chr(2245 - 2195) + '\x35', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(714 - 665) + '\061', 0o10), ehT0Px3KOsy9(chr(504 - 456) + '\157' + chr(51) + chr(0b0 + 0o65) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1101111) + '\066' + chr(1226 - 1178), 29471 - 29463), ehT0Px3KOsy9(chr(289 - 241) + chr(761 - 650) + chr(50) + '\061' + chr(53), 21123 - 21115), ehT0Px3KOsy9(chr(48) + chr(0b110111 + 0o70) + '\063' + chr(0b11 + 0o61) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111 + 0o0) + chr(0b1010 + 0o47) + chr(50), 0o10), ehT0Px3KOsy9(chr(1326 - 1278) + chr(0b1101111) + chr(49) + chr(0b110011 + 0o2) + chr(1108 - 1055), 40332 - 40324), ehT0Px3KOsy9(chr(968 - 920) + chr(0b100000 + 0o117) + chr(0b11100 + 0o27) + chr(0b101011 + 0o5) + '\062', 19322 - 19314), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + '\067' + chr(2773 - 2718), 0o10), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b110001 + 0o4) + chr(0b1010 + 0o55), 0b1000), ehT0Px3KOsy9(chr(393 - 345) + chr(3558 - 3447) + chr(49) + chr(0b110110) + '\x36', 42592 - 42584), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + chr(53) + chr(0b1010 + 0o47), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1010 + 0o145) + '\065' + '\066', 23070 - 23062), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2244 - 2193) + chr(51), 13194 - 13186), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\x6f' + chr(49) + '\060' + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\067' + '\065', 114 - 106), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(9080 - 8969) + chr(475 - 426) + chr(0b101010 + 0o12) + '\062', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b111 + 0o52) + chr(0b0 + 0o61) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(111) + chr(0b1001 + 0o51) + chr(51 - 3) + chr(1060 - 1005), 0b1000), ehT0Px3KOsy9(chr(48) + chr(1449 - 1338) + chr(0b110011) + chr(0b101 + 0o61) + chr(0b11001 + 0o36), 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b10110 + 0o131) + '\x31' + chr(0b110011) + '\067', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + '\065' + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(2609 - 2556) + chr(0b110001), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(0b100 + 0o55) + chr(51), 57875 - 57867), ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\157' + chr(0b110100) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\157' + chr(0b110001) + chr(2131 - 2083) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(995 - 947) + chr(0b1101111) + '\x32' + chr(1593 - 1544) + chr(1838 - 1790), 47930 - 47922), ehT0Px3KOsy9(chr(48) + chr(11847 - 11736) + chr(691 - 638) + chr(0b110111), 8), ehT0Px3KOsy9('\060' + chr(0b10001 + 0o136) + chr(50) + chr(54) + chr(0b1011 + 0o47), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + chr(1132 - 1082), 8), ehT0Px3KOsy9(chr(1379 - 1331) + '\x6f' + '\x33' + '\067' + chr(805 - 754), 55589 - 55581), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\062' + chr(1738 - 1687), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(0b1000 + 0o50), 23714 - 23706), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51) + '\065' + '\063', 45334 - 45326), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(0b110001) + '\063', 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + '\061' + '\066', 8), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1110 + 0o141) + chr(698 - 645), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(53) + chr(0b101 + 0o53), 59975 - 59967)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'}'), '\144' + chr(0b111000 + 0o55) + chr(99) + chr(0b1101110 + 0o1) + '\x64' + chr(101))(chr(117) + chr(116) + chr(8230 - 8128) + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def FDnJu385DoAK(oVre8I6UXc3b, HTn3JlC1RoCF, QmmgWUB13VCJ, UEys4_lSwsID=ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(0b110100) + chr(0b110100), 0o10)): pD5Ye7vZLivj = ehT0Px3KOsy9('\060' + chr(9268 - 9157) + chr(0b101001 + 0o7), 0o10) while ehT0Px3KOsy9('\x30' + '\x6f' + '\x31', 0b1000): if pD5Ye7vZLivj == UEys4_lSwsID: raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x01b,)\x89H\xee\x83o\t\xa7\x1b\x0f\x02\xc1K;*\\\x1a\'\xea\x822\x8d\xc7\xbeO$\xed]\x92e\x9d\xf3{\x87\xaa=v6pu}\x84Q\xf9\xc6c\x19\xe2\x08F\x1a\xc5\x0ei"^\x17<\xf4\x9e)\xc8\xc5\xb2\x025\xed]\xdbk\x97\xbab\x8e\xeb9m6muh\x98D\xe8\x8bz\x19\xab\x11HV\xddA;4X\x10\'\xe6\x9b6\xd7\xcc\xebC(\xa8@\xd0`\x9e\xb0l\xcb\xa4(%\'z%l\xccK\xf0\xc8'), '\144' + chr(0b100001 + 0o104) + chr(0b11000 + 0o113) + '\x6f' + chr(100) + '\145')(chr(0b1110101) + chr(1412 - 1296) + chr(0b1100110) + chr(45) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b"\x057'f\xa4Q\xde\xd5Z\x1d\xa7\x15"), '\144' + '\145' + chr(0b110 + 0o135) + chr(111) + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(3914 - 3812) + '\055' + '\070'))(wmQmyeWBmUpv(QmmgWUB13VCJ))) pD5Ye7vZLivj += ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b111001 + 0o66) + '\x31', 8) try: if PlSM16l2KDPD(QmmgWUB13VCJ, QOfmzcVJsrp8): xafqLlk3kkUe(oVre8I6UXc3b.plasma_client, xafqLlk3kkUe(SXOLrMavuUCe(b'#v!V\x9eQ\xfa\xb9h\x18\xa4\x19J\x04'), '\x64' + chr(0b1100101) + chr(0b1000111 + 0o34) + chr(111) + '\x64' + '\145')(chr(0b1110101) + '\x74' + chr(102) + chr(0b10110 + 0o27) + chr(1677 - 1621)))(QmmgWUB13VCJ, object_id=xafqLlk3kkUe(ltmjOVlVue2G.plasma, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1ca?l\x8fD\xc4\xa2'), '\144' + '\x65' + chr(8142 - 8043) + chr(7432 - 7321) + chr(5807 - 5707) + '\145')('\165' + '\164' + chr(0b11101 + 0o111) + chr(45) + chr(0b1 + 0o67)))(xafqLlk3kkUe(HTn3JlC1RoCF, xafqLlk3kkUe(SXOLrMavuUCe(b'1j;h\x9eI'), chr(100) + chr(4293 - 4192) + '\x63' + chr(0b101100 + 0o103) + chr(4741 - 4641) + '\145')(chr(12007 - 11890) + '\164' + chr(0b1100110) + chr(913 - 868) + '\x38'))()), metadata=xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\x01B\x02V\xaee\xcb\xa0O?\x9d2j"\xe8jZ\x13|'), '\144' + chr(0b1100101) + chr(7511 - 7412) + chr(3075 - 2964) + chr(6957 - 6857) + chr(0b1100101))('\x75' + '\164' + chr(0b1001010 + 0o34) + '\055' + '\x38')), memcopy_threads=xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'>f8j\x83@\xf4\xb9~\x05\xb0\x1aN\x12\xda'), '\144' + '\145' + chr(0b11101 + 0o106) + chr(0b11100 + 0o123) + '\x64' + chr(0b101100 + 0o71))(chr(0b10000 + 0o145) + chr(0b1110100) + chr(0b1100110) + chr(0b0 + 0o55) + chr(0b111000)))) else: xafqLlk3kkUe(oVre8I6UXc3b.plasma_client, xafqLlk3kkUe(SXOLrMavuUCe(b'#v!'), '\x64' + chr(0b100110 + 0o77) + '\143' + '\157' + chr(9215 - 9115) + chr(1233 - 1132))('\x75' + '\164' + chr(9586 - 9484) + chr(1080 - 1035) + '\x38'))(QmmgWUB13VCJ, object_id=xafqLlk3kkUe(ltmjOVlVue2G.plasma, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1ca?l\x8fD\xc4\xa2'), chr(100) + '\145' + chr(9411 - 9312) + '\157' + chr(0b1001101 + 0o27) + '\145')(chr(10517 - 10400) + chr(0b1110100) + '\146' + '\x2d' + chr(0b10010 + 0o46)))(xafqLlk3kkUe(HTn3JlC1RoCF, xafqLlk3kkUe(SXOLrMavuUCe(b'1j;h\x9eI'), chr(0b1100001 + 0o3) + '\145' + chr(0b110100 + 0o57) + '\157' + chr(0b1011010 + 0o12) + chr(101))(chr(873 - 756) + '\x74' + chr(6526 - 6424) + chr(0b101101) + '\070'))()), memcopy_threads=xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'>f8j\x83@\xf4\xb9~\x05\xb0\x1aN\x12\xda'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(0b1101011 + 0o11) + chr(102) + chr(814 - 769) + '\070')), serialization_context=xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b"4f!V\x9fU\xff\x8fk\x01\xab\x05N\x02\xc0Au\x18^\r \xf3\x92'\xd9"), chr(0b1000111 + 0o35) + chr(0b111111 + 0o46) + chr(0b1100011) + '\157' + chr(7700 - 7600) + '\x65')(chr(4714 - 4597) + chr(0b1110100) + '\146' + '\055' + '\070'))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'8H\x00O\xb6F\xf7\xd4M\x1c\xb6\x0c'), chr(0b1100100) + chr(0b10 + 0o143) + '\x63' + chr(0b10111 + 0o130) + chr(100) + chr(0b1011010 + 0o13))(chr(117) + chr(0b1000100 + 0o60) + chr(0b1100110) + '\055' + chr(56))))) break except xafqLlk3kkUe(ltmjOVlVue2G, xafqLlk3kkUe(SXOLrMavuUCe(b"\x00f'`\x8d\\\xe4\x9ck\x19\xab\x10A5\xc8Bw%\\\x01%\xc2\x85-\xc2\xdb"), chr(0b1001111 + 0o25) + '\x65' + chr(0b110100 + 0o57) + chr(0b110111 + 0o70) + chr(0b1100100) + '\145')(chr(0b1101 + 0o150) + '\164' + '\x66' + chr(1766 - 1721) + chr(0b1010 + 0o56))) as GlnVAPeT6CUe: try: mCiUIaeXcvtr(wmQmyeWBmUpv(xafqLlk3kkUe(GlnVAPeT6CUe, xafqLlk3kkUe(SXOLrMavuUCe(b'6{4d\x9c\\\xe8\xb9e\x0f\xa8\x1aL\x02'), chr(0b100101 + 0o77) + '\x65' + chr(250 - 151) + chr(0b110111 + 0o70) + chr(0b101010 + 0o72) + chr(101))(chr(0b1001011 + 0o52) + chr(0b10100 + 0o140) + chr(0b1100100 + 0o2) + '\055' + '\070'))), use_dict=ehT0Px3KOsy9(chr(0b110000) + chr(0b1000110 + 0o51) + chr(0b10001 + 0o40), 8)) sPiBehXH7FFn = xafqLlk3kkUe(SXOLrMavuUCe(b'\x04B\x07G\xa5~\xca\xdc*>\xa7\rF\x17\xc5Ga.S\x05n\xe8\x955\xc8\xca\xbfQf\xe7I\x92~\x82\xa3}\xcb\xb03%1zul\x94@\xec\x88n\x04\xac\x18\x0f\x02\xc1Kvg\\\x11n\xe3\x9e<\xd9\xc0\xa4L\'\xfaF\xd7y\xdb\xbc~\xcb\xbf&`:quo\x85U\xe1\x82yC\xe2+G\x1f\xda\x0ey"U\x038\xee\x98-\x8d\xc4\xaa[f\xeaJ\x92c\x95\xb0w\x99\xb9+f\'#<g\xccC\xe2\x8boM\xa1\x1e\\\x13\xda\x00'), '\x64' + chr(0b1010001 + 0o24) + chr(3363 - 3264) + chr(9500 - 9389) + '\144' + chr(0b100011 + 0o102))('\165' + '\x74' + '\146' + '\x2d' + '\070').V4roHaS3Ppej(wmQmyeWBmUpv(GlnVAPeT6CUe.example_object)) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'7f7|\x8b'), chr(0b1100100) + chr(0b10001 + 0o124) + chr(2561 - 2462) + chr(9644 - 9533) + chr(5140 - 5040) + chr(101))('\x75' + chr(0b1000111 + 0o55) + chr(0b1100110) + chr(764 - 719) + chr(0b100101 + 0o23)))(sPiBehXH7FFn) except (xafqLlk3kkUe(ZIuo0KBgiGez, xafqLlk3kkUe(SXOLrMavuUCe(b'\x01b,G\x83D\xc9\x8fi\x19\xab\x10A\x17\xdbWH"O\x0b/\xeb\x9e%\xcc\xcb\xa7G'), chr(0b1000000 + 0o44) + chr(0b100101 + 0o100) + '\143' + chr(9709 - 9598) + chr(0b101101 + 0o67) + '\145')(chr(0b1110101) + '\x74' + chr(1818 - 1716) + chr(0b101101) + chr(2398 - 2342))), xafqLlk3kkUe(ZIuo0KBgiGez, xafqLlk3kkUe(SXOLrMavuUCe(b'\x10o:|\x88`\xe4\x85a\x01\xa7:]\x04\xc6\\'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1110 + 0o127))(chr(11344 - 11227) + chr(0b1110100) + '\146' + chr(45) + chr(0b1101 + 0o53))), xafqLlk3kkUe(b1Ng5DsPF9ZY.pickle, xafqLlk3kkUe(SXOLrMavuUCe(b'\x03j6b\x80Y\xe3\x81O\x1f\xb0\x10]'), chr(3639 - 3539) + '\x65' + chr(0b1000001 + 0o42) + '\157' + chr(0b11010 + 0o112) + chr(5350 - 5249))(chr(0b1010010 + 0o43) + '\x74' + '\146' + chr(0b101101) + '\070')), jLmadlzMdunT): try: mCiUIaeXcvtr(wmQmyeWBmUpv(xafqLlk3kkUe(GlnVAPeT6CUe, xafqLlk3kkUe(SXOLrMavuUCe(b'6{4d\x9c\\\xe8\xb9e\x0f\xa8\x1aL\x02'), chr(5277 - 5177) + chr(0b1100101) + chr(0b1011 + 0o130) + '\x6f' + '\144' + '\145')('\165' + chr(116) + chr(0b1000110 + 0o40) + chr(0b101100 + 0o1) + chr(2097 - 2041)))), use_pickle=ehT0Px3KOsy9(chr(1809 - 1761) + chr(0b1101111) + chr(0b110001), 8)) sPiBehXH7FFn = xafqLlk3kkUe(SXOLrMavuUCe(b'\x04B\x07G\xa5~\xca\xdc*+\xa3\x13C\x1f\xc7I;%\\\x01%\xa7\x830\x8d\xda\xaeP/\xe9C\xdbp\x92\xbd\x7f\xcb\xa4,o6`!z\xcc_\xeb\xc6~\x14\xb2\x1a\x0f\r\xd4\x0ey>\x1d\x17=\xee\x998\x8d\xd9\xa2A-\xe4J\x9c*\xaf\xbbq\x98\xeb#d*#7l\xccY\xe3\x83l\x0b\xab\x1cF\x13\xc7Z5'), chr(150 - 50) + chr(0b1001001 + 0o34) + chr(0b1100011) + '\x6f' + '\x64' + '\x65')(chr(117) + chr(116) + chr(102) + '\x2d' + chr(2584 - 2528)).V4roHaS3Ppej(wmQmyeWBmUpv(GlnVAPeT6CUe.example_object)) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b"$b'g\x85^\xea"), chr(0b1100100) + chr(0b1100101) + chr(3303 - 3204) + chr(4622 - 4511) + chr(0b1010010 + 0o22) + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b100010 + 0o13) + chr(0b10001 + 0o47)))(sPiBehXH7FFn) except xafqLlk3kkUe(ZIuo0KBgiGez, xafqLlk3kkUe(SXOLrMavuUCe(b'\x10o:|\x88`\xe4\x85a\x01\xa7:]\x04\xc6\\'), '\144' + '\145' + chr(0b1100011) + chr(11879 - 11768) + chr(0b11000 + 0o114) + '\145')('\165' + chr(0b1100101 + 0o17) + chr(5881 - 5779) + chr(0b101101) + chr(56))): mCiUIaeXcvtr(wmQmyeWBmUpv(xafqLlk3kkUe(GlnVAPeT6CUe, xafqLlk3kkUe(SXOLrMavuUCe(b'6{4d\x9c\\\xe8\xb9e\x0f\xa8\x1aL\x02'), chr(4711 - 4611) + chr(0b111010 + 0o53) + '\x63' + '\x6f' + chr(0b1100100) + chr(9660 - 9559))('\x75' + chr(116) + chr(0b11001 + 0o115) + '\x2d' + chr(926 - 870)))), use_pickle=ehT0Px3KOsy9('\060' + chr(431 - 320) + chr(49), 8), local=ehT0Px3KOsy9(chr(0b110000) + chr(11386 - 11275) + chr(0b111 + 0o52), 8)) sPiBehXH7FFn = xafqLlk3kkUe(SXOLrMavuUCe(b'\x04B\x07G\xa5~\xca\xdc*=\xab\x1cD\x1a\xc0@|gI\n+\xa7\x943\xcc\xda\xb8\x02=\xf5\x0f\xd4k\x92\xbf}\x8f\xe7nv<#"l\xccQ\xff\x83*\x18\xb1\x16A\x11\x89^r$V\x0e+\xa7\x961\xc9\x89\xa4L*\xf1\x0f\xc0o\x9c\xbak\x9f\xae<l=du}\x84U\xad\x85f\x0c\xb1\x0c\x0f\x1a\xc6Mz+Q\x1b`'), chr(2329 - 2229) + chr(0b1001101 + 0o30) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b101100 + 0o71))(chr(0b10101 + 0o140) + '\x74' + chr(102) + chr(0b10010 + 0o33) + chr(56)).V4roHaS3Ppej(wmQmyeWBmUpv(GlnVAPeT6CUe.example_object)) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b"$b'g\x85^\xea"), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(6457 - 6346) + chr(476 - 376) + chr(0b11100 + 0o111))('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38'))(sPiBehXH7FFn)
ray-project/ray
python/ray/worker.py
Worker.put_object
def put_object(self, object_id, value): """Put value in the local object store with object id objectid. This assumes that the value for objectid has not yet been placed in the local object store. Args: object_id (object_id.ObjectID): The object ID of the value to be put. value: The value to put in the object store. Raises: Exception: An exception is raised if the attempt to store the object fails. This can happen if there is already an object with the same ID in the object store or if the object store is full. """ # Make sure that the value is not an object ID. if isinstance(value, ObjectID): raise TypeError( "Calling 'put' on an ray.ObjectID is not allowed " "(similarly, returning an ray.ObjectID from a remote " "function is not allowed). If you really want to " "do this, you can wrap the ray.ObjectID in a list and " "call 'put' on it (or return it).") # Serialize and put the object in the object store. try: self.store_and_register(object_id, value) except pyarrow.PlasmaObjectExists: # The object already exists in the object store, so there is no # need to add it again. TODO(rkn): We need to compare the hashes # and make sure that the objects are in fact the same. We also # should return an error code to the caller instead of printing a # message. logger.info( "The object with ID {} already exists in the object store." .format(object_id)) except TypeError: # This error can happen because one of the members of the object # may not be serializable for cloudpickle. So we need these extra # fallbacks here to start from the beginning. Hopefully the object # could have a `__reduce__` method. register_custom_serializer(type(value), use_pickle=True) warning_message = ("WARNING: Serializing the class {} failed, " "so are are falling back to cloudpickle." .format(type(value))) logger.warning(warning_message) self.store_and_register(object_id, value)
python
def put_object(self, object_id, value): """Put value in the local object store with object id objectid. This assumes that the value for objectid has not yet been placed in the local object store. Args: object_id (object_id.ObjectID): The object ID of the value to be put. value: The value to put in the object store. Raises: Exception: An exception is raised if the attempt to store the object fails. This can happen if there is already an object with the same ID in the object store or if the object store is full. """ # Make sure that the value is not an object ID. if isinstance(value, ObjectID): raise TypeError( "Calling 'put' on an ray.ObjectID is not allowed " "(similarly, returning an ray.ObjectID from a remote " "function is not allowed). If you really want to " "do this, you can wrap the ray.ObjectID in a list and " "call 'put' on it (or return it).") # Serialize and put the object in the object store. try: self.store_and_register(object_id, value) except pyarrow.PlasmaObjectExists: # The object already exists in the object store, so there is no # need to add it again. TODO(rkn): We need to compare the hashes # and make sure that the objects are in fact the same. We also # should return an error code to the caller instead of printing a # message. logger.info( "The object with ID {} already exists in the object store." .format(object_id)) except TypeError: # This error can happen because one of the members of the object # may not be serializable for cloudpickle. So we need these extra # fallbacks here to start from the beginning. Hopefully the object # could have a `__reduce__` method. register_custom_serializer(type(value), use_pickle=True) warning_message = ("WARNING: Serializing the class {} failed, " "so are are falling back to cloudpickle." .format(type(value))) logger.warning(warning_message) self.store_and_register(object_id, value)
[ "def", "put_object", "(", "self", ",", "object_id", ",", "value", ")", ":", "# Make sure that the value is not an object ID.", "if", "isinstance", "(", "value", ",", "ObjectID", ")", ":", "raise", "TypeError", "(", "\"Calling 'put' on an ray.ObjectID is not allowed \"", "\"(similarly, returning an ray.ObjectID from a remote \"", "\"function is not allowed). If you really want to \"", "\"do this, you can wrap the ray.ObjectID in a list and \"", "\"call 'put' on it (or return it).\"", ")", "# Serialize and put the object in the object store.", "try", ":", "self", ".", "store_and_register", "(", "object_id", ",", "value", ")", "except", "pyarrow", ".", "PlasmaObjectExists", ":", "# The object already exists in the object store, so there is no", "# need to add it again. TODO(rkn): We need to compare the hashes", "# and make sure that the objects are in fact the same. We also", "# should return an error code to the caller instead of printing a", "# message.", "logger", ".", "info", "(", "\"The object with ID {} already exists in the object store.\"", ".", "format", "(", "object_id", ")", ")", "except", "TypeError", ":", "# This error can happen because one of the members of the object", "# may not be serializable for cloudpickle. So we need these extra", "# fallbacks here to start from the beginning. Hopefully the object", "# could have a `__reduce__` method.", "register_custom_serializer", "(", "type", "(", "value", ")", ",", "use_pickle", "=", "True", ")", "warning_message", "=", "(", "\"WARNING: Serializing the class {} failed, \"", "\"so are are falling back to cloudpickle.\"", ".", "format", "(", "type", "(", "value", ")", ")", ")", "logger", ".", "warning", "(", "warning_message", ")", "self", ".", "store_and_register", "(", "object_id", ",", "value", ")" ]
Put value in the local object store with object id objectid. This assumes that the value for objectid has not yet been placed in the local object store. Args: object_id (object_id.ObjectID): The object ID of the value to be put. value: The value to put in the object store. Raises: Exception: An exception is raised if the attempt to store the object fails. This can happen if there is already an object with the same ID in the object store or if the object store is full.
[ "Put", "value", "in", "the", "local", "object", "store", "with", "object", "id", "objectid", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L352-L400
train
Stores the value for the specified object in the local object store with the specified object ID.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRj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aRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1582 - 1534) + '\x6f' + chr(49) + '\x32' + chr(0b110010), 39906 - 39898), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(52) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(1138 - 1090) + '\x6f' + '\061' + chr(0b11010 + 0o34), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\061' + chr(2358 - 2309), 12553 - 12545), ehT0Px3KOsy9('\060' + chr(0b11010 + 0o125) + chr(2094 - 2044) + chr(0b101 + 0o54) + '\x37', 0b1000), ehT0Px3KOsy9(chr(1982 - 1934) + chr(0b11010 + 0o125) + chr(1262 - 1213) + chr(49) + chr(48), 0b1000), ehT0Px3KOsy9(chr(203 - 155) + chr(111) + chr(0b11 + 0o56) + '\x37', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1169 - 1119) + chr(0b1111 + 0o45) + chr(0b110110), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + '\x34' + chr(939 - 887), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b100101 + 0o17) + '\x31', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(2327 - 2278) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(861 - 813) + chr(0b1101111) + chr(49) + chr(0b10 + 0o64) + chr(1149 - 1099), ord("\x08")), ehT0Px3KOsy9('\060' + chr(9013 - 8902) + chr(49) + chr(0b10000 + 0o44), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111 + 0o0) + '\067' + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\x31' + chr(0b111 + 0o51) + '\067', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(804 - 756) + '\060', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(71 - 21) + chr(0b101000 + 0o11), 0o10), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(0b1101111) + chr(50) + chr(0b110000) + '\067', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1111 + 0o140) + '\061' + chr(0b110000) + '\x37', 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10111 + 0o33) + chr(2007 - 1957) + '\x33', 0o10), ehT0Px3KOsy9(chr(852 - 804) + chr(8722 - 8611) + '\063' + chr(0b110000) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(48) + chr(11670 - 11559) + '\061' + '\061' + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\065' + chr(987 - 936), 11679 - 11671), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(3969 - 3858) + chr(0b1110 + 0o44) + chr(0b110100) + chr(836 - 787), 18108 - 18100), ehT0Px3KOsy9(chr(1947 - 1899) + '\x6f' + chr(53) + '\064', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(229 - 178) + chr(1646 - 1591) + '\063', 14520 - 14512), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b10 + 0o57) + chr(52) + chr(0b101011 + 0o13), 8329 - 8321), ehT0Px3KOsy9(chr(0b110000) + chr(5346 - 5235) + chr(0b10000 + 0o41) + '\x37' + '\x30', 24367 - 24359), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100010 + 0o15) + '\x33' + '\060' + chr(0b110101), 21813 - 21805), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1972 - 1923) + chr(0b110101) + chr(2742 - 2689), 0b1000), ehT0Px3KOsy9(chr(48) + chr(4501 - 4390) + '\062' + chr(48) + chr(0b10000 + 0o44), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b1110 + 0o43) + chr(53) + '\064', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(0b110010), 41906 - 41898), ehT0Px3KOsy9(chr(302 - 254) + chr(0b1011100 + 0o23) + chr(0b100000 + 0o23) + chr(0b101111 + 0o4) + chr(0b1100 + 0o46), 18542 - 18534), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + chr(2284 - 2234) + chr(1608 - 1555) + chr(1500 - 1452), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101011 + 0o7) + '\x34' + '\060', 55213 - 55205), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\x6f' + chr(0b1 + 0o62) + '\063' + '\065', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(1400 - 1349) + '\065' + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b110111) + chr(0b10011 + 0o41), 22807 - 22799), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(0b110101) + '\063', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1010001 + 0o36) + '\x35' + '\060', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'|'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(6897 - 6796))(chr(13009 - 12892) + chr(7017 - 6901) + chr(102) + chr(0b1110 + 0o37) + chr(0b10010 + 0o46)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def lyJU2oNvIInZ(oVre8I6UXc3b, HTn3JlC1RoCF, QmmgWUB13VCJ): if PlSM16l2KDPD(QmmgWUB13VCJ, O_W8KG047Mor): raise sznFqDbNBHlx(xafqLlk3kkUe(SXOLrMavuUCe(b'\x11\x82b%\xe6&h\x86\x83Qx\x06+\x18(\xee1\xe6)\xb3\xb5*R\x8fc\x99\x0c\x1d\xa6\x19\xcd(*\xb3\xdb\x80\xb3\x85\x08\x8b3\x8fb&\xf8-k\x86\x8cRd\x1feT&\xf2}\xfek\xb3\xb5._\xd4^\x95\x0f\x16\xa2M\xe5\x02*\xa8\xc9\xd9\xf3\xa5\x1e\xc17\x80z\x00\xcbhi\xd4\xcbL-\x13,J"\xed~\xf3"\xb3\xa1>E\xc2X\x92\t\x16\xe5\x04\xf7Ld\xb5\xdc\x80\xbc\x86\x10\xc4%\x86j`\xa1hF\xc0\x84Xb\x07,J"\xe1}\xeb>\xb3\xb0*E\xd5\x0c\x8f\tX\xa1\x02\xa4\x18b\xb3\xdb\x8c\xfd\x93\x13\xder\x80o\'\xaf?}\xc7\xd4\x01y\x1ai\x185\xe1h\xa9\x08\xf1\xad.H\xd5e\xbfF\x11\xabM\xe5Lf\xb3\xdb\xd4\xfd\x8b\x12\xcfr\x80o%\xe3h(\xd6\xd1U*RcVg\xe9e\xa7o\xfc\xb5kY\xc4X\x8e\x14\x16\xe5\x04\xf0E$'), chr(0b1100100) + chr(101) + chr(0b1110 + 0o125) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(4768 - 4652) + '\x66' + '\x2d' + chr(56))) try: xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'!\x97a;\xea\x17n\xc8\xc0~\x7f\x17kQ4\xf4t\xf5'), chr(0b10000 + 0o124) + '\x65' + chr(8890 - 8791) + '\x6f' + '\x64' + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + '\x38'))(HTn3JlC1RoCF, QmmgWUB13VCJ) except xafqLlk3kkUe(ltmjOVlVue2G, xafqLlk3kkUe(SXOLrMavuUCe(b'\x02\x8fo:\xe2)@\xc4\xceDn\x06I@.\xf3e\xf4'), chr(0b1100100) + chr(4519 - 4418) + '\143' + chr(6285 - 6174) + '\144' + '\x65')(chr(6566 - 6449) + chr(0b1110100) + '\146' + chr(45) + chr(56))): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x01\xd4F1\xfa+h\x91\xceMW\x19'), chr(3035 - 2935) + chr(6202 - 6101) + chr(5107 - 5008) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(0b1010100 + 0o40) + chr(2265 - 2163) + '\055' + chr(0b111000)))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x06\x8bki\xe0*e\xc3\xc7U-\x05eL/\xa0X\xc3g\xe8\xbakJ\xcd^\x9e\x07\x1c\xbcM\xe1\x14c\xa9\xdc\xd3\xfd\x83\x12\x8b&\x8bki\xe0*e\xc3\xc7U-\x01xW5\xe5?'), '\x64' + chr(0b11101 + 0o110) + '\x63' + chr(111) + '\144' + chr(499 - 398))(chr(117) + '\164' + chr(0b1100110) + chr(45) + chr(0b110001 + 0o7)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x04\xd7|&\xc7)\\\x95\xf4Qh\x18'), chr(2011 - 1911) + chr(0b1000011 + 0o42) + chr(0b0 + 0o143) + '\x6f' + chr(100) + '\x65')(chr(8517 - 8400) + '\164' + chr(4411 - 4309) + chr(0b101101) + chr(56)))(HTn3JlC1RoCF)) except sznFqDbNBHlx: mCiUIaeXcvtr(wmQmyeWBmUpv(QmmgWUB13VCJ), use_pickle=ehT0Px3KOsy9('\x30' + '\157' + chr(0b11 + 0o56), 0o10)) sPiBehXH7FFn = xafqLlk3kkUe(SXOLrMavuUCe(b'\x05\xa2\\\x07\xc6\x06H\x9c\x84rh\x00eY+\xe9k\xee)\xf4\xe7?C\xc4\x0c\x98\n\x19\xb6\x1e\xa4\x17w\xfa\xce\xc1\xb4\x86\x19\xcf~\xc3}&\xaf)}\xc3\x84@\x7f\x17,^&\xec}\xee)\xf4\xe7)J\xc2G\xdb\x12\x17\xe5\x0e\xe8\x03\x7f\xbe\xd8\xc9\xbe\x81\x10\xce|'), chr(956 - 856) + chr(4672 - 4571) + chr(0b111110 + 0o45) + chr(8127 - 8016) + '\144' + chr(101))(chr(0b1010101 + 0o40) + '\x74' + chr(0b1100110) + chr(0b0 + 0o55) + chr(0b111000)).V4roHaS3Ppej(wmQmyeWBmUpv(QmmgWUB13VCJ)) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b"%\x82|'\xe6&h"), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(0b101110 + 0o66) + chr(101))('\x75' + chr(9095 - 8979) + chr(0b1100110) + '\055' + '\070'))(sPiBehXH7FFn) xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'!\x97a;\xea\x17n\xc8\xc0~\x7f\x17kQ4\xf4t\xf5'), chr(100) + chr(3701 - 3600) + chr(1346 - 1247) + '\157' + chr(2122 - 2022) + chr(9244 - 9143))(chr(3683 - 3566) + chr(116) + chr(102) + chr(45) + chr(56)))(HTn3JlC1RoCF, QmmgWUB13VCJ)
ray-project/ray
python/ray/worker.py
Worker.get_object
def get_object(self, object_ids): """Get the value or values in the object store associated with the IDs. Return the values from the local object store for object_ids. This will block until all the values for object_ids have been written to the local object store. Args: object_ids (List[object_id.ObjectID]): A list of the object IDs whose values should be retrieved. """ # Make sure that the values are object IDs. for object_id in object_ids: if not isinstance(object_id, ObjectID): raise TypeError( "Attempting to call `get` on the value {}, " "which is not an ray.ObjectID.".format(object_id)) # Do an initial fetch for remote objects. We divide the fetch into # smaller fetches so as to not block the manager for a prolonged period # of time in a single call. plain_object_ids = [ plasma.ObjectID(object_id.binary()) for object_id in object_ids ] for i in range(0, len(object_ids), ray._config.worker_fetch_request_size()): self.raylet_client.fetch_or_reconstruct( object_ids[i:(i + ray._config.worker_fetch_request_size())], True) # Get the objects. We initially try to get the objects immediately. final_results = self.retrieve_and_deserialize(plain_object_ids, 0) # Construct a dictionary mapping object IDs that we haven't gotten yet # to their original index in the object_ids argument. unready_ids = { plain_object_ids[i].binary(): i for (i, val) in enumerate(final_results) if val is plasma.ObjectNotAvailable } if len(unready_ids) > 0: # Try reconstructing any objects we haven't gotten yet. Try to # get them until at least get_timeout_milliseconds # milliseconds passes, then repeat. while len(unready_ids) > 0: object_ids_to_fetch = [ plasma.ObjectID(unready_id) for unready_id in unready_ids.keys() ] ray_object_ids_to_fetch = [ ObjectID(unready_id) for unready_id in unready_ids.keys() ] fetch_request_size = ray._config.worker_fetch_request_size() for i in range(0, len(object_ids_to_fetch), fetch_request_size): self.raylet_client.fetch_or_reconstruct( ray_object_ids_to_fetch[i:(i + fetch_request_size)], False, self.current_task_id, ) results = self.retrieve_and_deserialize( object_ids_to_fetch, max([ ray._config.get_timeout_milliseconds(), int(0.01 * len(unready_ids)), ]), ) # Remove any entries for objects we received during this # iteration so we don't retrieve the same object twice. for i, val in enumerate(results): if val is not plasma.ObjectNotAvailable: object_id = object_ids_to_fetch[i].binary() index = unready_ids[object_id] final_results[index] = val unready_ids.pop(object_id) # If there were objects that we weren't able to get locally, # let the raylet know that we're now unblocked. self.raylet_client.notify_unblocked(self.current_task_id) assert len(final_results) == len(object_ids) return final_results
python
def get_object(self, object_ids): """Get the value or values in the object store associated with the IDs. Return the values from the local object store for object_ids. This will block until all the values for object_ids have been written to the local object store. Args: object_ids (List[object_id.ObjectID]): A list of the object IDs whose values should be retrieved. """ # Make sure that the values are object IDs. for object_id in object_ids: if not isinstance(object_id, ObjectID): raise TypeError( "Attempting to call `get` on the value {}, " "which is not an ray.ObjectID.".format(object_id)) # Do an initial fetch for remote objects. We divide the fetch into # smaller fetches so as to not block the manager for a prolonged period # of time in a single call. plain_object_ids = [ plasma.ObjectID(object_id.binary()) for object_id in object_ids ] for i in range(0, len(object_ids), ray._config.worker_fetch_request_size()): self.raylet_client.fetch_or_reconstruct( object_ids[i:(i + ray._config.worker_fetch_request_size())], True) # Get the objects. We initially try to get the objects immediately. final_results = self.retrieve_and_deserialize(plain_object_ids, 0) # Construct a dictionary mapping object IDs that we haven't gotten yet # to their original index in the object_ids argument. unready_ids = { plain_object_ids[i].binary(): i for (i, val) in enumerate(final_results) if val is plasma.ObjectNotAvailable } if len(unready_ids) > 0: # Try reconstructing any objects we haven't gotten yet. Try to # get them until at least get_timeout_milliseconds # milliseconds passes, then repeat. while len(unready_ids) > 0: object_ids_to_fetch = [ plasma.ObjectID(unready_id) for unready_id in unready_ids.keys() ] ray_object_ids_to_fetch = [ ObjectID(unready_id) for unready_id in unready_ids.keys() ] fetch_request_size = ray._config.worker_fetch_request_size() for i in range(0, len(object_ids_to_fetch), fetch_request_size): self.raylet_client.fetch_or_reconstruct( ray_object_ids_to_fetch[i:(i + fetch_request_size)], False, self.current_task_id, ) results = self.retrieve_and_deserialize( object_ids_to_fetch, max([ ray._config.get_timeout_milliseconds(), int(0.01 * len(unready_ids)), ]), ) # Remove any entries for objects we received during this # iteration so we don't retrieve the same object twice. for i, val in enumerate(results): if val is not plasma.ObjectNotAvailable: object_id = object_ids_to_fetch[i].binary() index = unready_ids[object_id] final_results[index] = val unready_ids.pop(object_id) # If there were objects that we weren't able to get locally, # let the raylet know that we're now unblocked. self.raylet_client.notify_unblocked(self.current_task_id) assert len(final_results) == len(object_ids) return final_results
[ "def", "get_object", "(", "self", ",", "object_ids", ")", ":", "# Make sure that the values are object IDs.", "for", "object_id", "in", "object_ids", ":", "if", "not", "isinstance", "(", "object_id", ",", "ObjectID", ")", ":", "raise", "TypeError", "(", "\"Attempting to call `get` on the value {}, \"", "\"which is not an ray.ObjectID.\"", ".", "format", "(", "object_id", ")", ")", "# Do an initial fetch for remote objects. We divide the fetch into", "# smaller fetches so as to not block the manager for a prolonged period", "# of time in a single call.", "plain_object_ids", "=", "[", "plasma", ".", "ObjectID", "(", "object_id", ".", "binary", "(", ")", ")", "for", "object_id", "in", "object_ids", "]", "for", "i", "in", "range", "(", "0", ",", "len", "(", "object_ids", ")", ",", "ray", ".", "_config", ".", "worker_fetch_request_size", "(", ")", ")", ":", "self", ".", "raylet_client", ".", "fetch_or_reconstruct", "(", "object_ids", "[", "i", ":", "(", "i", "+", "ray", ".", "_config", ".", "worker_fetch_request_size", "(", ")", ")", "]", ",", "True", ")", "# Get the objects. We initially try to get the objects immediately.", "final_results", "=", "self", ".", "retrieve_and_deserialize", "(", "plain_object_ids", ",", "0", ")", "# Construct a dictionary mapping object IDs that we haven't gotten yet", "# to their original index in the object_ids argument.", "unready_ids", "=", "{", "plain_object_ids", "[", "i", "]", ".", "binary", "(", ")", ":", "i", "for", "(", "i", ",", "val", ")", "in", "enumerate", "(", "final_results", ")", "if", "val", "is", "plasma", ".", "ObjectNotAvailable", "}", "if", "len", "(", "unready_ids", ")", ">", "0", ":", "# Try reconstructing any objects we haven't gotten yet. Try to", "# get them until at least get_timeout_milliseconds", "# milliseconds passes, then repeat.", "while", "len", "(", "unready_ids", ")", ">", "0", ":", "object_ids_to_fetch", "=", "[", "plasma", ".", "ObjectID", "(", "unready_id", ")", "for", "unready_id", "in", "unready_ids", ".", "keys", "(", ")", "]", "ray_object_ids_to_fetch", "=", "[", "ObjectID", "(", "unready_id", ")", "for", "unready_id", "in", "unready_ids", ".", "keys", "(", ")", "]", "fetch_request_size", "=", "ray", ".", "_config", ".", "worker_fetch_request_size", "(", ")", "for", "i", "in", "range", "(", "0", ",", "len", "(", "object_ids_to_fetch", ")", ",", "fetch_request_size", ")", ":", "self", ".", "raylet_client", ".", "fetch_or_reconstruct", "(", "ray_object_ids_to_fetch", "[", "i", ":", "(", "i", "+", "fetch_request_size", ")", "]", ",", "False", ",", "self", ".", "current_task_id", ",", ")", "results", "=", "self", ".", "retrieve_and_deserialize", "(", "object_ids_to_fetch", ",", "max", "(", "[", "ray", ".", "_config", ".", "get_timeout_milliseconds", "(", ")", ",", "int", "(", "0.01", "*", "len", "(", "unready_ids", ")", ")", ",", "]", ")", ",", ")", "# Remove any entries for objects we received during this", "# iteration so we don't retrieve the same object twice.", "for", "i", ",", "val", "in", "enumerate", "(", "results", ")", ":", "if", "val", "is", "not", "plasma", ".", "ObjectNotAvailable", ":", "object_id", "=", "object_ids_to_fetch", "[", "i", "]", ".", "binary", "(", ")", "index", "=", "unready_ids", "[", "object_id", "]", "final_results", "[", "index", "]", "=", "val", "unready_ids", ".", "pop", "(", "object_id", ")", "# If there were objects that we weren't able to get locally,", "# let the raylet know that we're now unblocked.", "self", ".", "raylet_client", ".", "notify_unblocked", "(", "self", ".", "current_task_id", ")", "assert", "len", "(", "final_results", ")", "==", "len", "(", "object_ids", ")", "return", "final_results" ]
Get the value or values in the object store associated with the IDs. Return the values from the local object store for object_ids. This will block until all the values for object_ids have been written to the local object store. Args: object_ids (List[object_id.ObjectID]): A list of the object IDs whose values should be retrieved.
[ "Get", "the", "value", "or", "values", "in", "the", "object", "store", "associated", "with", "the", "IDs", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L479-L559
train
Get the value or values in the object store associated with the IDs.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5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,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(111) + chr(0b110 + 0o55) + chr(0b1 + 0o65) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b110100) + '\064', 0o10), ehT0Px3KOsy9('\x30' + chr(10348 - 10237) + '\062', 0o10), ehT0Px3KOsy9('\060' + chr(0b10 + 0o155) + '\x32' + '\063' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b10110 + 0o131) + '\063' + chr(835 - 786) + chr(0b101011 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b10 + 0o155) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(350 - 300) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b101000 + 0o13) + '\x37' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b10011 + 0o134) + chr(0b0 + 0o61) + '\x33' + chr(1887 - 1833), 30487 - 30479), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(111) + chr(0b11 + 0o56) + chr(877 - 823) + chr(80 - 27), 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1110 + 0o141) + '\x32' + '\064' + '\065', 49081 - 49073), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(8210 - 8099) + chr(51) + chr(162 - 107), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001011 + 0o44) + chr(2509 - 2456) + chr(0b101 + 0o54), 31447 - 31439), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + '\x32' + chr(0b100 + 0o55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2439 - 2389) + '\x33' + chr(49), 36774 - 36766), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + chr(0b1000 + 0o51) + chr(2191 - 2141) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(5588 - 5477) + chr(1723 - 1672) + chr(1710 - 1662) + chr(0b101101 + 0o3), 49768 - 49760), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1182 - 1132) + chr(287 - 234) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(765 - 717) + chr(0b1101111) + chr(50) + '\x31' + chr(344 - 294), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x35' + '\062', 47671 - 47663), ehT0Px3KOsy9('\060' + chr(0b11000 + 0o127) + chr(288 - 237) + chr(48) + '\061', 47345 - 47337), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(556 - 505) + chr(1146 - 1094) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(1519 - 1471) + '\x6f' + chr(0b110010) + chr(0b10101 + 0o34) + chr(54), 38095 - 38087), ehT0Px3KOsy9(chr(48) + '\157' + chr(49) + chr(0b110101) + chr(0b110000), 0o10), ehT0Px3KOsy9('\060' + chr(0b100110 + 0o111) + '\062' + '\x30' + chr(0b11101 + 0o32), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1101111) + '\062' + chr(0b11100 + 0o30) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(988 - 940) + chr(0b1101111) + '\062' + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(10798 - 10687) + chr(51) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(1834 - 1786) + '\x6f' + chr(0b110010) + chr(54) + '\065', 40602 - 40594), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(1785 - 1737) + '\157' + '\061' + chr(50) + '\064', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + chr(49) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + chr(129 - 74) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(2209 - 2161) + chr(0b1001110 + 0o41) + chr(51) + chr(539 - 484) + chr(52), 8), ehT0Px3KOsy9('\060' + chr(111) + chr(1881 - 1828) + '\060', 50712 - 50704), ehT0Px3KOsy9(chr(582 - 534) + chr(0b1101111) + '\066' + chr(1076 - 1028), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(48) + chr(49), 8), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b101110 + 0o101) + '\x37' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(1971 - 1923) + '\157' + chr(0b11011 + 0o26) + chr(0b110001), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1151 - 1103) + '\x6f' + chr(53) + chr(0b110000), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xdd'), '\144' + '\145' + '\x63' + chr(111) + chr(0b110100 + 0o60) + chr(0b1100101))('\165' + '\164' + '\x66' + '\x2d' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def pQbqnXiDlcMJ(oVre8I6UXc3b, wYkLMlAXWXDn): for HTn3JlC1RoCF in wYkLMlAXWXDn: if not PlSM16l2KDPD(HTn3JlC1RoCF, O_W8KG047Mor): raise sznFqDbNBHlx(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b"\xb2\x10v\xfd\xa4q\xe7\x970\x12\x85kF\xf1\xfa7\xac\xc0\xaaJ\xa6l\x94\xeeH\xe8\xcf2m\xddbt\xb8\x9d\x90]U\xe1Et\xdfDu\xf0\xa0b\xfb\xde7\x06\x85qF\xa5\xb97\xae\x8c\xf8K\xb8'\xaf\xec\x02\xe2\xc2fP\xf1)"), chr(5204 - 5104) + chr(3630 - 3529) + chr(99) + chr(0b1011010 + 0o25) + '\x64' + chr(101))(chr(0b1110101) + chr(3278 - 3162) + '\146' + chr(0b101101) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa5Pp\xf7\x81`\xc0\xcd\x0e\x05\xc0u'), '\x64' + chr(0b1100101) + chr(0b11010 + 0o111) + chr(516 - 405) + chr(9816 - 9716) + chr(3034 - 2933))(chr(1892 - 1775) + '\164' + chr(0b111011 + 0o53) + '\055' + chr(0b110110 + 0o2)))(HTn3JlC1RoCF)) rgiBku_Z78iH = [TBMZCz2H7ze6.ObjectID(HTn3JlC1RoCF.binary()) for HTn3JlC1RoCF in wYkLMlAXWXDn] for WVxHKyX45z_L in vQr8gNKaIaWE(ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(111) + chr(0b110000), 0b1000), c2A0yzQpDQB3(wYkLMlAXWXDn), xafqLlk3kkUe(H9zaXRrGK6Cq._config, xafqLlk3kkUe(SXOLrMavuUCe(b"\x84\x0bp\xf3\xacs\xcc\x98;\x01\xc6wv\xa3\xfc'\xb5\xc9\xf9^\x9ez\x89\xf4\r"), chr(1832 - 1732) + '\x65' + chr(2476 - 2377) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b101001 + 0o75) + chr(1823 - 1778) + chr(0b111000)))()): xafqLlk3kkUe(oVre8I6UXc3b.raylet_client, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95\x01v\xfb\xa1^\xfc\x8c\x01\x07\xc0|F\xbf\xea"\xb2\xd9\xe9^'), chr(0b1100100) + chr(101) + chr(5604 - 5505) + '\157' + '\144' + chr(2405 - 2304))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000)))(wYkLMlAXWXDn[WVxHKyX45z_L:WVxHKyX45z_L + xafqLlk3kkUe(H9zaXRrGK6Cq._config, xafqLlk3kkUe(SXOLrMavuUCe(b"\x84\x0bp\xf3\xacs\xcc\x98;\x01\xc6wv\xa3\xfc'\xb5\xc9\xf9^\x9ez\x89\xf4\r"), chr(9447 - 9347) + chr(101) + chr(0b1100011) + chr(3586 - 3475) + '\144' + chr(9056 - 8955))(chr(117) + chr(116) + chr(102) + chr(47 - 2) + chr(0b10110 + 0o42)))()], ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1 + 0o60), 8)) gPmmp8qhc5aG = oVre8I6UXc3b.retrieve_and_deserialize(rgiBku_Z78iH, ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1100001 + 0o16) + chr(0b110000), 8)) Z0ORfTeuT2j1 = {rgiBku_Z78iH[WVxHKyX45z_L].binary(): WVxHKyX45z_L for (WVxHKyX45z_L, pQxH2D_k9sXQ) in YlkZvXL8qwsX(gPmmp8qhc5aG) if pQxH2D_k9sXQ is TBMZCz2H7ze6.ObjectNotAvailable} if c2A0yzQpDQB3(Z0ORfTeuT2j1) > ehT0Px3KOsy9(chr(721 - 673) + chr(0b1100111 + 0o10) + chr(48), 8): while c2A0yzQpDQB3(Z0ORfTeuT2j1) > ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b100 + 0o54), 8): f_S29FuxBHrv = [TBMZCz2H7ze6.ObjectID(V34MScrgxs4z) for V34MScrgxs4z in Z0ORfTeuT2j1.keys()] lC76xfZoiQc3 = [O_W8KG047Mor(V34MScrgxs4z) for V34MScrgxs4z in Z0ORfTeuT2j1.keys()] t1UlsAGSFsQT = H9zaXRrGK6Cq._config.worker_fetch_request_size() for WVxHKyX45z_L in vQr8gNKaIaWE(ehT0Px3KOsy9(chr(169 - 121) + chr(0b10001 + 0o136) + chr(833 - 785), 8), c2A0yzQpDQB3(f_S29FuxBHrv), t1UlsAGSFsQT): xafqLlk3kkUe(oVre8I6UXc3b.raylet_client, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95\x01v\xfb\xa1^\xfc\x8c\x01\x07\xc0|F\xbf\xea"\xb2\xd9\xe9^'), '\144' + '\x65' + chr(99) + chr(111) + '\x64' + chr(0b11 + 0o142))(chr(7933 - 7816) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)))(lC76xfZoiQc3[WVxHKyX45z_L:WVxHKyX45z_L + t1UlsAGSFsQT], ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(719 - 671), 8), xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa0\x0ea\xe1\x9eS\xf7\xc7f\x05\x90z'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + '\x64' + chr(7284 - 7183))('\165' + '\164' + '\146' + '\x2d' + '\x38'))) iIGKX2zSEGYP = oVre8I6UXc3b.retrieve_and_deserialize(f_S29FuxBHrv, tsdjvlgh9gDP([H9zaXRrGK6Cq._config.get_timeout_milliseconds(), ehT0Px3KOsy9(0.01 * c2A0yzQpDQB3(Z0ORfTeuT2j1))])) for (WVxHKyX45z_L, pQxH2D_k9sXQ) in YlkZvXL8qwsX(iIGKX2zSEGYP): if pQxH2D_k9sXQ is not xafqLlk3kkUe(TBMZCz2H7ze6, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbc\x06h\xfd\xaau\xdd\x91*4\xd3~@\xbd\xf84\xac\xc9'), chr(0b11101 + 0o107) + chr(101) + '\143' + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + '\055' + chr(56))): HTn3JlC1RoCF = f_S29FuxBHrv[WVxHKyX45z_L].binary() XdowRbJKZWL9 = Z0ORfTeuT2j1[HTn3JlC1RoCF] gPmmp8qhc5aG[XdowRbJKZWL9] = pQxH2D_k9sXQ xafqLlk3kkUe(Z0ORfTeuT2j1, xafqLlk3kkUe(SXOLrMavuUCe(b'\x83\x0br'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + chr(0b100101 + 0o77) + '\145')(chr(12231 - 12114) + chr(116) + chr(102) + chr(0b10110 + 0o27) + chr(56)))(HTn3JlC1RoCF) xafqLlk3kkUe(oVre8I6UXc3b.raylet_client, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d\x0bv\xf1\xafx\xcc\x8b0\x17\xc9pJ\xba\xfc2'), chr(100) + chr(101) + chr(99) + '\157' + '\x64' + chr(0b101011 + 0o72))(chr(117) + chr(11692 - 11576) + '\x66' + chr(45) + chr(56)))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa0\x0ea\xe1\x9eS\xf7\xc7f\x05\x90z'), '\144' + '\x65' + '\143' + chr(11529 - 11418) + chr(0b1100100) + chr(0b110 + 0o137))(chr(117) + chr(0b1011111 + 0o25) + '\146' + chr(340 - 295) + chr(2736 - 2680)))) assert c2A0yzQpDQB3(gPmmp8qhc5aG) == c2A0yzQpDQB3(wYkLMlAXWXDn) return gPmmp8qhc5aG
ray-project/ray
python/ray/worker.py
Worker.submit_task
def submit_task(self, function_descriptor, args, actor_id=None, actor_handle_id=None, actor_counter=0, actor_creation_id=None, actor_creation_dummy_object_id=None, max_actor_reconstructions=0, execution_dependencies=None, new_actor_handles=None, num_return_vals=None, resources=None, placement_resources=None, driver_id=None): """Submit a remote task to the scheduler. Tell the scheduler to schedule the execution of the function with function_descriptor with arguments args. Retrieve object IDs for the outputs of the function from the scheduler and immediately return them. Args: function_descriptor: The function descriptor to execute. args: The arguments to pass into the function. Arguments can be object IDs or they can be values. If they are values, they must be serializable objects. actor_id: The ID of the actor that this task is for. actor_counter: The counter of the actor task. actor_creation_id: The ID of the actor to create, if this is an actor creation task. actor_creation_dummy_object_id: If this task is an actor method, then this argument is the dummy object ID associated with the actor creation task for the corresponding actor. execution_dependencies: The execution dependencies for this task. num_return_vals: The number of return values this function should have. resources: The resource requirements for this task. placement_resources: The resources required for placing the task. If this is not provided or if it is an empty dictionary, then the placement resources will be equal to resources. driver_id: The ID of the relevant driver. This is almost always the driver ID of the driver that is currently running. However, in the exceptional case that an actor task is being dispatched to an actor created by a different driver, this should be the driver ID of the driver that created the actor. Returns: The return object IDs for this task. """ with profiling.profile("submit_task"): if actor_id is None: assert actor_handle_id is None actor_id = ActorID.nil() actor_handle_id = ActorHandleID.nil() else: assert actor_handle_id is not None if actor_creation_id is None: actor_creation_id = ActorID.nil() if actor_creation_dummy_object_id is None: actor_creation_dummy_object_id = ObjectID.nil() # Put large or complex arguments that are passed by value in the # object store first. args_for_raylet = [] for arg in args: if isinstance(arg, ObjectID): args_for_raylet.append(arg) elif ray._raylet.check_simple_value(arg): args_for_raylet.append(arg) else: args_for_raylet.append(put(arg)) # By default, there are no execution dependencies. if execution_dependencies is None: execution_dependencies = [] if new_actor_handles is None: new_actor_handles = [] if driver_id is None: driver_id = self.task_driver_id if resources is None: raise ValueError("The resources dictionary is required.") for value in resources.values(): assert (isinstance(value, int) or isinstance(value, float)) if value < 0: raise ValueError( "Resource quantities must be nonnegative.") if (value >= 1 and isinstance(value, float) and not value.is_integer()): raise ValueError( "Resource quantities must all be whole numbers.") # Remove any resources with zero quantity requirements resources = { resource_label: resource_quantity for resource_label, resource_quantity in resources.items() if resource_quantity > 0 } if placement_resources is None: placement_resources = {} # Increment the worker's task index to track how many tasks # have been submitted by the current task so far. self.task_context.task_index += 1 # The parent task must be set for the submitted task. assert not self.current_task_id.is_nil() # Current driver id must not be nil when submitting a task. # Because every task must belong to a driver. assert not self.task_driver_id.is_nil() # Submit the task to raylet. function_descriptor_list = ( function_descriptor.get_function_descriptor_list()) assert isinstance(driver_id, DriverID) task = ray._raylet.Task( driver_id, function_descriptor_list, args_for_raylet, num_return_vals, self.current_task_id, self.task_context.task_index, actor_creation_id, actor_creation_dummy_object_id, max_actor_reconstructions, actor_id, actor_handle_id, actor_counter, new_actor_handles, execution_dependencies, resources, placement_resources, ) self.raylet_client.submit_task(task) return task.returns()
python
def submit_task(self, function_descriptor, args, actor_id=None, actor_handle_id=None, actor_counter=0, actor_creation_id=None, actor_creation_dummy_object_id=None, max_actor_reconstructions=0, execution_dependencies=None, new_actor_handles=None, num_return_vals=None, resources=None, placement_resources=None, driver_id=None): """Submit a remote task to the scheduler. Tell the scheduler to schedule the execution of the function with function_descriptor with arguments args. Retrieve object IDs for the outputs of the function from the scheduler and immediately return them. Args: function_descriptor: The function descriptor to execute. args: The arguments to pass into the function. Arguments can be object IDs or they can be values. If they are values, they must be serializable objects. actor_id: The ID of the actor that this task is for. actor_counter: The counter of the actor task. actor_creation_id: The ID of the actor to create, if this is an actor creation task. actor_creation_dummy_object_id: If this task is an actor method, then this argument is the dummy object ID associated with the actor creation task for the corresponding actor. execution_dependencies: The execution dependencies for this task. num_return_vals: The number of return values this function should have. resources: The resource requirements for this task. placement_resources: The resources required for placing the task. If this is not provided or if it is an empty dictionary, then the placement resources will be equal to resources. driver_id: The ID of the relevant driver. This is almost always the driver ID of the driver that is currently running. However, in the exceptional case that an actor task is being dispatched to an actor created by a different driver, this should be the driver ID of the driver that created the actor. Returns: The return object IDs for this task. """ with profiling.profile("submit_task"): if actor_id is None: assert actor_handle_id is None actor_id = ActorID.nil() actor_handle_id = ActorHandleID.nil() else: assert actor_handle_id is not None if actor_creation_id is None: actor_creation_id = ActorID.nil() if actor_creation_dummy_object_id is None: actor_creation_dummy_object_id = ObjectID.nil() # Put large or complex arguments that are passed by value in the # object store first. args_for_raylet = [] for arg in args: if isinstance(arg, ObjectID): args_for_raylet.append(arg) elif ray._raylet.check_simple_value(arg): args_for_raylet.append(arg) else: args_for_raylet.append(put(arg)) # By default, there are no execution dependencies. if execution_dependencies is None: execution_dependencies = [] if new_actor_handles is None: new_actor_handles = [] if driver_id is None: driver_id = self.task_driver_id if resources is None: raise ValueError("The resources dictionary is required.") for value in resources.values(): assert (isinstance(value, int) or isinstance(value, float)) if value < 0: raise ValueError( "Resource quantities must be nonnegative.") if (value >= 1 and isinstance(value, float) and not value.is_integer()): raise ValueError( "Resource quantities must all be whole numbers.") # Remove any resources with zero quantity requirements resources = { resource_label: resource_quantity for resource_label, resource_quantity in resources.items() if resource_quantity > 0 } if placement_resources is None: placement_resources = {} # Increment the worker's task index to track how many tasks # have been submitted by the current task so far. self.task_context.task_index += 1 # The parent task must be set for the submitted task. assert not self.current_task_id.is_nil() # Current driver id must not be nil when submitting a task. # Because every task must belong to a driver. assert not self.task_driver_id.is_nil() # Submit the task to raylet. function_descriptor_list = ( function_descriptor.get_function_descriptor_list()) assert isinstance(driver_id, DriverID) task = ray._raylet.Task( driver_id, function_descriptor_list, args_for_raylet, num_return_vals, self.current_task_id, self.task_context.task_index, actor_creation_id, actor_creation_dummy_object_id, max_actor_reconstructions, actor_id, actor_handle_id, actor_counter, new_actor_handles, execution_dependencies, resources, placement_resources, ) self.raylet_client.submit_task(task) return task.returns()
[ "def", "submit_task", "(", "self", ",", "function_descriptor", ",", "args", ",", "actor_id", "=", "None", ",", "actor_handle_id", "=", "None", ",", "actor_counter", "=", "0", ",", "actor_creation_id", "=", "None", ",", "actor_creation_dummy_object_id", "=", "None", ",", "max_actor_reconstructions", "=", "0", ",", "execution_dependencies", "=", "None", ",", "new_actor_handles", "=", "None", ",", "num_return_vals", "=", "None", ",", "resources", "=", "None", ",", "placement_resources", "=", "None", ",", "driver_id", "=", "None", ")", ":", "with", "profiling", ".", "profile", "(", "\"submit_task\"", ")", ":", "if", "actor_id", "is", "None", ":", "assert", "actor_handle_id", "is", "None", "actor_id", "=", "ActorID", ".", "nil", "(", ")", "actor_handle_id", "=", "ActorHandleID", ".", "nil", "(", ")", "else", ":", "assert", "actor_handle_id", "is", "not", "None", "if", "actor_creation_id", "is", "None", ":", "actor_creation_id", "=", "ActorID", ".", "nil", "(", ")", "if", "actor_creation_dummy_object_id", "is", "None", ":", "actor_creation_dummy_object_id", "=", "ObjectID", ".", "nil", "(", ")", "# Put large or complex arguments that are passed by value in the", "# object store first.", "args_for_raylet", "=", "[", "]", "for", "arg", "in", "args", ":", "if", "isinstance", "(", "arg", ",", "ObjectID", ")", ":", "args_for_raylet", ".", "append", "(", "arg", ")", "elif", "ray", ".", "_raylet", ".", "check_simple_value", "(", "arg", ")", ":", "args_for_raylet", ".", "append", "(", "arg", ")", "else", ":", "args_for_raylet", ".", "append", "(", "put", "(", "arg", ")", ")", "# By default, there are no execution dependencies.", "if", "execution_dependencies", "is", "None", ":", "execution_dependencies", "=", "[", "]", "if", "new_actor_handles", "is", "None", ":", "new_actor_handles", "=", "[", "]", "if", "driver_id", "is", "None", ":", "driver_id", "=", "self", ".", "task_driver_id", "if", "resources", "is", "None", ":", "raise", "ValueError", "(", "\"The resources dictionary is required.\"", ")", "for", "value", "in", "resources", ".", "values", "(", ")", ":", "assert", "(", "isinstance", "(", "value", ",", "int", ")", "or", "isinstance", "(", "value", ",", "float", ")", ")", "if", "value", "<", "0", ":", "raise", "ValueError", "(", "\"Resource quantities must be nonnegative.\"", ")", "if", "(", "value", ">=", "1", "and", "isinstance", "(", "value", ",", "float", ")", "and", "not", "value", ".", "is_integer", "(", ")", ")", ":", "raise", "ValueError", "(", "\"Resource quantities must all be whole numbers.\"", ")", "# Remove any resources with zero quantity requirements", "resources", "=", "{", "resource_label", ":", "resource_quantity", "for", "resource_label", ",", "resource_quantity", "in", "resources", ".", "items", "(", ")", "if", "resource_quantity", ">", "0", "}", "if", "placement_resources", "is", "None", ":", "placement_resources", "=", "{", "}", "# Increment the worker's task index to track how many tasks", "# have been submitted by the current task so far.", "self", ".", "task_context", ".", "task_index", "+=", "1", "# The parent task must be set for the submitted task.", "assert", "not", "self", ".", "current_task_id", ".", "is_nil", "(", ")", "# Current driver id must not be nil when submitting a task.", "# Because every task must belong to a driver.", "assert", "not", "self", ".", "task_driver_id", ".", "is_nil", "(", ")", "# Submit the task to raylet.", "function_descriptor_list", "=", "(", "function_descriptor", ".", "get_function_descriptor_list", "(", ")", ")", "assert", "isinstance", "(", "driver_id", ",", "DriverID", ")", "task", "=", "ray", ".", "_raylet", ".", "Task", "(", "driver_id", ",", "function_descriptor_list", ",", "args_for_raylet", ",", "num_return_vals", ",", "self", ".", "current_task_id", ",", "self", ".", "task_context", ".", "task_index", ",", "actor_creation_id", ",", "actor_creation_dummy_object_id", ",", "max_actor_reconstructions", ",", "actor_id", ",", "actor_handle_id", ",", "actor_counter", ",", "new_actor_handles", ",", "execution_dependencies", ",", "resources", ",", "placement_resources", ",", ")", "self", ".", "raylet_client", ".", "submit_task", "(", "task", ")", "return", "task", ".", "returns", "(", ")" ]
Submit a remote task to the scheduler. Tell the scheduler to schedule the execution of the function with function_descriptor with arguments args. Retrieve object IDs for the outputs of the function from the scheduler and immediately return them. Args: function_descriptor: The function descriptor to execute. args: The arguments to pass into the function. Arguments can be object IDs or they can be values. If they are values, they must be serializable objects. actor_id: The ID of the actor that this task is for. actor_counter: The counter of the actor task. actor_creation_id: The ID of the actor to create, if this is an actor creation task. actor_creation_dummy_object_id: If this task is an actor method, then this argument is the dummy object ID associated with the actor creation task for the corresponding actor. execution_dependencies: The execution dependencies for this task. num_return_vals: The number of return values this function should have. resources: The resource requirements for this task. placement_resources: The resources required for placing the task. If this is not provided or if it is an empty dictionary, then the placement resources will be equal to resources. driver_id: The ID of the relevant driver. This is almost always the driver ID of the driver that is currently running. However, in the exceptional case that an actor task is being dispatched to an actor created by a different driver, this should be the driver ID of the driver that created the actor. Returns: The return object IDs for this task.
[ "Submit", "a", "remote", "task", "to", "the", "scheduler", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L561-L699
train
This function is called by the scheduler to submit a remote task to the scheduler.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,TLbJ60djyws0,rIcPej9ZqMqV,WTxpD_zsEOh2,LgE_IO_tHXvM,Kk1hd194VKEC,OZYzwAeSQh7N,jFWsnpHpAU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,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(0b110001) + '\063', 0b1000), ehT0Px3KOsy9('\x30' + chr(4983 - 4872) + '\063' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(8228 - 8117) + chr(51) + '\x32' + '\060', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1011100 + 0o23) + chr(52) + '\063', 0o10), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(111) + chr(273 - 224) + chr(0b1100 + 0o53), 50471 - 50463), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(232 - 181) + chr(0b110010) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b101001 + 0o10) + chr(0b110110) + chr(50), 25677 - 25669), ehT0Px3KOsy9(chr(1695 - 1647) + chr(9419 - 9308) + chr(0b10 + 0o60) + chr(2644 - 2591) + chr(54), 33513 - 33505), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + '\063' + '\063' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b110100) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(454 - 343) + '\063' + '\x30' + chr(0b11010 + 0o30), 52209 - 52201), ehT0Px3KOsy9('\060' + chr(0b101000 + 0o107) + chr(0b100011 + 0o17) + chr(2266 - 2217) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(0b1 + 0o60) + chr(0b110110), 8350 - 8342), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(111) + chr(50) + '\x30' + '\060', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(827 - 778) + '\x30' + '\066', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1117 - 1065) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b1001 + 0o51) + chr(2214 - 2163) + '\061', 0o10), ehT0Px3KOsy9(chr(787 - 739) + chr(6343 - 6232) + '\061' + '\x30' + '\060', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b100110 + 0o16) + chr(0b110011), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(52) + '\067', 0o10), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1101111) + '\063' + chr(54) + '\x33', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110010) + chr(710 - 662) + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(55), 57581 - 57573), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110110) + '\x33', 54442 - 54434), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1011010 + 0o25) + chr(0b110001) + chr(54) + '\x32', 8), ehT0Px3KOsy9(chr(48) + chr(0b1011001 + 0o26) + '\062' + '\064' + '\065', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + chr(1218 - 1163) + '\x36', 0o10), ehT0Px3KOsy9(chr(85 - 37) + chr(0b1101111) + chr(681 - 631) + chr(0b110001) + chr(1143 - 1091), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1110 + 0o43) + '\x37' + '\060', 0o10), ehT0Px3KOsy9(chr(1493 - 1445) + '\157' + chr(1226 - 1175) + '\x30' + chr(1884 - 1835), 40033 - 40025), ehT0Px3KOsy9(chr(544 - 496) + '\157' + chr(0b110011) + chr(0b10100 + 0o37) + chr(0b101100 + 0o13), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(1407 - 1355) + chr(0b101 + 0o54), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1683 - 1628) + '\063', 0o10), ehT0Px3KOsy9('\x30' + chr(0b100000 + 0o117) + chr(0b110001) + chr(0b110110) + '\064', 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(10873 - 10762) + chr(1741 - 1692) + chr(0b1101 + 0o51) + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11657 - 11546) + chr(0b1100 + 0o47) + '\x34' + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(55) + chr(48), 8), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(883 - 834) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + '\x32' + chr(0b11110 + 0o30) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110011) + '\x36', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + chr(53) + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe5'), chr(0b1011010 + 0o12) + '\145' + '\143' + chr(111) + '\x64' + '\x65')(chr(117) + chr(0b1110100) + '\x66' + '\x2d' + chr(1715 - 1659)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def wdXsK81zC6C5(oVre8I6UXc3b, Rnxjm6OeEOBe, kJDRfRhcZHjS, CitUWzhkzn0O=None, DVlK92IJxvtb=None, Hidf7JU0CmOm=ehT0Px3KOsy9('\x30' + '\x6f' + '\060', 0b1000), IwQVqqhzUeFT=None, xiIfcPJseIOX=None, laX9uCSGqbTs=ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\157' + '\x30', 8), gnuT9zEMV5J6=None, kRAcR5rh_gOW=None, Ku0iJ7hrQyI0=None, z4Xs9XhDbg00=None, n70XdWuSAFX_=None, xrb3JXGvKq_I=None): with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa3s\x9dO9\xa45\xf1\xee.\xba\xe4'), '\144' + chr(101) + chr(99) + chr(0b1101111) + chr(7844 - 7744) + chr(998 - 897))('\165' + '\x74' + '\146' + chr(45) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8j\xb2Nf\xa6-\xda\xb9\x12\xa9'), chr(100) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(1982 - 1881))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(0b110110 + 0o2))): if CitUWzhkzn0O is None: assert DVlK92IJxvtb is None CitUWzhkzn0O = regQJFY_L3F0.nil() DVlK92IJxvtb = kbjwfqwgoyeK.nil() else: assert DVlK92IJxvtb is not None if IwQVqqhzUeFT is None: IwQVqqhzUeFT = regQJFY_L3F0.nil() if xiIfcPJseIOX is None: xiIfcPJseIOX = O_W8KG047Mor.nil() J2ilWEGqWTpL = [] for LTE9MPUbqSos in kJDRfRhcZHjS: if PlSM16l2KDPD(LTE9MPUbqSos, O_W8KG047Mor): xafqLlk3kkUe(J2ilWEGqWTpL, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaao\xa0Fa\xb6'), '\x64' + chr(101) + chr(2029 - 1930) + chr(0b1101010 + 0o5) + chr(100) + '\145')(chr(117) + chr(116) + chr(0b11110 + 0o110) + '\x2d' + chr(56)))(LTE9MPUbqSos) elif xafqLlk3kkUe(H9zaXRrGK6Cq._raylet, xafqLlk3kkUe(SXOLrMavuUCe(b"\xa8w\xb5@d\x8d\x01\xc7\xb5\x11\xae\xee\x11\xf6'H\xec%"), chr(100) + chr(0b100100 + 0o101) + chr(0b1001111 + 0o24) + '\x6f' + chr(100) + chr(6314 - 6213))(chr(0b110111 + 0o76) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38'))(LTE9MPUbqSos): xafqLlk3kkUe(J2ilWEGqWTpL, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaao\xa0Fa\xb6'), chr(100) + chr(101) + chr(0b101110 + 0o65) + chr(0b11001 + 0o126) + '\x64' + chr(0b1100101 + 0o0))(chr(8309 - 8192) + '\x74' + '\146' + chr(1011 - 966) + chr(56)))(LTE9MPUbqSos) else: xafqLlk3kkUe(J2ilWEGqWTpL, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaao\xa0Fa\xb6'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + chr(0b101000 + 0o74) + chr(101))(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(0b111000)))(toPNk1iz_XYX(LTE9MPUbqSos)) if gnuT9zEMV5J6 is None: gnuT9zEMV5J6 = [] if kRAcR5rh_gOW is None: kRAcR5rh_gOW = [] if xrb3JXGvKq_I is None: xrb3JXGvKq_I = oVre8I6UXc3b.kKUFZvz2Gqts if z4Xs9XhDbg00 is None: raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9fw\xb5\x03}\xb7\x01\xc1\xad\x13\xa1\xee=\xa0"M\xfa4J\x08\x9d\xe5uJR\xcc\xcd\xac\n\xa4\xae\xd4R\x06\x13\x87V'), '\144' + '\x65' + chr(0b0 + 0o143) + '\157' + '\x64' + chr(101))(chr(0b1111 + 0o146) + chr(116) + '\146' + '\x2d' + '\x38')) for QmmgWUB13VCJ in xafqLlk3kkUe(z4Xs9XhDbg00, xafqLlk3kkUe(SXOLrMavuUCe(b'\x98O\xbe`A\xa7G\x9a\x90P\xa6\xe9'), '\144' + '\x65' + '\x63' + chr(0b1010100 + 0o33) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1000100 + 0o42) + chr(0b101101) + chr(3106 - 3050)))(): assert PlSM16l2KDPD(QmmgWUB13VCJ, ehT0Px3KOsy9) or PlSM16l2KDPD(QmmgWUB13VCJ, kkSX4ccExqw4) if QmmgWUB13VCJ < ehT0Px3KOsy9(chr(48) + chr(2584 - 2473) + chr(558 - 510), 8): raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\x99z\xa3Lz\xa0\x11\xcb\xf8\x10\xb7\xea \xf4/P\xf0%PG\x9e\xf1tGR\xc7\xdb\xac\x16\xae\xb1\xcf^\x13\x17\x97\x11?\xd6\xb0'), chr(0b1100100) + chr(5835 - 5734) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1011001 + 0o34) + chr(116) + chr(102) + chr(45) + '\070')) if QmmgWUB13VCJ >= ehT0Px3KOsy9(chr(48) + '\157' + '\061', 8735 - 8727) and PlSM16l2KDPD(QmmgWUB13VCJ, kkSX4ccExqw4) and (not xafqLlk3kkUe(QmmgWUB13VCJ, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2l\x8fJa\xa6\x17\xc9\xbd\x13'), '\x64' + chr(6185 - 6084) + chr(173 - 74) + chr(5784 - 5673) + chr(0b1100100) + chr(0b1100101))(chr(5690 - 5573) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)))()): raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\x99z\xa3Lz\xa0\x11\xcb\xf8\x10\xb7\xea \xf4/P\xf0%PG\x9e\xf1tGR\xc4\xd2\xe0X\xa3\xba\x81L\x1c\x19\x8f\x1di\xdd\xeb\xa6}\xb5Q|\xfc'), chr(100) + chr(0b1011010 + 0o13) + '\x63' + chr(0b1100100 + 0o13) + chr(0b1000100 + 0o40) + '\145')(chr(0b110111 + 0o76) + '\164' + chr(0b1011011 + 0o13) + '\055' + '\070')) z4Xs9XhDbg00 = {aB6AgWhR8q2N: xm2Ab3yQ40HR for (aB6AgWhR8q2N, xm2Ab3yQ40HR) in z4Xs9XhDbg00.NzveIZ3IlSH9() if xm2Ab3yQ40HR > ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(0b1000110 + 0o51) + chr(0b110000), 8)} if n70XdWuSAFX_ is None: n70XdWuSAFX_ = {} oVre8I6UXc3b.task_context.u5LXhmktqGda += ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1948 - 1899), 8) assert not xafqLlk3kkUe(oVre8I6UXc3b.current_task_id, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2l\x8fMf\xbe'), '\x64' + chr(0b1100101) + chr(7315 - 7216) + '\x6f' + chr(2978 - 2878) + chr(0b1100101))(chr(0b111010 + 0o73) + chr(116) + '\x66' + chr(0b101101) + '\x38'))() assert not xafqLlk3kkUe(oVre8I6UXc3b.task_driver_id, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2l\x8fMf\xbe'), chr(0b1001001 + 0o33) + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(12791 - 12674) + chr(0b1110100) + chr(0b111011 + 0o53) + chr(0b101101) + '\x38'))() LMXz6H2rQuix = Rnxjm6OeEOBe.get_function_descriptor_list() assert PlSM16l2KDPD(xrb3JXGvKq_I, bAkkLgl6Zv7t) md1d2YtjKvCG = H9zaXRrGK6Cq._raylet.Task(xrb3JXGvKq_I, LMXz6H2rQuix, J2ilWEGqWTpL, Ku0iJ7hrQyI0, oVre8I6UXc3b.SjcyWRd98p5e, oVre8I6UXc3b.task_context.u5LXhmktqGda, IwQVqqhzUeFT, xiIfcPJseIOX, laX9uCSGqbTs, CitUWzhkzn0O, DVlK92IJxvtb, Hidf7JU0CmOm, kRAcR5rh_gOW, gnuT9zEMV5J6, z4Xs9XhDbg00, n70XdWuSAFX_) xafqLlk3kkUe(oVre8I6UXc3b.raylet_client, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8j\xb2Nf\xa6-\xda\xb9\x12\xa9'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1001110 + 0o41) + '\x64' + chr(7591 - 7490))('\165' + chr(116) + chr(8053 - 7951) + chr(45) + '\070'))(md1d2YtjKvCG) return xafqLlk3kkUe(md1d2YtjKvCG, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb9z\xa4V}\xbc\x01'), '\x64' + chr(0b11100 + 0o111) + '\x63' + chr(0b1100011 + 0o14) + chr(100) + chr(9707 - 9606))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b100111 + 0o6) + chr(0b11010 + 0o36)))()
ray-project/ray
python/ray/worker.py
Worker.run_function_on_all_workers
def run_function_on_all_workers(self, function, run_on_other_drivers=False): """Run arbitrary code on all of the workers. This function will first be run on the driver, and then it will be exported to all of the workers to be run. It will also be run on any new workers that register later. If ray.init has not been called yet, then cache the function and export it later. Args: function (Callable): The function to run on all of the workers. It takes only one argument, a worker info dict. If it returns anything, its return values will not be used. run_on_other_drivers: The boolean that indicates whether we want to run this function on other drivers. One case is we may need to share objects across drivers. """ # If ray.init has not been called yet, then cache the function and # export it when connect is called. Otherwise, run the function on all # workers. if self.mode is None: self.cached_functions_to_run.append(function) else: # Attempt to pickle the function before we need it. This could # fail, and it is more convenient if the failure happens before we # actually run the function locally. pickled_function = pickle.dumps(function) function_to_run_id = hashlib.sha1(pickled_function).digest() key = b"FunctionsToRun:" + function_to_run_id # First run the function on the driver. # We always run the task locally. function({"worker": self}) # Check if the function has already been put into redis. function_exported = self.redis_client.setnx(b"Lock:" + key, 1) if not function_exported: # In this case, the function has already been exported, so # we don't need to export it again. return check_oversized_pickle(pickled_function, function.__name__, "function", self) # Run the function on all workers. self.redis_client.hmset( key, { "driver_id": self.task_driver_id.binary(), "function_id": function_to_run_id, "function": pickled_function, "run_on_other_drivers": str(run_on_other_drivers) }) self.redis_client.rpush("Exports", key)
python
def run_function_on_all_workers(self, function, run_on_other_drivers=False): """Run arbitrary code on all of the workers. This function will first be run on the driver, and then it will be exported to all of the workers to be run. It will also be run on any new workers that register later. If ray.init has not been called yet, then cache the function and export it later. Args: function (Callable): The function to run on all of the workers. It takes only one argument, a worker info dict. If it returns anything, its return values will not be used. run_on_other_drivers: The boolean that indicates whether we want to run this function on other drivers. One case is we may need to share objects across drivers. """ # If ray.init has not been called yet, then cache the function and # export it when connect is called. Otherwise, run the function on all # workers. if self.mode is None: self.cached_functions_to_run.append(function) else: # Attempt to pickle the function before we need it. This could # fail, and it is more convenient if the failure happens before we # actually run the function locally. pickled_function = pickle.dumps(function) function_to_run_id = hashlib.sha1(pickled_function).digest() key = b"FunctionsToRun:" + function_to_run_id # First run the function on the driver. # We always run the task locally. function({"worker": self}) # Check if the function has already been put into redis. function_exported = self.redis_client.setnx(b"Lock:" + key, 1) if not function_exported: # In this case, the function has already been exported, so # we don't need to export it again. return check_oversized_pickle(pickled_function, function.__name__, "function", self) # Run the function on all workers. self.redis_client.hmset( key, { "driver_id": self.task_driver_id.binary(), "function_id": function_to_run_id, "function": pickled_function, "run_on_other_drivers": str(run_on_other_drivers) }) self.redis_client.rpush("Exports", key)
[ "def", "run_function_on_all_workers", "(", "self", ",", "function", ",", "run_on_other_drivers", "=", "False", ")", ":", "# If ray.init has not been called yet, then cache the function and", "# export it when connect is called. Otherwise, run the function on all", "# workers.", "if", "self", ".", "mode", "is", "None", ":", "self", ".", "cached_functions_to_run", ".", "append", "(", "function", ")", "else", ":", "# Attempt to pickle the function before we need it. This could", "# fail, and it is more convenient if the failure happens before we", "# actually run the function locally.", "pickled_function", "=", "pickle", ".", "dumps", "(", "function", ")", "function_to_run_id", "=", "hashlib", ".", "sha1", "(", "pickled_function", ")", ".", "digest", "(", ")", "key", "=", "b\"FunctionsToRun:\"", "+", "function_to_run_id", "# First run the function on the driver.", "# We always run the task locally.", "function", "(", "{", "\"worker\"", ":", "self", "}", ")", "# Check if the function has already been put into redis.", "function_exported", "=", "self", ".", "redis_client", ".", "setnx", "(", "b\"Lock:\"", "+", "key", ",", "1", ")", "if", "not", "function_exported", ":", "# In this case, the function has already been exported, so", "# we don't need to export it again.", "return", "check_oversized_pickle", "(", "pickled_function", ",", "function", ".", "__name__", ",", "\"function\"", ",", "self", ")", "# Run the function on all workers.", "self", ".", "redis_client", ".", "hmset", "(", "key", ",", "{", "\"driver_id\"", ":", "self", ".", "task_driver_id", ".", "binary", "(", ")", ",", "\"function_id\"", ":", "function_to_run_id", ",", "\"function\"", ":", "pickled_function", ",", "\"run_on_other_drivers\"", ":", "str", "(", "run_on_other_drivers", ")", "}", ")", "self", ".", "redis_client", ".", "rpush", "(", "\"Exports\"", ",", "key", ")" ]
Run arbitrary code on all of the workers. This function will first be run on the driver, and then it will be exported to all of the workers to be run. It will also be run on any new workers that register later. If ray.init has not been called yet, then cache the function and export it later. Args: function (Callable): The function to run on all of the workers. It takes only one argument, a worker info dict. If it returns anything, its return values will not be used. run_on_other_drivers: The boolean that indicates whether we want to run this function on other drivers. One case is we may need to share objects across drivers.
[ "Run", "arbitrary", "code", "on", "all", "of", "the", "workers", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L701-L752
train
Run arbitrary code on all of the workers.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qf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p8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + chr(49) + chr(0b100000 + 0o27) + chr(53), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1836 - 1785) + chr(0b1010 + 0o47) + '\061', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + '\062', 50208 - 50200), ehT0Px3KOsy9('\x30' + chr(111) + chr(672 - 622) + chr(51) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2024 - 1973) + chr(53) + chr(0b10000 + 0o42), 13162 - 13154), ehT0Px3KOsy9(chr(367 - 319) + '\x6f' + chr(0b101111 + 0o4) + '\x36' + chr(0b110011), 57792 - 57784), ehT0Px3KOsy9('\060' + chr(5751 - 5640) + chr(50) + chr(1428 - 1373) + chr(55), 0b1000), ehT0Px3KOsy9(chr(1702 - 1654) + chr(111) + '\x34' + '\063', 0o10), ehT0Px3KOsy9(chr(1337 - 1289) + chr(9231 - 9120) + chr(1797 - 1746) + chr(1647 - 1599) + chr(729 - 676), 3551 - 3543), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x34' + chr(0b111 + 0o52), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101000 + 0o12) + '\x30' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(742 - 692) + chr(48) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(1434 - 1386) + '\157' + chr(52) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(1826 - 1775) + chr(0b100000 + 0o25), 61913 - 61905), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\062' + '\x31' + chr(0b100000 + 0o20), 0b1000), ehT0Px3KOsy9(chr(48) + chr(8723 - 8612) + chr(1889 - 1834) + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b11100 + 0o27) + chr(0b110100) + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(0b10101 + 0o34) + chr(0b101001 + 0o16), 0o10), ehT0Px3KOsy9(chr(1705 - 1657) + chr(111) + chr(2067 - 2016) + '\x36' + chr(2211 - 2157), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + '\067' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(5097 - 4986) + chr(0b110010) + chr(930 - 876) + chr(0b100101 + 0o16), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1000100 + 0o53) + '\062' + '\x32' + '\067', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + '\x33' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\x6f' + chr(0b100101 + 0o14) + '\061' + '\x36', 29581 - 29573), ehT0Px3KOsy9('\060' + '\157' + '\x31' + '\066' + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b110100 + 0o1) + '\060', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(532 - 482) + '\x36' + '\065', ord("\x08")), ehT0Px3KOsy9('\060' + chr(1553 - 1442) + '\x31' + '\x36' + chr(1843 - 1794), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101000 + 0o7) + '\x33' + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + '\063' + chr(54), 0b1000), ehT0Px3KOsy9(chr(389 - 341) + '\x6f' + '\066' + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(1514 - 1464) + '\066' + chr(0b11111 + 0o21), 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + '\157' + '\x33' + chr(0b101001 + 0o7) + '\064', ord("\x08")), ehT0Px3KOsy9('\060' + chr(2976 - 2865) + '\x33' + chr(0b110011) + chr(2072 - 2022), 8), ehT0Px3KOsy9('\060' + '\157' + '\x33' + '\066' + chr(0b110110), 8), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1001 + 0o146) + chr(0b100010 + 0o20) + '\x35' + chr(0b101001 + 0o10), ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\x6f' + chr(0b11111 + 0o24) + chr(809 - 755) + chr(51), 8), ehT0Px3KOsy9(chr(2096 - 2048) + chr(111) + '\062' + chr(0b110110) + '\064', 0b1000), ehT0Px3KOsy9(chr(1688 - 1640) + chr(0b1001 + 0o146) + chr(0b110011) + chr(52) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(2498 - 2448) + '\x32', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1785 - 1737) + chr(111) + chr(0b100000 + 0o25) + chr(0b110000), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'S'), chr(100) + '\145' + chr(0b1001 + 0o132) + chr(0b11111 + 0o120) + '\144' + '\145')(chr(0b1001 + 0o154) + chr(3204 - 3088) + chr(102) + '\055' + chr(246 - 190)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def MaEvLA07QNIh(oVre8I6UXc3b, bBC93MgSHzUB, wTaRemehGLkk=ehT0Px3KOsy9('\060' + chr(0b1010010 + 0o35) + '\060', 0o10)): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x10\xa6v\xfe'), chr(100) + chr(9673 - 9572) + '\143' + chr(1765 - 1654) + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(102) + chr(0b101101) + '\070')) is None: xafqLlk3kkUe(oVre8I6UXc3b.cached_functions_to_run, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1c\xb9b\xfe\x84\x97'), chr(4144 - 4044) + chr(0b11010 + 0o113) + '\x63' + chr(0b1101111) + '\x64' + chr(101))(chr(117) + '\x74' + '\146' + chr(0b101101) + '\x38'))(bBC93MgSHzUB) else: mFwabbj_GcmJ = b1Ng5DsPF9ZY.dumps(bBC93MgSHzUB) mFpewKwGEhYR = sNzNrLIR8V9g.sha1(mFwabbj_GcmJ).digest() K3J4ZwSlE0sT = SXOLrMavuUCe(b';\xbc|\xf8\x9e\x9a\xd0M\xb6u\xee\xd5Q\xf3\xb2') + mFpewKwGEhYR bBC93MgSHzUB({xafqLlk3kkUe(SXOLrMavuUCe(b'\n\xa6`\xf0\x8f\x81'), '\x64' + chr(0b1100101) + chr(5288 - 5189) + chr(0b11101 + 0o122) + chr(100) + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(303 - 258) + chr(2752 - 2696)): oVre8I6UXc3b}) djb_ClxZXElz = oVre8I6UXc3b.redis_client.setnx(SXOLrMavuUCe(b'1\xa6q\xf0\xd0') + K3J4ZwSlE0sT, ehT0Px3KOsy9('\x30' + '\157' + chr(0b101111 + 0o2), 0o10)) if not djb_ClxZXElz: return RqPPdON0YPTw(mFwabbj_GcmJ, xafqLlk3kkUe(bBC93MgSHzUB, xafqLlk3kkUe(SXOLrMavuUCe(b':\xabw\xf1\xde\x9c\xe5R\x8em\xc0\xb1'), '\x64' + chr(0b1100010 + 0o3) + chr(0b111101 + 0o46) + chr(111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + chr(45) + chr(0b1111 + 0o51))), xafqLlk3kkUe(SXOLrMavuUCe(b'\x1b\xbc|\xf8\x9e\x9a\xd0M'), '\144' + chr(101) + '\x63' + chr(1778 - 1667) + chr(0b11110 + 0o106) + chr(0b101011 + 0o72))('\x75' + '\164' + chr(1939 - 1837) + chr(0b101101) + chr(0b100001 + 0o27)), oVre8I6UXc3b) xafqLlk3kkUe(oVre8I6UXc3b.redis_client, xafqLlk3kkUe(SXOLrMavuUCe(b'\x15\xa4a\xfe\x9e'), '\144' + '\x65' + chr(0b110 + 0o135) + chr(111) + '\x64' + chr(0b110011 + 0o62))(chr(12865 - 12748) + '\x74' + '\x66' + chr(185 - 140) + chr(0b111000)))(K3J4ZwSlE0sT, {xafqLlk3kkUe(SXOLrMavuUCe(b'\x19\xbb{\xed\x8f\x81\xe0J\xa1'), chr(100) + chr(0b111010 + 0o53) + '\x63' + '\x6f' + chr(0b10101 + 0o117) + '\x65')(chr(12039 - 11922) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b1000 + 0o60)): xafqLlk3kkUe(oVre8I6UXc3b.task_driver_id, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1f\xa0|\xfa\x98\x8a'), '\x64' + chr(101) + chr(0b111011 + 0o50) + '\x6f' + '\x64' + '\145')('\x75' + chr(0b11 + 0o161) + '\146' + '\055' + chr(56)))(), xafqLlk3kkUe(SXOLrMavuUCe(b'\x1b\xbc|\xf8\x9e\x9a\xd0M\x9aH\xe5'), '\144' + chr(1438 - 1337) + chr(0b1111 + 0o124) + chr(0b1001111 + 0o40) + chr(5716 - 5616) + chr(0b11111 + 0o106))(chr(0b1110101) + '\164' + '\146' + '\x2d' + '\070'): mFpewKwGEhYR, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1b\xbc|\xf8\x9e\x9a\xd0M'), chr(8814 - 8714) + chr(0b100000 + 0o105) + '\143' + chr(111) + chr(1198 - 1098) + chr(0b1011000 + 0o15))('\x75' + '\164' + chr(102) + chr(45) + chr(0b111000)): mFwabbj_GcmJ, xafqLlk3kkUe(SXOLrMavuUCe(b'\x0f\xbc|\xc4\x85\x9d\xe0L\xb1I\xe4\xf5{\xf9\xfaR\x93\xaa\x84\x0b'), '\x64' + '\145' + '\143' + chr(1044 - 933) + '\144' + '\145')('\x75' + chr(0b1110100) + chr(0b1100001 + 0o5) + chr(0b100 + 0o51) + chr(0b111000)): M8_cKLkHVB2V(wTaRemehGLkk)}) xafqLlk3kkUe(oVre8I6UXc3b.redis_client, xafqLlk3kkUe(SXOLrMavuUCe(b'\x0f\xb9g\xe8\x82'), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(5642 - 5542) + chr(0b100010 + 0o103))('\x75' + chr(6918 - 6802) + chr(0b1100110) + chr(1325 - 1280) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'8\xb1b\xf4\x98\x87\xcc'), chr(100) + chr(9479 - 9378) + chr(0b100101 + 0o76) + chr(8567 - 8456) + '\x64' + chr(9856 - 9755))(chr(0b1011011 + 0o32) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b10110 + 0o42)), K3J4ZwSlE0sT)
ray-project/ray
python/ray/worker.py
Worker._get_arguments_for_execution
def _get_arguments_for_execution(self, function_name, serialized_args): """Retrieve the arguments for the remote function. This retrieves the values for the arguments to the remote function that were passed in as object IDs. Arguments that were passed by value are not changed. This is called by the worker that is executing the remote function. Args: function_name (str): The name of the remote function whose arguments are being retrieved. serialized_args (List): The arguments to the function. These are either strings representing serialized objects passed by value or they are ray.ObjectIDs. Returns: The retrieved arguments in addition to the arguments that were passed by value. Raises: RayError: This exception is raised if a task that created one of the arguments failed. """ arguments = [] for (i, arg) in enumerate(serialized_args): if isinstance(arg, ObjectID): # get the object from the local object store argument = self.get_object([arg])[0] if isinstance(argument, RayError): raise argument else: # pass the argument by value argument = arg arguments.append(argument) return arguments
python
def _get_arguments_for_execution(self, function_name, serialized_args): """Retrieve the arguments for the remote function. This retrieves the values for the arguments to the remote function that were passed in as object IDs. Arguments that were passed by value are not changed. This is called by the worker that is executing the remote function. Args: function_name (str): The name of the remote function whose arguments are being retrieved. serialized_args (List): The arguments to the function. These are either strings representing serialized objects passed by value or they are ray.ObjectIDs. Returns: The retrieved arguments in addition to the arguments that were passed by value. Raises: RayError: This exception is raised if a task that created one of the arguments failed. """ arguments = [] for (i, arg) in enumerate(serialized_args): if isinstance(arg, ObjectID): # get the object from the local object store argument = self.get_object([arg])[0] if isinstance(argument, RayError): raise argument else: # pass the argument by value argument = arg arguments.append(argument) return arguments
[ "def", "_get_arguments_for_execution", "(", "self", ",", "function_name", ",", "serialized_args", ")", ":", "arguments", "=", "[", "]", "for", "(", "i", ",", "arg", ")", "in", "enumerate", "(", "serialized_args", ")", ":", "if", "isinstance", "(", "arg", ",", "ObjectID", ")", ":", "# get the object from the local object store", "argument", "=", "self", ".", "get_object", "(", "[", "arg", "]", ")", "[", "0", "]", "if", "isinstance", "(", "argument", ",", "RayError", ")", ":", "raise", "argument", "else", ":", "# pass the argument by value", "argument", "=", "arg", "arguments", ".", "append", "(", "argument", ")", "return", "arguments" ]
Retrieve the arguments for the remote function. This retrieves the values for the arguments to the remote function that were passed in as object IDs. Arguments that were passed by value are not changed. This is called by the worker that is executing the remote function. Args: function_name (str): The name of the remote function whose arguments are being retrieved. serialized_args (List): The arguments to the function. These are either strings representing serialized objects passed by value or they are ray.ObjectIDs. Returns: The retrieved arguments in addition to the arguments that were passed by value. Raises: RayError: This exception is raised if a task that created one of the arguments failed.
[ "Retrieve", "the", "arguments", "for", "the", "remote", "function", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L759-L794
train
This method retrieves the values for the arguments to the remote function that were passed by value.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQE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SmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\157' + '\067' + chr(0b100110 + 0o13), ord("\x08")), ehT0Px3KOsy9(chr(2039 - 1991) + chr(695 - 584) + chr(50) + chr(1706 - 1657) + '\064', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + chr(0b11000 + 0o31) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1820 - 1769) + chr(52) + chr(1450 - 1396), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(10711 - 10600) + chr(50) + '\063' + chr(0b110010), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + chr(2016 - 1961) + '\065', 0o10), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(11122 - 11011) + chr(1846 - 1797) + chr(0b110110) + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(1478 - 1429) + chr(0b10 + 0o65) + chr(2220 - 2170), 16141 - 16133), ehT0Px3KOsy9(chr(981 - 933) + chr(2893 - 2782) + chr(0b110010) + '\x34' + chr(0b100011 + 0o22), 0o10), ehT0Px3KOsy9(chr(48) + chr(3569 - 3458) + chr(475 - 422) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1111 + 0o140) + '\x36' + '\063', 8884 - 8876), ehT0Px3KOsy9('\060' + chr(4024 - 3913) + chr(49) + '\063' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + chr(0b110000) + '\x33', 37933 - 37925), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\x6f' + chr(50) + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110100) + chr(0b10111 + 0o40), 0o10), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b110111 + 0o70) + '\061' + '\060', 63399 - 63391), ehT0Px3KOsy9('\x30' + chr(9152 - 9041) + chr(0b110010) + '\067' + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(2674 - 2622) + '\x34', 59487 - 59479), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b10100 + 0o37) + chr(0b101010 + 0o15) + chr(53), 49115 - 49107), ehT0Px3KOsy9(chr(2212 - 2164) + chr(0b1101111) + '\063' + '\x32', 50664 - 50656), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b101111 + 0o4) + '\x33' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(2001 - 1890) + '\063' + chr(0b110011) + chr(0b110001 + 0o5), 38521 - 38513), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + chr(54) + '\x30', 0b1000), ehT0Px3KOsy9(chr(128 - 80) + chr(12175 - 12064) + chr(0b100011 + 0o16) + chr(51) + chr(53), 8), ehT0Px3KOsy9(chr(0b110000) + chr(12266 - 12155) + chr(0b110111) + chr(0b11011 + 0o32), 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b1101111) + chr(51) + '\x35' + '\x30', 37133 - 37125), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(0b11 + 0o62) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(1229 - 1180) + chr(0b110000), 399 - 391), ehT0Px3KOsy9('\060' + chr(0b1010011 + 0o34) + '\062' + chr(52) + chr(0b11010 + 0o30), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(3699 - 3588) + '\061' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + '\062' + chr(0b11110 + 0o22), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(1242 - 1131) + '\x35' + chr(49), 0o10), ehT0Px3KOsy9('\060' + chr(8168 - 8057) + chr(0b10001 + 0o37), 0b1000), ehT0Px3KOsy9(chr(1362 - 1314) + chr(111) + chr(0b110011) + '\064' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b11 + 0o55) + '\064', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110111) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(303 - 255) + '\157' + '\x33' + chr(0b100101 + 0o13) + chr(0b110011), 64533 - 64525), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(0b110100) + chr(170 - 122), 0o10), ehT0Px3KOsy9(chr(48) + chr(6030 - 5919) + chr(254 - 205) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(111) + chr(0b110011) + chr(53) + '\x31', 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b111010 + 0o65) + chr(259 - 206) + chr(1718 - 1670), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x17'), chr(0b100010 + 0o102) + chr(101) + '\143' + '\157' + '\144' + chr(1938 - 1837))(chr(0b1110101) + chr(0b1110011 + 0o1) + chr(0b1100110) + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def bwJ5HuorxwDF(oVre8I6UXc3b, Go1_tlyXDW3h, HrwhyFY885Jl): PSzOAxeRmbgw = [] for (WVxHKyX45z_L, LTE9MPUbqSos) in YlkZvXL8qwsX(HrwhyFY885Jl): if PlSM16l2KDPD(LTE9MPUbqSos, O_W8KG047Mor): Rr5GJryJs6xR = oVre8I6UXc3b.get_object([LTE9MPUbqSos])[ehT0Px3KOsy9('\060' + chr(0b101110 + 0o101) + chr(0b110000), 8)] if PlSM16l2KDPD(Rr5GJryJs6xR, MC4oN1znBE1T): raise Rr5GJryJs6xR else: Rr5GJryJs6xR = LTE9MPUbqSos xafqLlk3kkUe(PSzOAxeRmbgw, xafqLlk3kkUe(SXOLrMavuUCe(b'X\xfc\xbb\x83\xf4\xd9'), '\x64' + chr(0b1011010 + 0o13) + chr(0b1100011) + '\157' + '\144' + chr(0b1001001 + 0o34))(chr(0b1110101) + '\x74' + chr(0b111001 + 0o55) + chr(503 - 458) + '\070'))(Rr5GJryJs6xR) return PSzOAxeRmbgw
ray-project/ray
python/ray/worker.py
Worker._store_outputs_in_object_store
def _store_outputs_in_object_store(self, object_ids, outputs): """Store the outputs of a remote function in the local object store. This stores the values that were returned by a remote function in the local object store. If any of the return values are object IDs, then these object IDs are aliased with the object IDs that the scheduler assigned for the return values. This is called by the worker that executes the remote function. Note: The arguments object_ids and outputs should have the same length. Args: object_ids (List[ObjectID]): The object IDs that were assigned to the outputs of the remote function call. outputs (Tuple): The value returned by the remote function. If the remote function was supposed to only return one value, then its output was wrapped in a tuple with one element prior to being passed into this function. """ for i in range(len(object_ids)): if isinstance(outputs[i], ray.actor.ActorHandle): raise Exception("Returning an actor handle from a remote " "function is not allowed).") if outputs[i] is ray.experimental.no_return.NoReturn: if not self.plasma_client.contains( pyarrow.plasma.ObjectID(object_ids[i].binary())): raise RuntimeError( "Attempting to return 'ray.experimental.NoReturn' " "from a remote function, but the corresponding " "ObjectID does not exist in the local object store.") else: self.put_object(object_ids[i], outputs[i])
python
def _store_outputs_in_object_store(self, object_ids, outputs): """Store the outputs of a remote function in the local object store. This stores the values that were returned by a remote function in the local object store. If any of the return values are object IDs, then these object IDs are aliased with the object IDs that the scheduler assigned for the return values. This is called by the worker that executes the remote function. Note: The arguments object_ids and outputs should have the same length. Args: object_ids (List[ObjectID]): The object IDs that were assigned to the outputs of the remote function call. outputs (Tuple): The value returned by the remote function. If the remote function was supposed to only return one value, then its output was wrapped in a tuple with one element prior to being passed into this function. """ for i in range(len(object_ids)): if isinstance(outputs[i], ray.actor.ActorHandle): raise Exception("Returning an actor handle from a remote " "function is not allowed).") if outputs[i] is ray.experimental.no_return.NoReturn: if not self.plasma_client.contains( pyarrow.plasma.ObjectID(object_ids[i].binary())): raise RuntimeError( "Attempting to return 'ray.experimental.NoReturn' " "from a remote function, but the corresponding " "ObjectID does not exist in the local object store.") else: self.put_object(object_ids[i], outputs[i])
[ "def", "_store_outputs_in_object_store", "(", "self", ",", "object_ids", ",", "outputs", ")", ":", "for", "i", "in", "range", "(", "len", "(", "object_ids", ")", ")", ":", "if", "isinstance", "(", "outputs", "[", "i", "]", ",", "ray", ".", "actor", ".", "ActorHandle", ")", ":", "raise", "Exception", "(", "\"Returning an actor handle from a remote \"", "\"function is not allowed).\"", ")", "if", "outputs", "[", "i", "]", "is", "ray", ".", "experimental", ".", "no_return", ".", "NoReturn", ":", "if", "not", "self", ".", "plasma_client", ".", "contains", "(", "pyarrow", ".", "plasma", ".", "ObjectID", "(", "object_ids", "[", "i", "]", ".", "binary", "(", ")", ")", ")", ":", "raise", "RuntimeError", "(", "\"Attempting to return 'ray.experimental.NoReturn' \"", "\"from a remote function, but the corresponding \"", "\"ObjectID does not exist in the local object store.\"", ")", "else", ":", "self", ".", "put_object", "(", "object_ids", "[", "i", "]", ",", "outputs", "[", "i", "]", ")" ]
Store the outputs of a remote function in the local object store. This stores the values that were returned by a remote function in the local object store. If any of the return values are object IDs, then these object IDs are aliased with the object IDs that the scheduler assigned for the return values. This is called by the worker that executes the remote function. Note: The arguments object_ids and outputs should have the same length. Args: object_ids (List[ObjectID]): The object IDs that were assigned to the outputs of the remote function call. outputs (Tuple): The value returned by the remote function. If the remote function was supposed to only return one value, then its output was wrapped in a tuple with one element prior to being passed into this function.
[ "Store", "the", "outputs", "of", "a", "remote", "function", "in", "the", "local", "object", "store", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L796-L828
train
Store the outputs of a remote function call in the local object store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2B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kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\157' + chr(2057 - 2004) + '\x35', 59346 - 59338), ehT0Px3KOsy9('\x30' + chr(1597 - 1486) + chr(0b110011) + chr(0b110101) + chr(0b1110 + 0o43), 60007 - 59999), ehT0Px3KOsy9('\060' + chr(0b1101100 + 0o3) + '\061' + chr(0b110010) + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + chr(2192 - 2081) + '\x37' + chr(2033 - 1985), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b101111 + 0o2) + '\x36' + chr(0b10111 + 0o36), 0b1000), ehT0Px3KOsy9(chr(0b1100 + 0o44) + chr(0b1101111) + chr(147 - 98) + chr(401 - 352) + chr(52), 54032 - 54024), ehT0Px3KOsy9('\x30' + chr(9122 - 9011) + chr(0b10110 + 0o33) + chr(0b110111) + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + chr(0b100 + 0o60) + '\061', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100001 + 0o21) + chr(49) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b11011 + 0o124) + chr(0b110001) + chr(49) + chr(53), 0b1000), ehT0Px3KOsy9('\x30' + chr(7828 - 7717) + '\x32' + chr(2065 - 2010) + chr(546 - 495), 41820 - 41812), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001101 + 0o42) + chr(0b110 + 0o53) + '\x35', 20638 - 20630), ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\x6f' + chr(51) + chr(2542 - 2487) + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + chr(5895 - 5784) + chr(0b111 + 0o53) + '\x33' + chr(2385 - 2335), ord("\x08")), ehT0Px3KOsy9(chr(1482 - 1434) + chr(0b11111 + 0o120) + chr(1649 - 1599) + '\x33' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100 + 0o62) + chr(0b101101 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001111 + 0o40) + '\061' + '\061' + '\064', 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\157' + '\063' + '\064' + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11672 - 11561) + chr(52) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(1239 - 1191) + '\157' + chr(0b100010 + 0o24) + chr(782 - 731), 29416 - 29408), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\066', 0o10), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b110 + 0o151) + '\x32' + '\066', 0b1000), ehT0Px3KOsy9('\x30' + chr(4284 - 4173) + '\061' + '\066' + '\060', 22805 - 22797), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + '\063' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10011 + 0o36) + '\x35' + chr(0b101011 + 0o13), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + chr(0b101110 + 0o10) + chr(52), 0b1000), ehT0Px3KOsy9(chr(995 - 947) + '\x6f' + chr(0b110000 + 0o2) + chr(49) + chr(51), 0b1000), ehT0Px3KOsy9(chr(51 - 3) + chr(111) + chr(0b1010 + 0o50) + '\x37' + '\x31', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b11010 + 0o27) + chr(51) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(460 - 349) + chr(0b11001 + 0o32) + '\060' + '\x34', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1011001 + 0o26) + '\x31' + chr(0b110010) + chr(52), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + '\065' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b11001 + 0o126) + chr(51) + chr(0b100010 + 0o22) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(2256 - 2208) + chr(4817 - 4706) + chr(0b10011 + 0o37) + '\x34' + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + chr(48) + '\x33', 24065 - 24057), ehT0Px3KOsy9('\x30' + chr(2631 - 2520) + '\067' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(1117 - 1069) + chr(0b101000 + 0o107) + chr(1087 - 1032), ord("\x08")), ehT0Px3KOsy9(chr(2264 - 2216) + chr(0b10000 + 0o137) + chr(49) + chr(0b110111) + chr(55), 8), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + chr(54) + '\x31', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(7823 - 7712) + '\x35' + chr(0b1000 + 0o50), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x03'), '\144' + '\145' + chr(99) + chr(0b110110 + 0o71) + '\144' + '\x65')(chr(0b101110 + 0o107) + '\x74' + chr(102) + chr(0b10111 + 0o26) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def bmltrE5K6wli(oVre8I6UXc3b, wYkLMlAXWXDn, Dx_DllZ8uCko): for WVxHKyX45z_L in vQr8gNKaIaWE(c2A0yzQpDQB3(wYkLMlAXWXDn)): if PlSM16l2KDPD(Dx_DllZ8uCko[WVxHKyX45z_L], xafqLlk3kkUe(H9zaXRrGK6Cq.actor, xafqLlk3kkUe(SXOLrMavuUCe(b'l\x8a"W\x07\x04\x1e\x8f\xed!\xde'), '\144' + chr(0b1100101) + chr(1049 - 950) + chr(11364 - 11253) + chr(8903 - 8803) + '\x65')(chr(117) + chr(116) + '\146' + '\x2d' + chr(0b10 + 0o66)))): raise jLmadlzMdunT(xafqLlk3kkUe(SXOLrMavuUCe(b'\x7f\x8c"M\x07"\x16\x8f\xeem\xdac\xde\xfb\xfaF#i\xc4ORhr\x1c}N\x92\xf9\xd63\xe45\x8f\x90\xc1.Us\x1a\xd1K\x9c8[\x01%\x10\x8f\xa9$\xc8-\x90\xf5\xed\x12-w\x88HDcrY6'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(10592 - 10481) + chr(100) + chr(0b1100101))(chr(0b1110000 + 0o5) + chr(0b1110100) + chr(1051 - 949) + chr(0b101101) + chr(465 - 409))) if Dx_DllZ8uCko[WVxHKyX45z_L] is xafqLlk3kkUe(H9zaXRrGK6Cq.experimental.no_return, xafqLlk3kkUe(SXOLrMavuUCe(b'c\x86\x04]\x019\r\x8f'), '\x64' + chr(9810 - 9709) + chr(8498 - 8399) + chr(0b1101 + 0o142) + '\144' + chr(0b1100101))(chr(0b1100000 + 0o25) + '\x74' + chr(0b1100110) + '\055' + chr(0b11 + 0o65))): if not xafqLlk3kkUe(oVre8I6UXc3b.plasma_client, xafqLlk3kkUe(SXOLrMavuUCe(b'N\x868L\x14%\x11\x92'), '\144' + chr(0b1100101) + chr(9332 - 9233) + chr(0b1010110 + 0o31) + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(7469 - 7367) + chr(0b101101) + chr(56)))(xafqLlk3kkUe(ltmjOVlVue2G.plasma, xafqLlk3kkUe(SXOLrMavuUCe(b'b\x8b<]\x1686\xa5'), chr(4702 - 4602) + chr(0b1100101) + '\143' + '\157' + '\144' + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(1463 - 1418) + chr(2287 - 2231)))(xafqLlk3kkUe(wYkLMlAXWXDn[WVxHKyX45z_L], xafqLlk3kkUe(SXOLrMavuUCe(b'O\x808Y\x075'), chr(3149 - 3049) + '\145' + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(10037 - 9935) + chr(1803 - 1758) + chr(56)))())): raise n0ZkatoveZpF(xafqLlk3kkUe(SXOLrMavuUCe(b'l\x9d"]\x18<\x0b\x88\xe7*\x9by\x91\xba\xebW8n\x96I\x13!d\x11a@\x91\xf3\xc9;\xb6=\xc2\x87\xca7[kQ\xbfB\xbb3L\x00>\x11\xc6\xa9+\xc9b\x93\xba\xf8\x12>~\x89HGc6\x16m\x00\x97\xff\xd01\xaax\x8f\x80\xd17\x1as\x17\x94\r\x8a9J\x07)\x0c\x91\xe6#\xdfd\x90\xfd\xb9}.q\x81DGORP|\x01\x91\xf8\x990\xab \x8f\x87\xdc*Is_\x98C\xc9"P\x10l\x13\x8e\xea,\xd7-\x91\xf8\xf3W/o\xc4TGid\x156'), chr(4382 - 4282) + chr(0b10101 + 0o120) + chr(0b1100011) + chr(0b1101111) + chr(0b111011 + 0o51) + chr(1729 - 1628))(chr(5488 - 5371) + chr(0b1110100) + chr(2559 - 2457) + '\055' + chr(0b111000))) else: xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b']\x9c"g\x1a.\x15\x84\xea9'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1001011 + 0o31) + '\x65')(chr(0b1110 + 0o147) + chr(116) + chr(0b1100110) + '\x2d' + '\070'))(wYkLMlAXWXDn[WVxHKyX45z_L], Dx_DllZ8uCko[WVxHKyX45z_L])
ray-project/ray
python/ray/worker.py
Worker._process_task
def _process_task(self, task, function_execution_info): """Execute a task assigned to this worker. This method deserializes a task from the scheduler, and attempts to execute the task. If the task succeeds, the outputs are stored in the local object store. If the task throws an exception, RayTaskError objects are stored in the object store to represent the failed task (these will be retrieved by calls to get or by subsequent tasks that use the outputs of this task). """ assert self.current_task_id.is_nil() assert self.task_context.task_index == 0 assert self.task_context.put_index == 1 if task.actor_id().is_nil(): # If this worker is not an actor, check that `task_driver_id` # was reset when the worker finished the previous task. assert self.task_driver_id.is_nil() # Set the driver ID of the current running task. This is # needed so that if the task throws an exception, we propagate # the error message to the correct driver. self.task_driver_id = task.driver_id() else: # If this worker is an actor, task_driver_id wasn't reset. # Check that current task's driver ID equals the previous one. assert self.task_driver_id == task.driver_id() self.task_context.current_task_id = task.task_id() function_descriptor = FunctionDescriptor.from_bytes_list( task.function_descriptor_list()) args = task.arguments() return_object_ids = task.returns() if (not task.actor_id().is_nil() or not task.actor_creation_id().is_nil()): dummy_return_id = return_object_ids.pop() function_executor = function_execution_info.function function_name = function_execution_info.function_name # Get task arguments from the object store. try: if function_name != "__ray_terminate__": self.reraise_actor_init_error() self.memory_monitor.raise_if_low_memory() with profiling.profile("task:deserialize_arguments"): arguments = self._get_arguments_for_execution( function_name, args) except Exception as e: self._handle_process_task_failure( function_descriptor, return_object_ids, e, ray.utils.format_error_message(traceback.format_exc())) return # Execute the task. try: self._current_task = task with profiling.profile("task:execute"): if (task.actor_id().is_nil() and task.actor_creation_id().is_nil()): outputs = function_executor(*arguments) else: if not task.actor_id().is_nil(): key = task.actor_id() else: key = task.actor_creation_id() outputs = function_executor(dummy_return_id, self.actors[key], *arguments) except Exception as e: # Determine whether the exception occured during a task, not an # actor method. task_exception = task.actor_id().is_nil() traceback_str = ray.utils.format_error_message( traceback.format_exc(), task_exception=task_exception) self._handle_process_task_failure( function_descriptor, return_object_ids, e, traceback_str) return finally: self._current_task = None # Store the outputs in the local object store. try: with profiling.profile("task:store_outputs"): # If this is an actor task, then the last object ID returned by # the task is a dummy output, not returned by the function # itself. Decrement to get the correct number of return values. num_returns = len(return_object_ids) if num_returns == 1: outputs = (outputs, ) self._store_outputs_in_object_store(return_object_ids, outputs) except Exception as e: self._handle_process_task_failure( function_descriptor, return_object_ids, e, ray.utils.format_error_message(traceback.format_exc()))
python
def _process_task(self, task, function_execution_info): """Execute a task assigned to this worker. This method deserializes a task from the scheduler, and attempts to execute the task. If the task succeeds, the outputs are stored in the local object store. If the task throws an exception, RayTaskError objects are stored in the object store to represent the failed task (these will be retrieved by calls to get or by subsequent tasks that use the outputs of this task). """ assert self.current_task_id.is_nil() assert self.task_context.task_index == 0 assert self.task_context.put_index == 1 if task.actor_id().is_nil(): # If this worker is not an actor, check that `task_driver_id` # was reset when the worker finished the previous task. assert self.task_driver_id.is_nil() # Set the driver ID of the current running task. This is # needed so that if the task throws an exception, we propagate # the error message to the correct driver. self.task_driver_id = task.driver_id() else: # If this worker is an actor, task_driver_id wasn't reset. # Check that current task's driver ID equals the previous one. assert self.task_driver_id == task.driver_id() self.task_context.current_task_id = task.task_id() function_descriptor = FunctionDescriptor.from_bytes_list( task.function_descriptor_list()) args = task.arguments() return_object_ids = task.returns() if (not task.actor_id().is_nil() or not task.actor_creation_id().is_nil()): dummy_return_id = return_object_ids.pop() function_executor = function_execution_info.function function_name = function_execution_info.function_name # Get task arguments from the object store. try: if function_name != "__ray_terminate__": self.reraise_actor_init_error() self.memory_monitor.raise_if_low_memory() with profiling.profile("task:deserialize_arguments"): arguments = self._get_arguments_for_execution( function_name, args) except Exception as e: self._handle_process_task_failure( function_descriptor, return_object_ids, e, ray.utils.format_error_message(traceback.format_exc())) return # Execute the task. try: self._current_task = task with profiling.profile("task:execute"): if (task.actor_id().is_nil() and task.actor_creation_id().is_nil()): outputs = function_executor(*arguments) else: if not task.actor_id().is_nil(): key = task.actor_id() else: key = task.actor_creation_id() outputs = function_executor(dummy_return_id, self.actors[key], *arguments) except Exception as e: # Determine whether the exception occured during a task, not an # actor method. task_exception = task.actor_id().is_nil() traceback_str = ray.utils.format_error_message( traceback.format_exc(), task_exception=task_exception) self._handle_process_task_failure( function_descriptor, return_object_ids, e, traceback_str) return finally: self._current_task = None # Store the outputs in the local object store. try: with profiling.profile("task:store_outputs"): # If this is an actor task, then the last object ID returned by # the task is a dummy output, not returned by the function # itself. Decrement to get the correct number of return values. num_returns = len(return_object_ids) if num_returns == 1: outputs = (outputs, ) self._store_outputs_in_object_store(return_object_ids, outputs) except Exception as e: self._handle_process_task_failure( function_descriptor, return_object_ids, e, ray.utils.format_error_message(traceback.format_exc()))
[ "def", "_process_task", "(", "self", ",", "task", ",", "function_execution_info", ")", ":", "assert", "self", ".", "current_task_id", ".", "is_nil", "(", ")", "assert", "self", ".", "task_context", ".", "task_index", "==", "0", "assert", "self", ".", "task_context", ".", "put_index", "==", "1", "if", "task", ".", "actor_id", "(", ")", ".", "is_nil", "(", ")", ":", "# If this worker is not an actor, check that `task_driver_id`", "# was reset when the worker finished the previous task.", "assert", "self", ".", "task_driver_id", ".", "is_nil", "(", ")", "# Set the driver ID of the current running task. This is", "# needed so that if the task throws an exception, we propagate", "# the error message to the correct driver.", "self", ".", "task_driver_id", "=", "task", ".", "driver_id", "(", ")", "else", ":", "# If this worker is an actor, task_driver_id wasn't reset.", "# Check that current task's driver ID equals the previous one.", "assert", "self", ".", "task_driver_id", "==", "task", ".", "driver_id", "(", ")", "self", ".", "task_context", ".", "current_task_id", "=", "task", ".", "task_id", "(", ")", "function_descriptor", "=", "FunctionDescriptor", ".", "from_bytes_list", "(", "task", ".", "function_descriptor_list", "(", ")", ")", "args", "=", "task", ".", "arguments", "(", ")", "return_object_ids", "=", "task", ".", "returns", "(", ")", "if", "(", "not", "task", ".", "actor_id", "(", ")", ".", "is_nil", "(", ")", "or", "not", "task", ".", "actor_creation_id", "(", ")", ".", "is_nil", "(", ")", ")", ":", "dummy_return_id", "=", "return_object_ids", ".", "pop", "(", ")", "function_executor", "=", "function_execution_info", ".", "function", "function_name", "=", "function_execution_info", ".", "function_name", "# Get task arguments from the object store.", "try", ":", "if", "function_name", "!=", "\"__ray_terminate__\"", ":", "self", ".", "reraise_actor_init_error", "(", ")", "self", ".", "memory_monitor", ".", "raise_if_low_memory", "(", ")", "with", "profiling", ".", "profile", "(", "\"task:deserialize_arguments\"", ")", ":", "arguments", "=", "self", ".", "_get_arguments_for_execution", "(", "function_name", ",", "args", ")", "except", "Exception", "as", "e", ":", "self", ".", "_handle_process_task_failure", "(", "function_descriptor", ",", "return_object_ids", ",", "e", ",", "ray", ".", "utils", ".", "format_error_message", "(", "traceback", ".", "format_exc", "(", ")", ")", ")", "return", "# Execute the task.", "try", ":", "self", ".", "_current_task", "=", "task", "with", "profiling", ".", "profile", "(", "\"task:execute\"", ")", ":", "if", "(", "task", ".", "actor_id", "(", ")", ".", "is_nil", "(", ")", "and", "task", ".", "actor_creation_id", "(", ")", ".", "is_nil", "(", ")", ")", ":", "outputs", "=", "function_executor", "(", "*", "arguments", ")", "else", ":", "if", "not", "task", ".", "actor_id", "(", ")", ".", "is_nil", "(", ")", ":", "key", "=", "task", ".", "actor_id", "(", ")", "else", ":", "key", "=", "task", ".", "actor_creation_id", "(", ")", "outputs", "=", "function_executor", "(", "dummy_return_id", ",", "self", ".", "actors", "[", "key", "]", ",", "*", "arguments", ")", "except", "Exception", "as", "e", ":", "# Determine whether the exception occured during a task, not an", "# actor method.", "task_exception", "=", "task", ".", "actor_id", "(", ")", ".", "is_nil", "(", ")", "traceback_str", "=", "ray", ".", "utils", ".", "format_error_message", "(", "traceback", ".", "format_exc", "(", ")", ",", "task_exception", "=", "task_exception", ")", "self", ".", "_handle_process_task_failure", "(", "function_descriptor", ",", "return_object_ids", ",", "e", ",", "traceback_str", ")", "return", "finally", ":", "self", ".", "_current_task", "=", "None", "# Store the outputs in the local object store.", "try", ":", "with", "profiling", ".", "profile", "(", "\"task:store_outputs\"", ")", ":", "# If this is an actor task, then the last object ID returned by", "# the task is a dummy output, not returned by the function", "# itself. Decrement to get the correct number of return values.", "num_returns", "=", "len", "(", "return_object_ids", ")", "if", "num_returns", "==", "1", ":", "outputs", "=", "(", "outputs", ",", ")", "self", ".", "_store_outputs_in_object_store", "(", "return_object_ids", ",", "outputs", ")", "except", "Exception", "as", "e", ":", "self", ".", "_handle_process_task_failure", "(", "function_descriptor", ",", "return_object_ids", ",", "e", ",", "ray", ".", "utils", ".", "format_error_message", "(", "traceback", ".", "format_exc", "(", ")", ")", ")" ]
Execute a task assigned to this worker. This method deserializes a task from the scheduler, and attempts to execute the task. If the task succeeds, the outputs are stored in the local object store. If the task throws an exception, RayTaskError objects are stored in the object store to represent the failed task (these will be retrieved by calls to get or by subsequent tasks that use the outputs of this task).
[ "Execute", "a", "task", "assigned", "to", "this", "worker", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L830-L921
train
Execute a task and store the result in the object store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1G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1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110111) + chr(760 - 710), 0b1000), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b110000 + 0o77) + chr(0b110010) + chr(50) + chr(0b100011 + 0o15), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1848 - 1799) + chr(52) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(0b10010 + 0o135) + chr(0b110010) + '\x33' + chr(0b101110 + 0o2), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\x34' + chr(0b10100 + 0o40), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + chr(0b110011) + '\x34', 36307 - 36299), ehT0Px3KOsy9(chr(48) + chr(9853 - 9742) + '\x32' + '\060' + chr(0b110 + 0o52), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(50) + chr(0b11001 + 0o36), ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b110100 + 0o73) + chr(0b110000 + 0o1) + '\x35' + chr(781 - 733), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b110011) + chr(2563 - 2508), 56932 - 56924), ehT0Px3KOsy9(chr(0b1001 + 0o47) + '\x6f' + chr(0b110100) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + chr(53) + chr(0b110111), 56915 - 56907), ehT0Px3KOsy9(chr(642 - 594) + chr(0b101 + 0o152) + chr(173 - 119) + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(11083 - 10972) + '\063' + chr(1843 - 1792) + '\063', 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(2620 - 2568) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b10000 + 0o42) + chr(1847 - 1795) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(8322 - 8211) + '\x36' + chr(2635 - 2581), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(1372 - 1322) + chr(253 - 203) + '\x36', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b100101 + 0o16) + chr(0b110111) + '\x31', 2810 - 2802), ehT0Px3KOsy9(chr(0b110000) + chr(0b11 + 0o154) + chr(2291 - 2241) + '\x31' + chr(1858 - 1807), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(3619 - 3508) + chr(0b100011 + 0o17), 0o10), ehT0Px3KOsy9(chr(1234 - 1186) + chr(111) + chr(685 - 635) + chr(55) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + '\061' + chr(0b1111 + 0o45), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + chr(0b101110 + 0o4) + chr(0b100111 + 0o11), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2493 - 2442) + '\060' + chr(402 - 352), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1010 + 0o47) + '\064' + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(54) + chr(1927 - 1877), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10111 + 0o34) + chr(824 - 769) + chr(566 - 515), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b111000 + 0o67) + chr(0b10011 + 0o36) + chr(0b110110) + chr(0b10011 + 0o44), 0o10), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b1101111) + chr(0b110 + 0o54) + chr(51) + '\064', 0o10), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(111) + chr(0b101101 + 0o10) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(1522 - 1474) + chr(111) + chr(0b110010) + '\x35' + chr(48), 0b1000), ehT0Px3KOsy9(chr(1256 - 1208) + '\x6f' + chr(0b11110 + 0o25) + chr(0b110011), 28627 - 28619), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + '\064' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(1048 - 1000) + '\157' + chr(0b110010) + chr(0b110101) + chr(0b100110 + 0o15), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + '\067' + chr(0b1010 + 0o52), ord("\x08")), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b1101010 + 0o5) + chr(50) + '\065' + '\x31', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b1011 + 0o50) + chr(49) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(252 - 141) + chr(0b110010) + '\x35' + '\065', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1379 - 1331) + chr(0b1101111) + chr(0b110101) + '\060', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x14'), chr(100) + chr(5312 - 5211) + chr(99) + '\x6f' + '\144' + chr(0b1000 + 0o135))(chr(0b1110101) + '\x74' + chr(102) + chr(45) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def mf1ORvvq34GZ(oVre8I6UXc3b, md1d2YtjKvCG, r_4YmjGkV1Y3): assert xafqLlk3kkUe(oVre8I6UXc3b.current_task_id, xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), '\x64' + '\145' + '\x63' + chr(0b1 + 0o156) + chr(100) + '\145')(chr(117) + chr(7823 - 7707) + chr(102) + chr(658 - 613) + chr(2113 - 2057)))() assert xafqLlk3kkUe(oVre8I6UXc3b.task_context, xafqLlk3kkUe(SXOLrMavuUCe(b'O\xa5G:\xf0I\xb7\xf4&/\xfbF'), '\144' + '\145' + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')('\x75' + chr(1508 - 1392) + chr(0b1000000 + 0o46) + chr(564 - 519) + '\x38')) == ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110000), 0o10) assert xafqLlk3kkUe(oVre8I6UXc3b.task_context, xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe9J\x0e\xc2U\x97\xb5\x19X\xe9K'), '\x64' + chr(1526 - 1425) + chr(8093 - 7994) + '\x6f' + '\144' + '\145')('\x75' + '\x74' + chr(0b110 + 0o140) + chr(0b11100 + 0o21) + chr(56))) == ehT0Px3KOsy9(chr(0b110000) + chr(9554 - 9443) + chr(0b110001), 0o10) if xafqLlk3kkUe(md1d2YtjKvCG.actor_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), chr(8904 - 8804) + '\x65' + chr(99) + chr(0b1101111) + chr(100) + chr(3321 - 3220))(chr(117) + chr(116) + chr(102) + chr(0b1010 + 0o43) + chr(2257 - 2201)))(): assert xafqLlk3kkUe(oVre8I6UXc3b.task_driver_id, xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), chr(0b11010 + 0o112) + chr(0b1100101) + '\143' + chr(0b1010010 + 0o35) + chr(0b101111 + 0o65) + '\145')(chr(117) + chr(116) + '\x66' + '\x2d' + chr(0b11011 + 0o35)))() oVre8I6UXc3b.kKUFZvz2Gqts = md1d2YtjKvCG.driver_id() else: assert xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'Q\xdb^$\xc2R\xa6\xb2\x10\x19\xebT'), chr(0b1000011 + 0o41) + chr(101) + chr(2403 - 2304) + '\157' + chr(0b1100100) + '\145')(chr(0b1100110 + 0o17) + chr(0b1110100) + chr(102) + chr(862 - 817) + chr(1585 - 1529))) == xafqLlk3kkUe(md1d2YtjKvCG, xafqLlk3kkUe(SXOLrMavuUCe(b'^\xe2b\x14\xfdV\x83\xe93'), chr(100) + chr(101) + '\x63' + chr(8555 - 8444) + chr(0b1100100) + chr(9356 - 9255))('\165' + chr(1647 - 1531) + chr(0b100100 + 0o102) + chr(0b101101) + '\070'))() oVre8I6UXc3b.task_context.SjcyWRd98p5e = md1d2YtjKvCG.task_id() Rnxjm6OeEOBe = Q_fVLFHEUrgb.from_bytes_list(md1d2YtjKvCG.function_descriptor_list()) kJDRfRhcZHjS = md1d2YtjKvCG.arguments() de3vycFlvP5Q = md1d2YtjKvCG.returns() if not xafqLlk3kkUe(md1d2YtjKvCG.actor_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), chr(100) + '\145' + chr(3947 - 3848) + chr(0b1001110 + 0o41) + chr(100) + chr(101))(chr(0b11010 + 0o133) + '\x74' + chr(3417 - 3315) + '\x2d' + chr(0b100010 + 0o26)))() or not xafqLlk3kkUe(md1d2YtjKvCG.actor_creation_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), chr(100) + chr(0b111011 + 0o52) + chr(0b1100000 + 0o3) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(1324 - 1279) + chr(0b1010 + 0o56)))(): Sj1hDedQc0sr = de3vycFlvP5Q.pop() jclrbHOjcNTd = r_4YmjGkV1Y3.bBC93MgSHzUB Go1_tlyXDW3h = r_4YmjGkV1Y3.function_name try: if Go1_tlyXDW3h != xafqLlk3kkUe(SXOLrMavuUCe(b'e\xcfy\x03\xe1{\xa8\xe5%\x05\xf6I\xceD\xbe8\xfa'), '\x64' + chr(101) + chr(99) + '\157' + chr(0b1000100 + 0o40) + chr(3597 - 3496))(chr(0b1110101) + chr(9815 - 9699) + chr(0b1100110) + chr(45) + chr(56)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'H\xf5y\x03\xf1W\xb9\xdf6\x0b\xebH\xddo\xb2\t\xccB\xc9\x9c\xf9p\xd1\xfe'), chr(0b1100100) + '\x65' + chr(6170 - 6071) + chr(0b101 + 0o152) + chr(0b1100100) + chr(0b111101 + 0o50))('\x75' + chr(2432 - 2316) + chr(0b100000 + 0o106) + chr(0b100101 + 0o10) + chr(56)))() xafqLlk3kkUe(oVre8I6UXc3b.memory_monitor, xafqLlk3kkUe(SXOLrMavuUCe(b'H\xf1b\x11\xfd{\xb5\xe6\x08\x04\xf0P\xf0]\xbe\n\xcaD\xef'), chr(4368 - 4268) + '\145' + '\143' + chr(111) + chr(0b1010111 + 0o15) + '\145')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b101 + 0o63)))() with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b"R\xfcF\x0e\xaeR\x9b\xdfa'\xe7H"), chr(0b1100100) + chr(0b11100 + 0o111) + '\x63' + chr(111) + '\x64' + chr(5829 - 5728))('\165' + '\x74' + chr(102) + '\x2d' + chr(2411 - 2355)))(xafqLlk3kkUe(SXOLrMavuUCe(b'N\xf1x\t\xa2@\xb9\xf32\x1a\xf6F\xc3Y\xa1\x02\xfaW\xe4\x9e\xfeo\xdb\xe2\xe4\xb1'), '\x64' + '\x65' + chr(8908 - 8809) + '\x6f' + '\x64' + chr(0b1100101))(chr(4165 - 4048) + chr(0b1110100) + chr(0b110101 + 0o61) + chr(0b100110 + 0o7) + chr(56))): PSzOAxeRmbgw = oVre8I6UXc3b._get_arguments_for_execution(Go1_tlyXDW3h, kJDRfRhcZHjS) except jLmadlzMdunT as GlnVAPeT6CUe: xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b"e\xf8j\x0c\xfcH\xb9\xdf'\x1a\xf0D\xcaC\xa88\xd1W\xe5\x92\xd4d\xdf\xe5\xfc\xb7\x16W"), '\144' + chr(0b1100101) + chr(99) + '\157' + chr(0b1010001 + 0o23) + '\145')('\165' + chr(116) + '\146' + chr(0b11101 + 0o20) + chr(0b111000)))(Rnxjm6OeEOBe, de3vycFlvP5Q, GlnVAPeT6CUe, xafqLlk3kkUe(H9zaXRrGK6Cq.utils, xafqLlk3kkUe(SXOLrMavuUCe(b'\\\xffy\x0f\xf9P\x83\xe5%\x1a\xf0U\xf0]\xbe\x14\xd6W\xf1\x9c'), chr(1120 - 1020) + chr(1954 - 1853) + chr(2331 - 2232) + chr(0b1001000 + 0o47) + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1011101 + 0o27) + chr(102) + chr(0b100110 + 0o7) + chr(56)))(xafqLlk3kkUe(CiXxQDnt84wa, xafqLlk3kkUe(SXOLrMavuUCe(b'\\\xffy\x0f\xf9P\x83\xe5/\x0b'), chr(0b111010 + 0o52) + chr(101) + chr(99) + chr(0b1101111) + chr(529 - 429) + '\x65')('\165' + chr(0b1110100) + '\x66' + '\055' + '\070'))())) return try: oVre8I6UXc3b.BZKyeJvr1bfX = md1d2YtjKvCG with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b"R\xfcF\x0e\xaeR\x9b\xdfa'\xe7H"), chr(0b110 + 0o136) + chr(0b1100101) + '\x63' + chr(11985 - 11874) + chr(0b1000 + 0o134) + chr(0b1100101))(chr(0b1110101) + chr(9308 - 9192) + chr(102) + chr(0b101101) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'N\xf1x\t\xa2A\xa4\xe54\x1d\xebB'), chr(0b1100100) + chr(9546 - 9445) + chr(6344 - 6245) + '\x6f' + chr(0b110101 + 0o57) + chr(0b1100001 + 0o4))(chr(0b1000 + 0o155) + chr(7905 - 7789) + chr(4216 - 4114) + chr(0b10011 + 0o32) + chr(823 - 767))): if xafqLlk3kkUe(md1d2YtjKvCG.actor_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), chr(100) + chr(7574 - 7473) + chr(0b1100011) + '\157' + '\x64' + chr(0b1100101))(chr(117) + chr(0b1110010 + 0o2) + chr(102) + chr(0b101101) + chr(0b111000)))() and xafqLlk3kkUe(md1d2YtjKvCG.actor_creation_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), '\144' + chr(0b1100101) + chr(0b101000 + 0o73) + chr(0b111111 + 0o60) + '\144' + '\145')(chr(0b101100 + 0o111) + chr(9206 - 9090) + chr(720 - 618) + chr(45) + '\070'))(): Dx_DllZ8uCko = jclrbHOjcNTd(*PSzOAxeRmbgw) else: if not xafqLlk3kkUe(md1d2YtjKvCG.actor_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe3T\x0c\xf1H'), chr(100) + chr(0b1100101) + chr(0b1100010 + 0o1) + '\157' + '\144' + chr(0b11101 + 0o110))(chr(0b1110101) + '\164' + chr(0b110011 + 0o63) + '\x2d' + chr(0b111000)))(): K3J4ZwSlE0sT = md1d2YtjKvCG.CitUWzhkzn0O() else: K3J4ZwSlE0sT = md1d2YtjKvCG.actor_creation_id() Dx_DllZ8uCko = jclrbHOjcNTd(Sj1hDedQc0sr, oVre8I6UXc3b.Nzlr6Jv6jzgE[K3J4ZwSlE0sT], *PSzOAxeRmbgw) except jLmadlzMdunT as GlnVAPeT6CUe: Paqf4UHlmfUz = md1d2YtjKvCG.actor_id().is_nil() PnMtNsIg7PGC = H9zaXRrGK6Cq.utils.format_error_message(CiXxQDnt84wa.format_exc(), task_exception=Paqf4UHlmfUz) xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b"e\xf8j\x0c\xfcH\xb9\xdf'\x1a\xf0D\xcaC\xa88\xd1W\xe5\x92\xd4d\xdf\xe5\xfc\xb7\x16W"), chr(0b1000 + 0o134) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(7473 - 7373) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b11001 + 0o115) + '\x2d' + '\x38'))(Rnxjm6OeEOBe, de3vycFlvP5Q, GlnVAPeT6CUe, PnMtNsIg7PGC) return finally: oVre8I6UXc3b.BZKyeJvr1bfX = None try: with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b"R\xfcF\x0e\xaeR\x9b\xdfa'\xe7H"), '\x64' + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + '\x66' + chr(189 - 144) + chr(0b111000)))(xafqLlk3kkUe(SXOLrMavuUCe(b'N\xf1x\t\xa2W\xa8\xef%\r\xc0H\xdaD\xab\x12\xd1E'), chr(0b1100100) + chr(5312 - 5211) + chr(0b1100011) + chr(0b1100100 + 0o13) + chr(0b1000101 + 0o37) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + '\070')): Rp4AHRcABhkb = c2A0yzQpDQB3(de3vycFlvP5Q) if Rp4AHRcABhkb == ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(1920 - 1809) + '\061', 8): Dx_DllZ8uCko = (Dx_DllZ8uCko,) xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'e\xe3\x7f\r\xeaA\x83\xef"\x1c\xefR\xdbC\x84\x0e\xcbi\xf9\x9b\xe1g\xdd\xf8\xcf\xb1\x10]\x89\x12'), '\144' + '\145' + chr(99) + chr(5964 - 5853) + chr(0b101011 + 0o71) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(de3vycFlvP5Q, Dx_DllZ8uCko) except jLmadlzMdunT as GlnVAPeT6CUe: xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b"e\xf8j\x0c\xfcH\xb9\xdf'\x1a\xf0D\xcaC\xa88\xd1W\xe5\x92\xd4d\xdf\xe5\xfc\xb7\x16W"), chr(2324 - 2224) + chr(0b1100101) + '\x63' + '\157' + '\x64' + chr(7075 - 6974))('\x75' + chr(5129 - 5013) + chr(3399 - 3297) + '\055' + chr(1989 - 1933)))(Rnxjm6OeEOBe, de3vycFlvP5Q, GlnVAPeT6CUe, xafqLlk3kkUe(H9zaXRrGK6Cq.utils, xafqLlk3kkUe(SXOLrMavuUCe(b'\\\xffy\x0f\xf9P\x83\xe5%\x1a\xf0U\xf0]\xbe\x14\xd6W\xf1\x9c'), chr(0b1000 + 0o134) + '\145' + '\x63' + chr(0b1101111) + chr(393 - 293) + '\145')('\x75' + chr(116) + chr(8559 - 8457) + chr(0b101101) + chr(0b10111 + 0o41)))(xafqLlk3kkUe(CiXxQDnt84wa, xafqLlk3kkUe(SXOLrMavuUCe(b'\\\xffy\x0f\xf9P\x83\xe5/\x0b'), chr(0b1100100) + chr(2319 - 2218) + chr(1740 - 1641) + chr(0b1101111) + '\x64' + '\x65')(chr(117) + '\x74' + '\x66' + chr(0b101 + 0o50) + chr(0b10101 + 0o43)))()))
ray-project/ray
python/ray/worker.py
Worker._wait_for_and_process_task
def _wait_for_and_process_task(self, task): """Wait for a task to be ready and process the task. Args: task: The task to execute. """ function_descriptor = FunctionDescriptor.from_bytes_list( task.function_descriptor_list()) driver_id = task.driver_id() # TODO(rkn): It would be preferable for actor creation tasks to share # more of the code path with regular task execution. if not task.actor_creation_id().is_nil(): assert self.actor_id.is_nil() self.actor_id = task.actor_creation_id() self.actor_creation_task_id = task.task_id() actor_class = self.function_actor_manager.load_actor_class( driver_id, function_descriptor) self.actors[self.actor_id] = actor_class.__new__(actor_class) self.actor_checkpoint_info[self.actor_id] = ActorCheckpointInfo( num_tasks_since_last_checkpoint=0, last_checkpoint_timestamp=int(1000 * time.time()), checkpoint_ids=[], ) execution_info = self.function_actor_manager.get_execution_info( driver_id, function_descriptor) # Execute the task. function_name = execution_info.function_name extra_data = {"name": function_name, "task_id": task.task_id().hex()} if task.actor_id().is_nil(): if task.actor_creation_id().is_nil(): title = "ray_worker:{}()".format(function_name) next_title = "ray_worker" else: actor = self.actors[task.actor_creation_id()] title = "ray_{}:{}()".format(actor.__class__.__name__, function_name) next_title = "ray_{}".format(actor.__class__.__name__) else: actor = self.actors[task.actor_id()] title = "ray_{}:{}()".format(actor.__class__.__name__, function_name) next_title = "ray_{}".format(actor.__class__.__name__) with profiling.profile("task", extra_data=extra_data): with _changeproctitle(title, next_title): self._process_task(task, execution_info) # Reset the state fields so the next task can run. self.task_context.current_task_id = TaskID.nil() self.task_context.task_index = 0 self.task_context.put_index = 1 if self.actor_id.is_nil(): # Don't need to reset task_driver_id if the worker is an # actor. Because the following tasks should all have the # same driver id. self.task_driver_id = DriverID.nil() # Reset signal counters so that the next task can get # all past signals. ray_signal.reset() # Increase the task execution counter. self.function_actor_manager.increase_task_counter( driver_id, function_descriptor) reached_max_executions = (self.function_actor_manager.get_task_counter( driver_id, function_descriptor) == execution_info.max_calls) if reached_max_executions: self.raylet_client.disconnect() sys.exit(0)
python
def _wait_for_and_process_task(self, task): """Wait for a task to be ready and process the task. Args: task: The task to execute. """ function_descriptor = FunctionDescriptor.from_bytes_list( task.function_descriptor_list()) driver_id = task.driver_id() # TODO(rkn): It would be preferable for actor creation tasks to share # more of the code path with regular task execution. if not task.actor_creation_id().is_nil(): assert self.actor_id.is_nil() self.actor_id = task.actor_creation_id() self.actor_creation_task_id = task.task_id() actor_class = self.function_actor_manager.load_actor_class( driver_id, function_descriptor) self.actors[self.actor_id] = actor_class.__new__(actor_class) self.actor_checkpoint_info[self.actor_id] = ActorCheckpointInfo( num_tasks_since_last_checkpoint=0, last_checkpoint_timestamp=int(1000 * time.time()), checkpoint_ids=[], ) execution_info = self.function_actor_manager.get_execution_info( driver_id, function_descriptor) # Execute the task. function_name = execution_info.function_name extra_data = {"name": function_name, "task_id": task.task_id().hex()} if task.actor_id().is_nil(): if task.actor_creation_id().is_nil(): title = "ray_worker:{}()".format(function_name) next_title = "ray_worker" else: actor = self.actors[task.actor_creation_id()] title = "ray_{}:{}()".format(actor.__class__.__name__, function_name) next_title = "ray_{}".format(actor.__class__.__name__) else: actor = self.actors[task.actor_id()] title = "ray_{}:{}()".format(actor.__class__.__name__, function_name) next_title = "ray_{}".format(actor.__class__.__name__) with profiling.profile("task", extra_data=extra_data): with _changeproctitle(title, next_title): self._process_task(task, execution_info) # Reset the state fields so the next task can run. self.task_context.current_task_id = TaskID.nil() self.task_context.task_index = 0 self.task_context.put_index = 1 if self.actor_id.is_nil(): # Don't need to reset task_driver_id if the worker is an # actor. Because the following tasks should all have the # same driver id. self.task_driver_id = DriverID.nil() # Reset signal counters so that the next task can get # all past signals. ray_signal.reset() # Increase the task execution counter. self.function_actor_manager.increase_task_counter( driver_id, function_descriptor) reached_max_executions = (self.function_actor_manager.get_task_counter( driver_id, function_descriptor) == execution_info.max_calls) if reached_max_executions: self.raylet_client.disconnect() sys.exit(0)
[ "def", "_wait_for_and_process_task", "(", "self", ",", "task", ")", ":", "function_descriptor", "=", "FunctionDescriptor", ".", "from_bytes_list", "(", "task", ".", "function_descriptor_list", "(", ")", ")", "driver_id", "=", "task", ".", "driver_id", "(", ")", "# TODO(rkn): It would be preferable for actor creation tasks to share", "# more of the code path with regular task execution.", "if", "not", "task", ".", "actor_creation_id", "(", ")", ".", "is_nil", "(", ")", ":", "assert", "self", ".", "actor_id", ".", "is_nil", "(", ")", "self", ".", "actor_id", "=", "task", ".", "actor_creation_id", "(", ")", "self", ".", "actor_creation_task_id", "=", "task", ".", "task_id", "(", ")", "actor_class", "=", "self", ".", "function_actor_manager", ".", "load_actor_class", "(", "driver_id", ",", "function_descriptor", ")", "self", ".", "actors", "[", "self", ".", "actor_id", "]", "=", "actor_class", ".", "__new__", "(", "actor_class", ")", "self", ".", "actor_checkpoint_info", "[", "self", ".", "actor_id", "]", "=", "ActorCheckpointInfo", "(", "num_tasks_since_last_checkpoint", "=", "0", ",", "last_checkpoint_timestamp", "=", "int", "(", "1000", "*", "time", ".", "time", "(", ")", ")", ",", "checkpoint_ids", "=", "[", "]", ",", ")", "execution_info", "=", "self", ".", "function_actor_manager", ".", "get_execution_info", "(", "driver_id", ",", "function_descriptor", ")", "# Execute the task.", "function_name", "=", "execution_info", ".", "function_name", "extra_data", "=", "{", "\"name\"", ":", "function_name", ",", "\"task_id\"", ":", "task", ".", "task_id", "(", ")", ".", "hex", "(", ")", "}", "if", "task", ".", "actor_id", "(", ")", ".", "is_nil", "(", ")", ":", "if", "task", ".", "actor_creation_id", "(", ")", ".", "is_nil", "(", ")", ":", "title", "=", "\"ray_worker:{}()\"", ".", "format", "(", "function_name", ")", "next_title", "=", "\"ray_worker\"", "else", ":", "actor", "=", "self", ".", "actors", "[", "task", ".", "actor_creation_id", "(", ")", "]", "title", "=", "\"ray_{}:{}()\"", ".", "format", "(", "actor", ".", "__class__", ".", "__name__", ",", "function_name", ")", "next_title", "=", "\"ray_{}\"", ".", "format", "(", "actor", ".", "__class__", ".", "__name__", ")", "else", ":", "actor", "=", "self", ".", "actors", "[", "task", ".", "actor_id", "(", ")", "]", "title", "=", "\"ray_{}:{}()\"", ".", "format", "(", "actor", ".", "__class__", ".", "__name__", ",", "function_name", ")", "next_title", "=", "\"ray_{}\"", ".", "format", "(", "actor", ".", "__class__", ".", "__name__", ")", "with", "profiling", ".", "profile", "(", "\"task\"", ",", "extra_data", "=", "extra_data", ")", ":", "with", "_changeproctitle", "(", "title", ",", "next_title", ")", ":", "self", ".", "_process_task", "(", "task", ",", "execution_info", ")", "# Reset the state fields so the next task can run.", "self", ".", "task_context", ".", "current_task_id", "=", "TaskID", ".", "nil", "(", ")", "self", ".", "task_context", ".", "task_index", "=", "0", "self", ".", "task_context", ".", "put_index", "=", "1", "if", "self", ".", "actor_id", ".", "is_nil", "(", ")", ":", "# Don't need to reset task_driver_id if the worker is an", "# actor. Because the following tasks should all have the", "# same driver id.", "self", ".", "task_driver_id", "=", "DriverID", ".", "nil", "(", ")", "# Reset signal counters so that the next task can get", "# all past signals.", "ray_signal", ".", "reset", "(", ")", "# Increase the task execution counter.", "self", ".", "function_actor_manager", ".", "increase_task_counter", "(", "driver_id", ",", "function_descriptor", ")", "reached_max_executions", "=", "(", "self", ".", "function_actor_manager", ".", "get_task_counter", "(", "driver_id", ",", "function_descriptor", ")", "==", "execution_info", ".", "max_calls", ")", "if", "reached_max_executions", ":", "self", ".", "raylet_client", ".", "disconnect", "(", ")", "sys", ".", "exit", "(", "0", ")" ]
Wait for a task to be ready and process the task. Args: task: The task to execute.
[ "Wait", "for", "a", "task", "to", "be", "ready", "and", "process", "the", "task", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L943-L1012
train
Wait for a task to be ready and process it.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0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,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(50) + '\x36', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(574 - 524) + chr(0b100011 + 0o15) + chr(1806 - 1758), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b1 + 0o60) + '\061' + '\061', 55050 - 55042), ehT0Px3KOsy9('\x30' + chr(6466 - 6355) + '\x31' + chr(0b10111 + 0o34) + chr(51), 41115 - 41107), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(54) + '\060', 0o10), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + '\063' + chr(0b110110) + chr(0b110001), 43121 - 43113), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(51) + chr(2317 - 2262), 970 - 962), ehT0Px3KOsy9(chr(1378 - 1330) + chr(0b1101111) + chr(0b110001) + '\x37' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b110101) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(1184 - 1136) + chr(0b101010 + 0o105) + chr(0b100001 + 0o25) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + chr(0b110100) + '\x31', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + chr(48) + chr(2205 - 2151), 0b1000), ehT0Px3KOsy9('\x30' + chr(10431 - 10320) + chr(0b11111 + 0o24) + chr(1320 - 1269), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(12121 - 12010) + '\x32' + chr(0b11111 + 0o24) + chr(0b1111 + 0o43), 56035 - 56027), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(111) + '\x33' + chr(0b110110) + chr(48), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100001 + 0o116) + chr(51) + chr(52) + chr(0b1100 + 0o45), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + chr(0b110101) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b0 + 0o63) + chr(55) + chr(49), 63664 - 63656), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(208 - 157) + chr(0b10110 + 0o32) + chr(0b1011 + 0o52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + '\064' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + chr(2877 - 2823) + chr(0b1111 + 0o41), 8), ehT0Px3KOsy9(chr(2275 - 2227) + chr(0b10100 + 0o133) + chr(0b110010) + '\063' + '\063', 12987 - 12979), ehT0Px3KOsy9(chr(167 - 119) + chr(0b1101111) + '\x33' + chr(0b110011) + '\x31', 57892 - 57884), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001 + 0o2) + chr(0b110000) + chr(53), 8), ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + chr(0b110011) + '\060' + chr(285 - 232), 8), ehT0Px3KOsy9(chr(1919 - 1871) + chr(0b100101 + 0o112) + chr(781 - 726) + '\x30', 10108 - 10100), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + '\x34' + chr(54), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10 + 0o64) + chr(68 - 18), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011011 + 0o24) + chr(50) + chr(644 - 596) + chr(1432 - 1382), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + '\062' + '\x33', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + '\067' + '\x35', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + chr(0b110010), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\x31' + chr(50) + '\x34', 59691 - 59683), ehT0Px3KOsy9(chr(0b11101 + 0o23) + '\157' + chr(1408 - 1359) + '\060', 26563 - 26555), ehT0Px3KOsy9(chr(48) + chr(0b1101111 + 0o0) + chr(49) + '\061' + '\x33', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + '\060' + '\x34', 43410 - 43402), ehT0Px3KOsy9('\x30' + chr(0b1000100 + 0o53) + chr(50) + chr(0b110100) + chr(49), 8), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(111) + chr(0b110111) + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + chr(1756 - 1645) + chr(0b10001 + 0o40) + '\x37' + chr(0b100011 + 0o24), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(413 - 365) + '\x6f' + chr(0b0 + 0o65) + chr(1850 - 1802), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8'), chr(0b1100100) + chr(0b101111 + 0o66) + chr(0b100110 + 0o75) + '\157' + chr(2707 - 2607) + '\145')(chr(11388 - 11271) + chr(116) + '\146' + chr(45) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def sHSvI_mzn5aS(oVre8I6UXc3b, md1d2YtjKvCG): Rnxjm6OeEOBe = Q_fVLFHEUrgb.from_bytes_list(md1d2YtjKvCG.function_descriptor_list()) xrb3JXGvKq_I = md1d2YtjKvCG.driver_id() if not xafqLlk3kkUe(md1d2YtjKvCG.actor_creation_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xf3\x165\xd9\x9d'), chr(100) + chr(0b1 + 0o144) + chr(0b1000 + 0o133) + '\157' + chr(5762 - 5662) + chr(0b1100101))('\x75' + chr(0b1011011 + 0o31) + chr(9949 - 9847) + chr(1206 - 1161) + chr(56)))(): assert xafqLlk3kkUe(oVre8I6UXc3b.actor_id, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xf3\x165\xd9\x9d'), '\x64' + '\x65' + chr(0b1100011) + chr(0b111110 + 0o61) + '\144' + '\145')('\165' + '\164' + chr(0b1100110) + chr(0b101101) + chr(505 - 449)))() oVre8I6UXc3b.CitUWzhkzn0O = md1d2YtjKvCG.actor_creation_id() oVre8I6UXc3b.LvEqMvWgAVpV = md1d2YtjKvCG.task_id() II3DV7qpTn50 = oVre8I6UXc3b.function_actor_manager.load_actor_class(xrb3JXGvKq_I, Rnxjm6OeEOBe) oVre8I6UXc3b.Nzlr6Jv6jzgE[oVre8I6UXc3b.CitUWzhkzn0O] = II3DV7qpTn50.c6dlduv8kHnJ(II3DV7qpTn50) oVre8I6UXc3b.xwKplID5yIeV[oVre8I6UXc3b.CitUWzhkzn0O] = IkiJrJRHEoPO(num_tasks_since_last_checkpoint=ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1198 - 1150), 2828 - 2820), last_checkpoint_timestamp=ehT0Px3KOsy9(ehT0Px3KOsy9(chr(551 - 503) + chr(111) + chr(49) + chr(55) + chr(161 - 108) + chr(1829 - 1781), 4285 - 4277) * ltvhPP4VhXre.time()), checkpoint_ids=[]) TfH2Nrpjqnrj = oVre8I6UXc3b.function_actor_manager.get_execution_info(xrb3JXGvKq_I, Rnxjm6OeEOBe) Go1_tlyXDW3h = TfH2Nrpjqnrj.function_name KwshRz37M5hO = {xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8\xe1$>'), '\x64' + '\x65' + '\143' + chr(0b110 + 0o151) + chr(0b11001 + 0o113) + chr(0b101110 + 0o67))(chr(117) + chr(116) + chr(0b1100000 + 0o6) + chr(0b11111 + 0o16) + chr(0b111000)): Go1_tlyXDW3h, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xe1:0\xef\x98\xbb'), chr(100) + '\x65' + '\143' + chr(0b1101111) + chr(8056 - 7956) + chr(4056 - 3955))(chr(117) + chr(116) + chr(0b0 + 0o146) + '\055' + chr(2756 - 2700)): md1d2YtjKvCG.task_id().hex()} if xafqLlk3kkUe(md1d2YtjKvCG.actor_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xf3\x165\xd9\x9d'), '\144' + chr(9794 - 9693) + chr(99) + '\157' + '\144' + chr(0b101001 + 0o74))(chr(733 - 616) + chr(0b111100 + 0o70) + chr(4741 - 4639) + chr(0b100000 + 0o15) + chr(0b100100 + 0o24)))(): if xafqLlk3kkUe(md1d2YtjKvCG.actor_creation_id(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xf3\x165\xd9\x9d'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + chr(100) + chr(999 - 898))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(1124 - 1068)))(): IkttdaI0bGlA = xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xe10\x04\xc7\x9e\xad\x16NA\x9b\xbdf,\xb3'), '\x64' + chr(101) + '\x63' + chr(6495 - 6384) + chr(278 - 178) + chr(5770 - 5669))('\x75' + '\164' + chr(102) + chr(783 - 738) + '\070').V4roHaS3Ppej(Go1_tlyXDW3h) ejAKS_Vqfpqv = xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xe10\x04\xc7\x9e\xad\x16NA'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\157' + '\144' + chr(0b1000 + 0o135))(chr(0b1001 + 0o154) + chr(0b101001 + 0o113) + chr(0b101001 + 0o75) + chr(0b100110 + 0o7) + chr(0b11100 + 0o34)) else: BLwqyqbK4Cb5 = oVre8I6UXc3b.Nzlr6Jv6jzgE[md1d2YtjKvCG.actor_creation_id()] IkttdaI0bGlA = xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xe10\x04\xcb\x8c\xe5\x06V\x1b\x88'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + chr(2671 - 2571) + '\x65')(chr(117) + chr(0b1110010 + 0o2) + '\146' + chr(0b111 + 0o46) + chr(56)).V4roHaS3Ppej(BLwqyqbK4Cb5.__class__.Gbej4oZqKLA6, Go1_tlyXDW3h) ejAKS_Vqfpqv = xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xe10\x04\xcb\x8c'), chr(0b1100100) + '\145' + chr(99) + chr(4703 - 4592) + '\144' + chr(7058 - 6957))('\x75' + chr(0b1110100) + '\x66' + chr(106 - 61) + chr(717 - 661)).V4roHaS3Ppej(BLwqyqbK4Cb5.__class__.Gbej4oZqKLA6) else: BLwqyqbK4Cb5 = oVre8I6UXc3b.Nzlr6Jv6jzgE[md1d2YtjKvCG.CitUWzhkzn0O()] IkttdaI0bGlA = xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xe10\x04\xcb\x8c\xe5\x06V\x1b\x88'), chr(0b111001 + 0o53) + chr(2460 - 2359) + chr(1007 - 908) + chr(0b10110 + 0o131) + chr(0b10110 + 0o116) + chr(5207 - 5106))(chr(117) + '\164' + chr(6215 - 6113) + '\x2d' + chr(699 - 643)).V4roHaS3Ppej(BLwqyqbK4Cb5.__class__.Gbej4oZqKLA6, Go1_tlyXDW3h) ejAKS_Vqfpqv = xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xe10\x04\xcb\x8c'), chr(7038 - 6938) + chr(101) + '\143' + '\157' + '\x64' + chr(0b1000100 + 0o41))(chr(694 - 577) + '\x74' + chr(0b1010001 + 0o25) + '\055' + chr(56)).V4roHaS3Ppej(BLwqyqbK4Cb5.__class__.Gbej4oZqKLA6) with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\xec\x047\x86\x87\x98"\x1d|\xd9\xa9'), chr(100) + '\x65' + chr(0b1100010 + 0o1) + chr(0b1000010 + 0o55) + '\x64' + '\145')(chr(117) + '\x74' + '\x66' + '\x2d' + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2\xe1:0'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(2094 - 1994) + chr(0b1100000 + 0o5))('\x75' + '\x74' + '\146' + '\055' + chr(0b111000)), extra_data=KwshRz37M5hO): with HaaTurT46_z5(IkttdaI0bGlA, ejAKS_Vqfpqv): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x89\xf0;4\xd3\x94\xac\x0etG\xc0\xb5p'), chr(4875 - 4775) + '\x65' + '\x63' + '\157' + chr(4703 - 4603) + chr(101))(chr(0b1110101) + chr(116) + chr(0b100100 + 0o102) + '\x2d' + chr(56)))(md1d2YtjKvCG, TfH2Nrpjqnrj) oVre8I6UXc3b.task_context.SjcyWRd98p5e = UWrdDWNsLCrL.nil() oVre8I6UXc3b.task_context.u5LXhmktqGda = ehT0Px3KOsy9('\x30' + '\x6f' + chr(48), 8) oVre8I6UXc3b.task_context.iyAlZqK5N0vl = ehT0Px3KOsy9(chr(226 - 178) + chr(0b1101111) + chr(49), ord("\x08")) if xafqLlk3kkUe(oVre8I6UXc3b.actor_id, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xf3\x165\xd9\x9d'), chr(0b1010101 + 0o17) + chr(2104 - 2003) + chr(0b1100 + 0o127) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\165' + chr(12156 - 12040) + chr(0b10101 + 0o121) + chr(0b101101) + '\x38'))(): oVre8I6UXc3b.kKUFZvz2Gqts = bAkkLgl6Zv7t.nil() xafqLlk3kkUe(vWF9tm6zTTea, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa4\xe5:>\xc4'), chr(0b111100 + 0o50) + chr(0b1100000 + 0o5) + chr(733 - 634) + chr(111) + chr(100) + '\x65')(chr(117) + chr(116) + '\146' + chr(50 - 5) + '\x38'))() xafqLlk3kkUe(oVre8I6UXc3b.function_actor_manager, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf\xee*)\xd5\x90\xac\x18tG\xc0\xb5p[\xf9\x9f\x94\x06\x8d\xa0\xd6'), chr(9821 - 9721) + chr(101) + '\x63' + chr(0b11 + 0o154) + '\144' + '\145')(chr(0b1 + 0o164) + '\x74' + '\146' + chr(1806 - 1761) + chr(56)))(xrb3JXGvKq_I, Rnxjm6OeEOBe) OjAEMphjof9B = oVre8I6UXc3b.function_actor_manager.get_task_counter(xrb3JXGvKq_I, Rnxjm6OeEOBe) == TfH2Nrpjqnrj.max_calls if OjAEMphjof9B: xafqLlk3kkUe(oVre8I6UXc3b.raylet_client, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2\xe9:8\xdf\x9f\xb1\x18HG'), '\x64' + '\x65' + chr(99) + chr(111) + '\144' + chr(0b10110 + 0o117))('\165' + chr(8582 - 8466) + chr(0b10111 + 0o117) + '\x2d' + '\070'))() xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3\xf8 /'), chr(0b1100100) + chr(873 - 772) + chr(0b1101 + 0o126) + chr(0b1101111) + chr(100) + '\x65')('\165' + chr(0b1000000 + 0o64) + chr(5184 - 5082) + chr(0b101101) + '\x38'))(ehT0Px3KOsy9('\x30' + '\157' + '\060', 8))
ray-project/ray
python/ray/worker.py
Worker._get_next_task_from_raylet
def _get_next_task_from_raylet(self): """Get the next task from the raylet. Returns: A task from the raylet. """ with profiling.profile("worker_idle"): task = self.raylet_client.get_task() # Automatically restrict the GPUs available to this task. ray.utils.set_cuda_visible_devices(ray.get_gpu_ids()) return task
python
def _get_next_task_from_raylet(self): """Get the next task from the raylet. Returns: A task from the raylet. """ with profiling.profile("worker_idle"): task = self.raylet_client.get_task() # Automatically restrict the GPUs available to this task. ray.utils.set_cuda_visible_devices(ray.get_gpu_ids()) return task
[ "def", "_get_next_task_from_raylet", "(", "self", ")", ":", "with", "profiling", ".", "profile", "(", "\"worker_idle\"", ")", ":", "task", "=", "self", ".", "raylet_client", ".", "get_task", "(", ")", "# Automatically restrict the GPUs available to this task.", "ray", ".", "utils", ".", "set_cuda_visible_devices", "(", "ray", ".", "get_gpu_ids", "(", ")", ")", "return", "task" ]
Get the next task from the raylet. Returns: A task from the raylet.
[ "Get", "the", "next", "task", "from", "the", "raylet", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L1014-L1026
train
Get the next task from the raylet.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKt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Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2068 - 2020) + chr(111) + '\062' + chr(343 - 294) + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(0b10000 + 0o47) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\x6f' + chr(0b110000 + 0o3) + chr(415 - 360) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49) + chr(48) + chr(0b110001), 46674 - 46666), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x36' + '\x37', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\062' + '\x33' + chr(51), 23087 - 23079), ehT0Px3KOsy9(chr(48) + '\157' + chr(51) + chr(1888 - 1840) + '\066', 1316 - 1308), ehT0Px3KOsy9(chr(1661 - 1613) + '\x6f' + '\062' + chr(0b110110) + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(111) + chr(51) + '\060' + '\061', 43080 - 43072), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + chr(48) + chr(0b110111), 27887 - 27879), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10 + 0o61) + chr(0b100000 + 0o20) + chr(802 - 754), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(2332 - 2282) + '\064' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111 + 0o0) + chr(0b1 + 0o60) + chr(0b110110) + chr(2340 - 2290), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x36' + chr(1754 - 1705), 15323 - 15315), ehT0Px3KOsy9(chr(0b110000) + chr(0b100100 + 0o113) + '\063' + chr(51) + chr(912 - 861), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101101 + 0o2) + chr(50) + chr(49) + '\063', 0o10), ehT0Px3KOsy9(chr(48) + chr(9477 - 9366) + '\x33' + chr(0b110100) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(0b10011 + 0o41) + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(1292 - 1181) + '\063' + chr(54) + '\x32', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b111101 + 0o62) + chr(51) + '\065' + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b100100 + 0o113) + '\063' + chr(0b110010 + 0o3) + chr(0b110001), 27708 - 27700), ehT0Px3KOsy9(chr(1898 - 1850) + '\157' + '\x31' + chr(0b110011) + chr(51), 23849 - 23841), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b1111 + 0o45) + '\062', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(53) + chr(0b10000 + 0o45), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1010000 + 0o37) + '\x33' + chr(50) + chr(0b110110), 29923 - 29915), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110011) + '\061' + chr(1317 - 1266), 19597 - 19589), ehT0Px3KOsy9(chr(0b110000) + chr(2995 - 2884) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b1101111) + '\064' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(1790 - 1742) + chr(0b1101111) + chr(51) + chr(1543 - 1495) + '\x30', 8), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\x6f' + chr(1831 - 1776) + '\x34', 32105 - 32097), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1001111 + 0o40) + chr(0b110010) + '\x36' + chr(2141 - 2087), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + chr(687 - 637) + chr(0b1001 + 0o50) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(49) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + chr(0b101 + 0o61) + chr(49), 12472 - 12464), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + chr(0b110000) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(111) + chr(1489 - 1438) + chr(1199 - 1148) + '\x34', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(0b1011 + 0o45) + chr(1860 - 1810), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + '\x33' + chr(48), 0b1000), ehT0Px3KOsy9(chr(2044 - 1996) + chr(0b1101111) + chr(0b100000 + 0o22) + chr(820 - 767) + '\060', 0o10), ehT0Px3KOsy9(chr(48) + chr(2927 - 2816) + chr(0b110001) + chr(0b10011 + 0o42) + '\067', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(8311 - 8200) + chr(53) + chr(0b100111 + 0o11), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xa6'), '\144' + '\x65' + '\143' + chr(0b1101111) + '\x64' + chr(3696 - 3595))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def BsSnWYqpPxw7(oVre8I6UXc3b): with xafqLlk3kkUe(LDyEj3hDqI8y, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\xd3\xb7-\x01\xed\x81\xeb\xf7\x88\xb8\xce'), '\144' + chr(109 - 8) + chr(0b1100011) + chr(2275 - 2164) + '\144' + chr(0b1011100 + 0o11))(chr(0b100011 + 0o122) + chr(116) + chr(4430 - 4328) + chr(0b101101) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xff\xd0\x88*R\xe9\x99\xdd\xa5\xab\xa5'), '\144' + chr(0b1100101) + chr(4675 - 4576) + chr(111) + chr(1581 - 1481) + '\145')(chr(2322 - 2205) + chr(5348 - 5232) + chr(102) + '\055' + '\x38')): md1d2YtjKvCG = oVre8I6UXc3b.raylet_client.get_task() xafqLlk3kkUe(H9zaXRrGK6Cq.utils, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfb\xda\x8e\x1eT\xee\xa2\xd5\x9e\xb1\xa9\xd2\x1bS\xb7\xee\xb9\x86\x97\x9e\x808G^'), chr(0b1100100) + chr(0b10000 + 0o125) + chr(99) + chr(111) + '\x64' + '\145')(chr(117) + chr(0b1111 + 0o145) + chr(6989 - 6887) + chr(0b101101) + chr(947 - 891)))(xafqLlk3kkUe(H9zaXRrGK6Cq, xafqLlk3kkUe(SXOLrMavuUCe(b'\xef\xda\x8e\x1eP\xeb\xb3\xeb\xa8\xa3\xb3'), chr(100) + '\145' + '\x63' + chr(4019 - 3908) + chr(0b1010000 + 0o24) + chr(0b1100101))('\165' + chr(116) + chr(0b1000010 + 0o44) + chr(0b101101 + 0o0) + '\070'))()) return md1d2YtjKvCG
ray-project/ray
python/ray/worker.py
Worker.main_loop
def main_loop(self): """The main loop a worker runs to receive and execute tasks.""" def exit(signum, frame): shutdown() sys.exit(0) signal.signal(signal.SIGTERM, exit) while True: task = self._get_next_task_from_raylet() self._wait_for_and_process_task(task)
python
def main_loop(self): """The main loop a worker runs to receive and execute tasks.""" def exit(signum, frame): shutdown() sys.exit(0) signal.signal(signal.SIGTERM, exit) while True: task = self._get_next_task_from_raylet() self._wait_for_and_process_task(task)
[ "def", "main_loop", "(", "self", ")", ":", "def", "exit", "(", "signum", ",", "frame", ")", ":", "shutdown", "(", ")", "sys", ".", "exit", "(", "0", ")", "signal", ".", "signal", "(", "signal", ".", "SIGTERM", ",", "exit", ")", "while", "True", ":", "task", "=", "self", ".", "_get_next_task_from_raylet", "(", ")", "self", ".", "_wait_for_and_process_task", "(", "task", ")" ]
The main loop a worker runs to receive and execute tasks.
[ "The", "main", "loop", "a", "worker", "runs", "to", "receive", "and", "execute", "tasks", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/worker.py#L1028-L1039
train
The main loop for the worker.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWS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imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\x6f' + '\062' + chr(0b110001 + 0o6), 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + '\x33' + '\x32' + chr(0b110010), 17963 - 17955), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + chr(0b11101 + 0o26) + chr(0b100000 + 0o27), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(680 - 629) + chr(0b11101 + 0o31) + '\x34', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2121 - 2072) + chr(66 - 15) + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + chr(0b10 + 0o63) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001000 + 0o47) + chr(0b100000 + 0o21) + chr(0b110000 + 0o5) + chr(0b11101 + 0o30), 8), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x31' + chr(0b11000 + 0o36) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + chr(5161 - 5050) + chr(0b110011) + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(757 - 708) + chr(0b110011) + chr(0b110001), 0o10), ehT0Px3KOsy9('\x30' + chr(0b100011 + 0o114) + chr(49) + '\x31' + chr(0b11000 + 0o36), ord("\x08")), ehT0Px3KOsy9('\060' + chr(9655 - 9544) + '\x31' + '\x36' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\x6f' + '\x31' + chr(565 - 516) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\157' + '\063' + chr(0b101100 + 0o10) + chr(0b100010 + 0o21), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b10010 + 0o37) + chr(0b110001), 7927 - 7919), ehT0Px3KOsy9(chr(68 - 20) + chr(0b101 + 0o152) + chr(50) + chr(0b110011) + chr(54), 35201 - 35193), ehT0Px3KOsy9(chr(926 - 878) + chr(8912 - 8801) + chr(0b100100 + 0o16) + chr(1599 - 1547) + chr(0b10101 + 0o33), 50507 - 50499), ehT0Px3KOsy9(chr(1524 - 1476) + '\x6f' + '\061' + chr(0b110000) + chr(2599 - 2545), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b110011) + '\067' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1000100 + 0o53) + '\x32' + chr(0b110001), 41009 - 41001), ehT0Px3KOsy9(chr(2220 - 2172) + chr(9743 - 9632) + chr(0b110 + 0o54) + chr(50) + chr(55), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + chr(2280 - 2226) + '\063', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110111) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(1358 - 1310) + chr(111) + '\062' + '\x32' + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1111 + 0o140) + chr(997 - 946) + chr(2124 - 2073) + chr(2282 - 2227), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(1880 - 1769) + chr(0b101 + 0o56) + chr(0b1001 + 0o47), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101001 + 0o6) + chr(2251 - 2202) + '\x36' + '\x33', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110001) + chr(0b10101 + 0o33), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1010010 + 0o35) + chr(55) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b110001) + chr(0b110100 + 0o2) + chr(54), 17031 - 17023), ehT0Px3KOsy9('\060' + chr(0b1101101 + 0o2) + '\x33' + '\061' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(315 - 204) + chr(0b110010) + chr(0b10100 + 0o41) + chr(678 - 627), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(11656 - 11545) + chr(2139 - 2090) + '\x33' + chr(2532 - 2478), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b1 + 0o61) + '\067' + chr(0b110011), 13403 - 13395), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + '\x32' + chr(0b110100) + '\063', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + '\x36' + chr(1652 - 1598), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(218 - 168) + chr(0b110001) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(55), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(50) + chr(49), 41874 - 41866)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b111 + 0o51) + '\157' + '\065' + chr(1512 - 1464), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'9'), chr(4041 - 3941) + '\145' + chr(99) + '\157' + chr(0b1100100) + chr(8536 - 8435))('\x75' + chr(0b1110100) + chr(102) + chr(0b11110 + 0o17) + chr(925 - 869)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def bdchTAq7hxGl(oVre8I6UXc3b): def CMUdZtaORwo4(YqMkn1KqnyPR, C4IqNNmLfHXB): ueh22mwO3hKE() xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'T\x9f\xca\x90\x07\x19\x0cN"i6z'), chr(100) + chr(0b101000 + 0o75) + '\x63' + chr(835 - 724) + chr(2198 - 2098) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b101111 + 0o11)))(ehT0Px3KOsy9('\060' + chr(0b1101111) + '\060', 0o10)) xafqLlk3kkUe(ZDvW02DvHNUc, xafqLlk3kkUe(SXOLrMavuUCe(b'd\xbb\xf8\x9a<\x01'), chr(5063 - 4963) + '\145' + chr(0b10 + 0o141) + chr(111) + '\144' + chr(7686 - 7585))('\165' + '\164' + chr(102) + '\055' + '\x38'))(xafqLlk3kkUe(ZDvW02DvHNUc, xafqLlk3kkUe(SXOLrMavuUCe(b'D\x9b\xd8\xa0\x18? '), chr(0b1100100) + '\145' + '\x63' + chr(0b1010100 + 0o33) + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + chr(102) + '\x2d' + '\x38')), CMUdZtaORwo4) while ehT0Px3KOsy9(chr(0b100 + 0o54) + '\x6f' + '\x31', 8): md1d2YtjKvCG = oVre8I6UXc3b._get_next_task_from_raylet() xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'H\xa5\xfe\x9d)2\x0bn\x02A8 \x10\x10\x93{\xf1\xc3#\x8fb\xc8\xc7]\xe5\xb4'), chr(3697 - 3597) + '\145' + chr(9728 - 9629) + chr(7437 - 7326) + chr(100) + chr(0b101 + 0o140))('\x75' + chr(0b1110100) + chr(0b100010 + 0o104) + '\x2d' + chr(0b111000)))(md1d2YtjKvCG)
ray-project/ray
python/ray/rllib/agents/ppo/utils.py
flatten
def flatten(weights, start=0, stop=2): """This methods reshapes all values in a dictionary. The indices from start to stop will be flattened into a single index. Args: weights: A dictionary mapping keys to numpy arrays. start: The starting index. stop: The ending index. """ for key, val in weights.items(): new_shape = val.shape[0:start] + (-1, ) + val.shape[stop:] weights[key] = val.reshape(new_shape) return weights
python
def flatten(weights, start=0, stop=2): """This methods reshapes all values in a dictionary. The indices from start to stop will be flattened into a single index. Args: weights: A dictionary mapping keys to numpy arrays. start: The starting index. stop: The ending index. """ for key, val in weights.items(): new_shape = val.shape[0:start] + (-1, ) + val.shape[stop:] weights[key] = val.reshape(new_shape) return weights
[ "def", "flatten", "(", "weights", ",", "start", "=", "0", ",", "stop", "=", "2", ")", ":", "for", "key", ",", "val", "in", "weights", ".", "items", "(", ")", ":", "new_shape", "=", "val", ".", "shape", "[", "0", ":", "start", "]", "+", "(", "-", "1", ",", ")", "+", "val", ".", "shape", "[", "stop", ":", "]", "weights", "[", "key", "]", "=", "val", ".", "reshape", "(", "new_shape", ")", "return", "weights" ]
This methods reshapes all values in a dictionary. The indices from start to stop will be flattened into a single index. Args: weights: A dictionary mapping keys to numpy arrays. start: The starting index. stop: The ending index.
[ "This", "methods", "reshapes", "all", "values", "in", "a", "dictionary", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/ppo/utils.py#L8-L21
train
This method reshapes all values in a dictionary into a single array.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk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zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + '\x6f' + '\062' + chr(0b10110 + 0o37) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\066' + chr(54), 23141 - 23133), ehT0Px3KOsy9(chr(177 - 129) + chr(11690 - 11579) + chr(0b110110) + chr(1982 - 1929), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001100 + 0o43) + chr(764 - 714) + '\061' + chr(48), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(49) + '\x34' + chr(0b11110 + 0o22), 56681 - 56673), ehT0Px3KOsy9('\x30' + chr(0b100000 + 0o117) + chr(51) + chr(2991 - 2936) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(1919 - 1869) + '\067' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(461 - 413) + chr(0b1001110 + 0o41) + '\063' + chr(0b110000) + chr(0b10001 + 0o44), 59157 - 59149), ehT0Px3KOsy9(chr(1281 - 1233) + chr(111) + chr(0b110001) + chr(322 - 273), 45927 - 45919), ehT0Px3KOsy9(chr(48) + chr(0b1100 + 0o143) + chr(2409 - 2358) + '\x33' + chr(0b110000), 51936 - 51928), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(111) + chr(49) + chr(0b101100 + 0o10) + chr(202 - 149), 0o10), ehT0Px3KOsy9(chr(1692 - 1644) + chr(0b1101111 + 0o0) + chr(0b110110) + chr(0b110110), 8), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + '\067' + chr(0b11000 + 0o31), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(806 - 756) + '\x37' + chr(0b110001), 8), ehT0Px3KOsy9('\060' + chr(111) + chr(1494 - 1445) + '\067' + chr(1227 - 1176), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b110000) + '\x32', 111 - 103), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + '\x36' + '\060', 23328 - 23320), ehT0Px3KOsy9(chr(2302 - 2254) + chr(0b1101111) + chr(0b110100) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1101111) + '\062' + chr(2582 - 2527) + '\x36', 431 - 423), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b10011 + 0o37) + chr(55), 14098 - 14090), ehT0Px3KOsy9(chr(1198 - 1150) + chr(8675 - 8564) + '\062' + chr(55) + chr(0b101101 + 0o7), 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + '\x33' + chr(1590 - 1540) + chr(0b101001 + 0o14), 55417 - 55409), ehT0Px3KOsy9(chr(0b110000) + chr(0b100111 + 0o110) + '\061' + chr(653 - 605) + chr(0b111 + 0o52), 57652 - 57644), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100101 + 0o14) + '\x31' + chr(0b100000 + 0o24), 35557 - 35549), ehT0Px3KOsy9('\x30' + chr(3748 - 3637) + chr(0b101011 + 0o6) + chr(49) + chr(0b11001 + 0o31), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(55) + '\x34', 44659 - 44651), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(1231 - 1181) + '\060', 54275 - 54267), ehT0Px3KOsy9('\060' + chr(6012 - 5901) + chr(1969 - 1920) + chr(48) + '\x36', 29845 - 29837), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b111110 + 0o61) + chr(0b10 + 0o61) + chr(0b10011 + 0o43) + chr(53), 24671 - 24663), ehT0Px3KOsy9(chr(0b100010 + 0o16) + '\157' + chr(2252 - 2201) + '\x36' + chr(0b1101 + 0o52), 11086 - 11078), ehT0Px3KOsy9(chr(834 - 786) + '\x6f' + chr(0b1000 + 0o52) + chr(52) + chr(472 - 422), 7130 - 7122), ehT0Px3KOsy9(chr(48) + chr(0b11111 + 0o120) + chr(0b110010) + chr(0b110001) + chr(0b111 + 0o53), 0b1000), ehT0Px3KOsy9(chr(497 - 449) + chr(0b101000 + 0o107) + chr(0b110001) + chr(0b110011) + '\x35', ord("\x08")), ehT0Px3KOsy9('\060' + chr(3161 - 3050) + chr(781 - 730) + '\x30' + '\060', 41569 - 41561), ehT0Px3KOsy9('\060' + '\157' + chr(0b11000 + 0o32) + '\065' + chr(0b101000 + 0o17), 28723 - 28715), ehT0Px3KOsy9(chr(0b110000) + chr(10343 - 10232) + '\067' + '\x37', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b10101 + 0o41) + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010 + 0o1) + '\065' + chr(0b10101 + 0o36), 9743 - 9735), ehT0Px3KOsy9(chr(1123 - 1075) + '\157' + chr(725 - 672) + '\066', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b111 + 0o53) + chr(0b1000 + 0o53) + '\060', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\157' + '\065' + chr(48), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x84'), chr(100) + chr(7655 - 7554) + chr(99) + chr(111) + chr(0b1100100) + chr(0b111010 + 0o53))(chr(10084 - 9967) + '\x74' + '\146' + chr(0b10011 + 0o32) + chr(3010 - 2954)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def dbBtynT6oMgz(ZurHTci57aXw, avRbFsnfJxQj=ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1100101 + 0o12) + chr(0b10011 + 0o35), 0o10), i64wROPYXl1w=ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(111) + chr(0b100000 + 0o22), ord("\x08"))): for (K3J4ZwSlE0sT, pQxH2D_k9sXQ) in xafqLlk3kkUe(ZurHTci57aXw, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4LC\xed)\xa0\x8c\x8ce\x8b-\x0f'), '\x64' + '\x65' + chr(0b1100011) + '\157' + '\144' + '\145')('\x75' + '\x74' + '\x66' + chr(45) + '\070'))(): P7dVzv6_yXeE = pQxH2D_k9sXQ.nauYfLglTpcb[ehT0Px3KOsy9(chr(48) + '\157' + chr(48), 8):avRbFsnfJxQj] + (-ehT0Px3KOsy9('\060' + '\157' + chr(0b100 + 0o55), 0o10),) + pQxH2D_k9sXQ.nauYfLglTpcb[i64wROPYXl1w:] ZurHTci57aXw[K3J4ZwSlE0sT] = pQxH2D_k9sXQ.reshape(P7dVzv6_yXeE) return ZurHTci57aXw
ray-project/ray
python/ray/node.py
Node.address_info
def address_info(self): """Get a dictionary of addresses.""" return { "node_ip_address": self._node_ip_address, "redis_address": self._redis_address, "object_store_address": self._plasma_store_socket_name, "raylet_socket_name": self._raylet_socket_name, "webui_url": self._webui_url, }
python
def address_info(self): """Get a dictionary of addresses.""" return { "node_ip_address": self._node_ip_address, "redis_address": self._redis_address, "object_store_address": self._plasma_store_socket_name, "raylet_socket_name": self._raylet_socket_name, "webui_url": self._webui_url, }
[ "def", "address_info", "(", "self", ")", ":", "return", "{", "\"node_ip_address\"", ":", "self", ".", "_node_ip_address", ",", "\"redis_address\"", ":", "self", ".", "_redis_address", ",", "\"object_store_address\"", ":", "self", ".", "_plasma_store_socket_name", ",", "\"raylet_socket_name\"", ":", "self", ".", "_raylet_socket_name", ",", "\"webui_url\"", ":", "self", ".", "_webui_url", ",", "}" ]
Get a dictionary of addresses.
[ "Get", "a", "dictionary", "of", "addresses", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L199-L207
train
Get a dictionary of addresses.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXj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Cn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1963 - 1915) + chr(0b1101111) + chr(50) + '\x36' + chr(0b110010), 25229 - 25221), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1101111) + '\x34' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(0b1101111) + '\x32' + chr(0b110100) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b101100 + 0o7) + chr(1022 - 967) + chr(0b110001), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1010001 + 0o36) + chr(50) + chr(0b10101 + 0o37) + chr(0b111 + 0o53), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(1975 - 1925) + chr(0b1111 + 0o50) + chr(50), 6981 - 6973), ehT0Px3KOsy9(chr(1027 - 979) + '\157' + '\062' + chr(593 - 544) + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(3500 - 3389) + chr(0b110 + 0o53) + chr(55) + chr(0b1100 + 0o44), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + chr(1608 - 1559) + chr(53), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b10001 + 0o136) + '\x32' + '\x33' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + chr(52) + chr(51), 6360 - 6352), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(111) + '\063' + chr(692 - 640) + chr(0b100110 + 0o17), 37137 - 37129), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + chr(0b110100) + '\x35', 8), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\157' + chr(521 - 470) + chr(0b110111) + chr(0b100100 + 0o16), 0o10), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(111) + '\063' + '\x35' + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6678 - 6567) + chr(51) + chr(0b110000) + chr(0b110000), 34416 - 34408), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\x6f' + chr(1088 - 1033) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b100110 + 0o111) + '\x32' + chr(53) + chr(0b1 + 0o66), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(1188 - 1134) + chr(0b101001 + 0o14), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + '\x34' + chr(0b111 + 0o56), 8), ehT0Px3KOsy9('\x30' + chr(0b111000 + 0o67) + chr(1322 - 1272) + chr(0b110100) + chr(122 - 67), 0b1000), ehT0Px3KOsy9('\060' + chr(520 - 409) + chr(0b110011) + chr(1616 - 1562), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(802 - 753) + '\064' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1229 - 1178) + '\x32' + '\x35', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1583 - 1532) + chr(0b110110 + 0o1) + chr(49), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b1010 + 0o54) + chr(0b0 + 0o65), 8), ehT0Px3KOsy9('\060' + chr(6752 - 6641) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(51) + chr(55), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b10 + 0o155) + chr(0b100 + 0o55) + chr(54) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(1831 - 1783) + '\157' + chr(0b110 + 0o53) + '\060' + chr(0b100010 + 0o22), 0o10), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + chr(2014 - 1963) + chr(2787 - 2734), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1296 - 1244) + chr(1631 - 1581), 51720 - 51712), ehT0Px3KOsy9('\060' + chr(0b1001010 + 0o45) + chr(0b110111) + chr(1145 - 1097), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + '\x35' + chr(48), 17991 - 17983), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(1824 - 1771) + chr(1267 - 1218), 0o10), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(12053 - 11942) + chr(1883 - 1832) + '\060' + chr(0b11000 + 0o31), 13424 - 13416), ehT0Px3KOsy9('\060' + chr(7958 - 7847) + '\062' + chr(53) + '\061', 8), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + chr(49) + '\x37' + '\x34', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + '\x31' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + chr(0b110100) + chr(1179 - 1128), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(11455 - 11344) + chr(53) + '\060', 18785 - 18777)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x9c'), chr(0b1000110 + 0o36) + chr(101) + chr(9074 - 8975) + '\157' + '\x64' + chr(5358 - 5257))(chr(0b1110001 + 0o4) + '\x74' + '\x66' + chr(0b1 + 0o54) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def leqV9T788r2p(oVre8I6UXc3b): return {xafqLlk3kkUe(SXOLrMavuUCe(b"\xdcJ\xc7\x9c\xfd\xd3\xfb'\xac\xfe\x87\x97\x80\x89\x98"), chr(6735 - 6635) + chr(5914 - 5813) + chr(0b1011101 + 0o6) + chr(12223 - 12112) + chr(5965 - 5865) + chr(1834 - 1733))('\165' + '\x74' + '\x66' + '\055' + chr(0b111000)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xedK\xcc\x9d\xc7\xe5\xe2\x08\x92\xfb\x87\x81\x97\x9f\x98\xb3'), '\144' + '\x65' + '\143' + chr(4871 - 4760) + chr(0b1100100) + '\x65')(chr(0b10010 + 0o143) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\070')), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0@\xc7\x90\xd1\xe5\xea\x1c\xa9\xe8\x86\x96\x96'), '\x64' + '\145' + chr(9302 - 9203) + '\x6f' + chr(5118 - 5018) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xedW\xc6\x9d\xcb\xc9\xd4\x19\xa9\xfe\x91\x80\x96\x89'), chr(100) + '\x65' + '\x63' + chr(0b1101111) + chr(0b101010 + 0o72) + chr(0b1100100 + 0o1))('\165' + chr(0b1110100) + chr(102) + chr(0b100100 + 0o11) + '\x38')), xafqLlk3kkUe(SXOLrMavuUCe(b'\xddG\xc9\x9c\xc1\xce\xd4\x0b\xb9\xf5\x91\x80\xba\x9b\x8f\xa4L\xcaF\x96'), chr(0b1100100) + '\145' + chr(0b1100011) + '\157' + chr(4348 - 4248) + '\145')(chr(0b1 + 0o164) + '\x74' + chr(0b1100110) + chr(45) + chr(56)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b"\xedU\xcf\x98\xd1\xd7\xea'\xbe\xee\x8c\x97\x80\xa5\x98\xaf]\xc4P\x91\xf8p\x05\xb8\x9c"), chr(0b1100100) + chr(0b1100010 + 0o3) + '\x63' + chr(0b1011101 + 0o22) + chr(0b1000011 + 0o41) + chr(101))(chr(117) + chr(116) + '\146' + chr(1290 - 1245) + chr(56))), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0D\xda\x95\xc7\xce\xd4\x0b\xa2\xf9\x88\x80\x91\xa5\x85\xa1S\xca'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1011000 + 0o27) + chr(100) + chr(0b1100101))('\x75' + '\164' + chr(0b1001101 + 0o31) + chr(0b101011 + 0o2) + chr(391 - 335)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b"\xedW\xc2\x80\xce\xdf\xff'\xbe\xf5\x80\x8e\x80\x8e\xb4\xae_\xc2P"), chr(100) + chr(1583 - 1482) + chr(99) + '\x6f' + '\x64' + chr(0b111001 + 0o54))(chr(13234 - 13117) + chr(0b1110 + 0o146) + chr(3772 - 3670) + chr(45) + chr(0b101000 + 0o20))), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc5@\xc1\x8c\xcb\xe5\xfe\n\xa1'), chr(9716 - 9616) + '\x65' + '\143' + '\157' + chr(0b1000000 + 0o44) + '\x65')(chr(0b1110101) + chr(8016 - 7900) + chr(102) + chr(0b10100 + 0o31) + chr(0b111000)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xedR\xc6\x9b\xd7\xd3\xd4\r\xbf\xf6'), chr(100) + chr(0b1100101) + chr(6247 - 6148) + '\157' + chr(100) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(56)))}
ray-project/ray
python/ray/node.py
Node.create_redis_client
def create_redis_client(self): """Create a redis client.""" return ray.services.create_redis_client( self._redis_address, self._ray_params.redis_password)
python
def create_redis_client(self): """Create a redis client.""" return ray.services.create_redis_client( self._redis_address, self._ray_params.redis_password)
[ "def", "create_redis_client", "(", "self", ")", ":", "return", "ray", ".", "services", ".", "create_redis_client", "(", "self", ".", "_redis_address", ",", "self", ".", "_ray_params", ".", "redis_password", ")" ]
Create a redis client.
[ "Create", "a", "redis", "client", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L209-L212
train
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wRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + chr(248 - 199) + chr(1297 - 1246), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b10100 + 0o133) + chr(0b110 + 0o54) + chr(2536 - 2485) + '\067', 18447 - 18439), ehT0Px3KOsy9(chr(166 - 118) + chr(0b1101111) + '\x32' + chr(49) + chr(2853 - 2799), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + chr(1934 - 1883) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + '\157' + '\064' + chr(0b11011 + 0o34), ord("\x08")), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\x6f' + '\x32' + chr(94 - 46) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1101111) + chr(0b110011) + '\065' + chr(0b101110 + 0o5), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b10110 + 0o35) + chr(48) + chr(2570 - 2516), 0o10), ehT0Px3KOsy9('\x30' + chr(0b111011 + 0o64) + '\065' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(0b100111 + 0o12) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(482 - 434) + chr(111) + chr(0b101110 + 0o3) + '\x31' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(877 - 829) + chr(0b1101111) + '\x32' + chr(0b1001 + 0o47), 39285 - 39277), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + chr(53) + chr(49), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b11010 + 0o125) + chr(50) + '\x34', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11001 + 0o30) + chr(49) + chr(0b11000 + 0o35), 42293 - 42285), ehT0Px3KOsy9(chr(59 - 11) + '\157' + '\063' + chr(54), 51562 - 51554), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + chr(51) + chr(0b110101) + chr(1271 - 1221), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101 + 0o56) + chr(51) + chr(0b1 + 0o63), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x31' + chr(0b110101) + chr(0b101011 + 0o12), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x31' + chr(53) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(1288 - 1234) + '\x32', 7694 - 7686), ehT0Px3KOsy9('\x30' + chr(0b110 + 0o151) + '\063' + chr(0b110010) + chr(0b110101), 54401 - 54393), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + '\065' + chr(0b110110), 1317 - 1309), ehT0Px3KOsy9('\x30' + chr(0b111001 + 0o66) + chr(0b100110 + 0o15) + chr(0b1110 + 0o47) + chr(1967 - 1917), 8), ehT0Px3KOsy9('\x30' + chr(0b10110 + 0o131) + chr(58 - 8) + chr(1989 - 1936) + chr(0b110101), 18190 - 18182), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(51) + chr(0b10110 + 0o36), 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\064' + chr(0b10101 + 0o34), 0b1000), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + '\063' + '\x30' + chr(0b10011 + 0o43), 8), ehT0Px3KOsy9(chr(2012 - 1964) + '\x6f' + chr(2340 - 2290) + '\x34' + '\x37', 23954 - 23946), ehT0Px3KOsy9(chr(0b110000) + chr(6584 - 6473) + chr(0b110011) + chr(0b110000 + 0o1) + chr(1648 - 1600), 0o10), ehT0Px3KOsy9(chr(718 - 670) + '\x6f' + chr(0b110111) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11000 + 0o31) + chr(0b10001 + 0o41) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101010 + 0o5) + chr(0b110010) + '\x34', 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(250 - 201) + chr(1370 - 1320) + chr(1052 - 1001), 0o10), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(0b1101110 + 0o1) + chr(50) + chr(50) + chr(1477 - 1424), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000 + 0o147) + chr(1118 - 1069) + '\061' + chr(0b100011 + 0o15), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b100010 + 0o22) + chr(0b0 + 0o66), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\066' + chr(0b100100 + 0o14), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + '\x36' + '\x37', 31485 - 31477), ehT0Px3KOsy9(chr(229 - 181) + chr(0b10101 + 0o132) + chr(685 - 632) + chr(0b110100), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10 + 0o56) + '\157' + '\x35' + '\060', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'%'), '\144' + '\145' + chr(0b1100011) + '\157' + '\x64' + chr(0b1100101))('\165' + chr(11236 - 11120) + chr(537 - 435) + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def qQCraooKuZvy(oVre8I6UXc3b): return xafqLlk3kkUe(H9zaXRrGK6Cq.services, xafqLlk3kkUe(SXOLrMavuUCe(b'h\xed\xeb=S\xe1\xb4\xb4I\xe8#c\xf6w!w\x8f\xb2\x19'), '\x64' + chr(756 - 655) + chr(0b1100011) + '\157' + chr(100) + chr(0b11010 + 0o113))('\165' + chr(116) + chr(0b1100110) + '\055' + chr(0b111000)))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'T\xed\xeb8N\xf7\xb4\xa7H\xe88u\xdag'), '\144' + chr(0b110111 + 0o56) + chr(99) + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(0b1110100) + chr(0b1000 + 0o136) + chr(0b10101 + 0o30) + chr(0b11110 + 0o32))), xafqLlk3kkUe(oVre8I6UXc3b._ray_params, xafqLlk3kkUe(SXOLrMavuUCe(b'y\xfa\xea5T\xdb\x9b\xa7_\xff=\x7f\xdbp'), chr(0b100110 + 0o76) + chr(101) + chr(0b1010001 + 0o22) + chr(111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(5342 - 5226) + '\146' + chr(590 - 545) + chr(0b111000))))
ray-project/ray
python/ray/node.py
Node._make_inc_temp
def _make_inc_temp(self, suffix="", prefix="", directory_name="/tmp/ray"): """Return a incremental temporary file name. The file is not created. Args: suffix (str): The suffix of the temp file. prefix (str): The prefix of the temp file. directory_name (str) : The base directory of the temp file. Returns: A string of file name. If there existing a file having the same name, the returned name will look like "{directory_name}/{prefix}.{unique_index}{suffix}" """ directory_name = os.path.expanduser(directory_name) index = self._incremental_dict[suffix, prefix, directory_name] # `tempfile.TMP_MAX` could be extremely large, # so using `range` in Python2.x should be avoided. while index < tempfile.TMP_MAX: if index == 0: filename = os.path.join(directory_name, prefix + suffix) else: filename = os.path.join(directory_name, prefix + "." + str(index) + suffix) index += 1 if not os.path.exists(filename): # Save the index. self._incremental_dict[suffix, prefix, directory_name] = index return filename raise FileExistsError(errno.EEXIST, "No usable temporary filename found")
python
def _make_inc_temp(self, suffix="", prefix="", directory_name="/tmp/ray"): """Return a incremental temporary file name. The file is not created. Args: suffix (str): The suffix of the temp file. prefix (str): The prefix of the temp file. directory_name (str) : The base directory of the temp file. Returns: A string of file name. If there existing a file having the same name, the returned name will look like "{directory_name}/{prefix}.{unique_index}{suffix}" """ directory_name = os.path.expanduser(directory_name) index = self._incremental_dict[suffix, prefix, directory_name] # `tempfile.TMP_MAX` could be extremely large, # so using `range` in Python2.x should be avoided. while index < tempfile.TMP_MAX: if index == 0: filename = os.path.join(directory_name, prefix + suffix) else: filename = os.path.join(directory_name, prefix + "." + str(index) + suffix) index += 1 if not os.path.exists(filename): # Save the index. self._incremental_dict[suffix, prefix, directory_name] = index return filename raise FileExistsError(errno.EEXIST, "No usable temporary filename found")
[ "def", "_make_inc_temp", "(", "self", ",", "suffix", "=", "\"\"", ",", "prefix", "=", "\"\"", ",", "directory_name", "=", "\"/tmp/ray\"", ")", ":", "directory_name", "=", "os", ".", "path", ".", "expanduser", "(", "directory_name", ")", "index", "=", "self", ".", "_incremental_dict", "[", "suffix", ",", "prefix", ",", "directory_name", "]", "# `tempfile.TMP_MAX` could be extremely large,", "# so using `range` in Python2.x should be avoided.", "while", "index", "<", "tempfile", ".", "TMP_MAX", ":", "if", "index", "==", "0", ":", "filename", "=", "os", ".", "path", ".", "join", "(", "directory_name", ",", "prefix", "+", "suffix", ")", "else", ":", "filename", "=", "os", ".", "path", ".", "join", "(", "directory_name", ",", "prefix", "+", "\".\"", "+", "str", "(", "index", ")", "+", "suffix", ")", "index", "+=", "1", "if", "not", "os", ".", "path", ".", "exists", "(", "filename", ")", ":", "# Save the index.", "self", ".", "_incremental_dict", "[", "suffix", ",", "prefix", ",", "directory_name", "]", "=", "index", "return", "filename", "raise", "FileExistsError", "(", "errno", ".", "EEXIST", ",", "\"No usable temporary filename found\"", ")" ]
Return a incremental temporary file name. The file is not created. Args: suffix (str): The suffix of the temp file. prefix (str): The prefix of the temp file. directory_name (str) : The base directory of the temp file. Returns: A string of file name. If there existing a file having the same name, the returned name will look like "{directory_name}/{prefix}.{unique_index}{suffix}"
[ "Return", "a", "incremental", "temporary", "file", "name", ".", "The", "file", "is", "not", "created", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L226-L256
train
Return a temporary file name. The file is not created.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9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8,tzcpInYwBvYW,iDQ_gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1093 - 1045) + chr(4029 - 3918) + chr(50) + chr(0b1111 + 0o44) + chr(0b101011 + 0o14), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(48) + chr(1741 - 1689), 0o10), ehT0Px3KOsy9(chr(1603 - 1555) + '\x6f' + '\061' + chr(0b10000 + 0o47) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\157' + '\x33' + chr(0b110010), 0o10), ehT0Px3KOsy9('\060' + chr(0b1100010 + 0o15) + chr(1165 - 1116) + chr(49) + '\061', 0b1000), ehT0Px3KOsy9(chr(1531 - 1483) + chr(5959 - 5848) + '\066' + chr(55), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + '\060' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(1333 - 1222) + '\x31' + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(55) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1011 + 0o46) + chr(0b110101) + chr(0b11111 + 0o21), 0o10), ehT0Px3KOsy9(chr(720 - 672) + '\x6f' + chr(54) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + chr(50) + chr(52), 0b1000), ehT0Px3KOsy9('\x30' + chr(10553 - 10442) + '\x36' + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + chr(11824 - 11713) + chr(1931 - 1880) + '\061' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + '\x33' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1010110 + 0o31) + '\062' + '\x31' + chr(366 - 312), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b11010 + 0o32) + chr(0b110000), 38399 - 38391), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\064' + chr(0b110001), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + chr(0b110000) + chr(0b101101 + 0o10), 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(5928 - 5817) + '\063' + chr(0b110101), 0b1000), ehT0Px3KOsy9('\060' + chr(1081 - 970) + chr(0b110001) + chr(1943 - 1895) + '\067', 54666 - 54658), ehT0Px3KOsy9(chr(1299 - 1251) + chr(12290 - 12179) + '\x32' + chr(0b110101) + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + '\061' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100010 + 0o21) + chr(0b110100) + '\061', 8), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\157' + '\067' + chr(55), 44419 - 44411), ehT0Px3KOsy9('\x30' + chr(2783 - 2672) + chr(875 - 822) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + chr(595 - 541) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + chr(4862 - 4751) + chr(51) + '\x31' + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1101111) + chr(49) + chr(1884 - 1833) + chr(0b100100 + 0o22), 1448 - 1440), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + chr(1497 - 1444) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + chr(0b110001) + chr(49), 8), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\x6f' + chr(814 - 764) + '\060' + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1001001 + 0o46) + chr(0b100110 + 0o15) + '\x32' + '\066', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b101 + 0o56) + chr(0b101110 + 0o7) + chr(0b101000 + 0o11), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(7660 - 7549) + '\063' + chr(0b110100) + '\060', 60239 - 60231), ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + chr(0b110010) + '\064' + chr(0b11110 + 0o22), 27227 - 27219), ehT0Px3KOsy9('\x30' + chr(9216 - 9105) + '\061' + chr(2322 - 2268) + chr(2191 - 2140), ord("\x08")), ehT0Px3KOsy9(chr(1931 - 1883) + '\x6f' + '\x33' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\157' + '\061' + '\x32' + chr(0b110100), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(6533 - 6422) + chr(0b110101) + chr(0b1101 + 0o43), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb1'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b101011 + 0o71) + '\x65')(chr(6483 - 6366) + chr(116) + chr(0b1010001 + 0o25) + chr(0b101101) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def BWvBf_ZKGtoQ(oVre8I6UXc3b, YhhkyMvxPIjH=xafqLlk3kkUe(SXOLrMavuUCe(b''), '\x64' + chr(5546 - 5445) + chr(0b1100011) + '\x6f' + chr(5164 - 5064) + '\145')(chr(117) + chr(9515 - 9399) + chr(102) + chr(0b101101) + chr(56)), K1Ha0XjJTAE7=xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(6572 - 6472) + chr(0b1100100 + 0o1) + '\143' + chr(0b111000 + 0o67) + chr(0b1100100) + chr(101))(chr(9562 - 9445) + '\164' + '\x66' + chr(0b101011 + 0o2) + '\x38'), e8oKJLQlEYbi=xafqLlk3kkUe(SXOLrMavuUCe(b'\xb0\xb0\x16jfE\xa1w'), chr(7115 - 7015) + '\145' + chr(99) + chr(0b1101101 + 0o2) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(102) + '\x2d' + chr(56))): e8oKJLQlEYbi = oqhJDdMJfuwx.path.expanduser(e8oKJLQlEYbi) XdowRbJKZWL9 = oVre8I6UXc3b._incremental_dict[YhhkyMvxPIjH, K1Ha0XjJTAE7, e8oKJLQlEYbi] while XdowRbJKZWL9 < xafqLlk3kkUe(IvD8hQuFpT7c, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcb\x89+E\x04v\x98'), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(0b110001 + 0o63) + '\145')(chr(117) + chr(0b1101110 + 0o6) + chr(0b1100110) + chr(45) + '\x38')): if XdowRbJKZWL9 == ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\x6f' + '\x30', 0b1000): xw4DsBfIJ22E = oqhJDdMJfuwx.path._oWXztVNnqHF(e8oKJLQlEYbi, K1Ha0XjJTAE7 + YhhkyMvxPIjH) else: xw4DsBfIJ22E = oqhJDdMJfuwx.path._oWXztVNnqHF(e8oKJLQlEYbi, K1Ha0XjJTAE7 + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb1'), '\x64' + chr(9045 - 8944) + chr(99) + chr(111) + '\x64' + chr(101))('\165' + chr(0b1110100) + '\146' + chr(624 - 579) + chr(0b11001 + 0o37)) + M8_cKLkHVB2V(XdowRbJKZWL9) + YhhkyMvxPIjH) XdowRbJKZWL9 += ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1010 + 0o47), 0o10) if not xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfa\xbc\x12i=D'), chr(9162 - 9062) + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(9764 - 9648) + chr(0b110010 + 0o64) + chr(45) + chr(0b111000)))(xw4DsBfIJ22E): oVre8I6UXc3b.jKMBNSjY5Hf9[YhhkyMvxPIjH, K1Ha0XjJTAE7, e8oKJLQlEYbi] = XdowRbJKZWL9 return xw4DsBfIJ22E raise prtR0Uw1GMh5(xafqLlk3kkUe(lKz5VhncMjGe, xafqLlk3kkUe(SXOLrMavuUCe(b'\xda\x81#S\x1ac'), '\144' + chr(101) + chr(0b110111 + 0o54) + '\x6f' + '\x64' + chr(9411 - 9310))(chr(0b100010 + 0o123) + chr(11785 - 11669) + chr(0b1100110) + '\x2d' + chr(56))), xafqLlk3kkUe(SXOLrMavuUCe(b'\xd1\xab[o:V\xa2bYHA\xf1[\xbb\xf1\xfcA\x93<=!\xc6!\x84QL\x18\xaf~\x0b&\xf1\xb8\x8d'), '\x64' + chr(10031 - 9930) + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(13509 - 13392) + '\x74' + chr(0b100001 + 0o105) + chr(178 - 133) + chr(0b111000)))
ray-project/ray
python/ray/node.py
Node.new_log_files
def new_log_files(self, name, redirect_output=True): """Generate partially randomized filenames for log files. Args: name (str): descriptive string for this log file. redirect_output (bool): True if files should be generated for logging stdout and stderr and false if stdout and stderr should not be redirected. If it is None, it will use the "redirect_output" Ray parameter. Returns: If redirect_output is true, this will return a tuple of two file handles. The first is for redirecting stdout and the second is for redirecting stderr. If redirect_output is false, this will return a tuple of two None objects. """ if redirect_output is None: redirect_output = self._ray_params.redirect_output if not redirect_output: return None, None log_stdout = self._make_inc_temp( suffix=".out", prefix=name, directory_name=self._logs_dir) log_stderr = self._make_inc_temp( suffix=".err", prefix=name, directory_name=self._logs_dir) # Line-buffer the output (mode 1). log_stdout_file = open(log_stdout, "a", buffering=1) log_stderr_file = open(log_stderr, "a", buffering=1) return log_stdout_file, log_stderr_file
python
def new_log_files(self, name, redirect_output=True): """Generate partially randomized filenames for log files. Args: name (str): descriptive string for this log file. redirect_output (bool): True if files should be generated for logging stdout and stderr and false if stdout and stderr should not be redirected. If it is None, it will use the "redirect_output" Ray parameter. Returns: If redirect_output is true, this will return a tuple of two file handles. The first is for redirecting stdout and the second is for redirecting stderr. If redirect_output is false, this will return a tuple of two None objects. """ if redirect_output is None: redirect_output = self._ray_params.redirect_output if not redirect_output: return None, None log_stdout = self._make_inc_temp( suffix=".out", prefix=name, directory_name=self._logs_dir) log_stderr = self._make_inc_temp( suffix=".err", prefix=name, directory_name=self._logs_dir) # Line-buffer the output (mode 1). log_stdout_file = open(log_stdout, "a", buffering=1) log_stderr_file = open(log_stderr, "a", buffering=1) return log_stdout_file, log_stderr_file
[ "def", "new_log_files", "(", "self", ",", "name", ",", "redirect_output", "=", "True", ")", ":", "if", "redirect_output", "is", "None", ":", "redirect_output", "=", "self", ".", "_ray_params", ".", "redirect_output", "if", "not", "redirect_output", ":", "return", "None", ",", "None", "log_stdout", "=", "self", ".", "_make_inc_temp", "(", "suffix", "=", "\".out\"", ",", "prefix", "=", "name", ",", "directory_name", "=", "self", ".", "_logs_dir", ")", "log_stderr", "=", "self", ".", "_make_inc_temp", "(", "suffix", "=", "\".err\"", ",", "prefix", "=", "name", ",", "directory_name", "=", "self", ".", "_logs_dir", ")", "# Line-buffer the output (mode 1).", "log_stdout_file", "=", "open", "(", "log_stdout", ",", "\"a\"", ",", "buffering", "=", "1", ")", "log_stderr_file", "=", "open", "(", "log_stderr", ",", "\"a\"", ",", "buffering", "=", "1", ")", "return", "log_stdout_file", ",", "log_stderr_file" ]
Generate partially randomized filenames for log files. Args: name (str): descriptive string for this log file. redirect_output (bool): True if files should be generated for logging stdout and stderr and false if stdout and stderr should not be redirected. If it is None, it will use the "redirect_output" Ray parameter. Returns: If redirect_output is true, this will return a tuple of two file handles. The first is for redirecting stdout and the second is for redirecting stderr. If redirect_output is false, this will return a tuple of two None objects.
[ "Generate", "partially", "randomized", "filenames", "for", "log", "files", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L258-L287
train
Generate partially randomized filenames for log files.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHA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kZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(111) + chr(51) + chr(49) + chr(0b110010 + 0o0), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110110) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100001 + 0o20) + '\x30' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + '\060' + chr(0b100101 + 0o22), 0b1000), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b1101010 + 0o5) + '\x31' + chr(53), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(51 - 0) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + chr(0b11001 + 0o31) + chr(0b101101 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(50) + chr(1369 - 1321) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + chr(54) + chr(0b110010 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(1762 - 1709) + chr(53), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100110 + 0o15) + chr(2172 - 2119) + chr(0b110101), 8), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + chr(0b101 + 0o56) + chr(0b110011), 61460 - 61452), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001001 + 0o46) + chr(0b110011) + '\063' + '\064', 61775 - 61767), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\157' + chr(0b11111 + 0o23) + '\x31' + chr(0b11010 + 0o27), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + chr(0b110111) + '\066', 16834 - 16826), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(111) + chr(0b1 + 0o60) + chr(0b110101) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(0b110001) + chr(518 - 468), 8), ehT0Px3KOsy9('\060' + '\157' + chr(0b10100 + 0o37) + chr(0b110101) + chr(48), 0o10), ehT0Px3KOsy9('\060' + chr(0b11001 + 0o126) + chr(0b10011 + 0o40) + '\x30' + '\x35', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b101100 + 0o103) + chr(50) + '\x35' + chr(0b101100 + 0o7), 0o10), ehT0Px3KOsy9('\x30' + chr(0b111100 + 0o63) + chr(0b110001) + chr(2301 - 2250) + chr(1504 - 1452), 27036 - 27028), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b110 + 0o151) + chr(0b1010 + 0o51) + '\x33' + chr(49), 0o10), ehT0Px3KOsy9(chr(1238 - 1190) + chr(111) + chr(0b110000 + 0o2) + chr(0b110101) + chr(0b110001 + 0o6), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b1111 + 0o42) + chr(0b1001 + 0o53), 37051 - 37043), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110101) + chr(0b110001), 58128 - 58120), ehT0Px3KOsy9(chr(352 - 304) + chr(0b111100 + 0o63) + chr(516 - 467) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(1875 - 1827) + chr(111) + chr(504 - 455) + chr(52) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2416 - 2365) + chr(51) + chr(0b10010 + 0o42), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x34' + chr(1658 - 1603), 10108 - 10100), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100101 + 0o12) + '\x31' + chr(50) + chr(52), 15300 - 15292), ehT0Px3KOsy9('\060' + chr(0b1001100 + 0o43) + '\063' + chr(0b110101), 0o10), ehT0Px3KOsy9('\060' + chr(7225 - 7114) + '\062' + chr(0b11011 + 0o26) + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(4257 - 4146) + '\x36' + '\061', 10403 - 10395), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + '\x37' + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b100000 + 0o117) + chr(0b110010) + '\x37', 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\065' + chr(879 - 826), ord("\x08")), ehT0Px3KOsy9(chr(448 - 400) + '\157' + chr(0b11010 + 0o30) + chr(202 - 147) + '\x36', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1101 + 0o44) + '\x35' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\061' + '\060' + chr(0b110010), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(436 - 325) + chr(0b100100 + 0o21) + chr(1295 - 1247), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4'), chr(0b1100100) + chr(0b1100101) + chr(0b1010010 + 0o21) + chr(2044 - 1933) + chr(0b1100100) + '\x65')('\165' + chr(0b100100 + 0o120) + '\x66' + chr(45) + chr(0b1010 + 0o56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def mAv3TbZqXUYa(oVre8I6UXc3b, AIvJRzLdDfgF, saP6f0UsZMP5=ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\157' + chr(0b110001), 0o10)): if saP6f0UsZMP5 is None: saP6f0UsZMP5 = oVre8I6UXc3b._ray_params.redirect_output if not saP6f0UsZMP5: return (None, None) Y9UfvJDVoWEn = oVre8I6UXc3b._make_inc_temp(suffix=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4_7\xf3'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(0b11000 + 0o114) + chr(0b0 + 0o145))(chr(281 - 164) + chr(208 - 92) + chr(0b1000011 + 0o43) + chr(588 - 543) + '\070'), prefix=AIvJRzLdDfgF, directory_name=oVre8I6UXc3b._logs_dir) LGCJIXaeml0D = oVre8I6UXc3b._make_inc_temp(suffix=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4U0\xf5'), chr(4644 - 4544) + '\145' + '\143' + '\157' + '\144' + chr(0b111001 + 0o54))(chr(0b1 + 0o164) + '\x74' + chr(0b101000 + 0o76) + '\x2d' + '\070'), prefix=AIvJRzLdDfgF, directory_name=oVre8I6UXc3b._logs_dir) WhmhXLyLD9UX = _fwkIVCGgtAN(Y9UfvJDVoWEn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab'), '\x64' + chr(6476 - 6375) + chr(0b101111 + 0o64) + '\x6f' + '\x64' + chr(101))(chr(117) + chr(116) + '\x66' + '\055' + '\070'), buffering=ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(111) + '\061', 8)) rIKI2XfU9fUf = _fwkIVCGgtAN(LGCJIXaeml0D, xafqLlk3kkUe(SXOLrMavuUCe(b'\xab'), chr(0b1100100) + chr(0b1100101) + '\143' + '\x6f' + chr(100) + chr(0b1100101))('\x75' + '\x74' + chr(0b110011 + 0o63) + chr(1580 - 1535) + chr(56)), buffering=ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061', 8)) return (WhmhXLyLD9UX, rIKI2XfU9fUf)
ray-project/ray
python/ray/node.py
Node._prepare_socket_file
def _prepare_socket_file(self, socket_path, default_prefix): """Prepare the socket file for raylet and plasma. This method helps to prepare a socket file. 1. Make the directory if the directory does not exist. 2. If the socket file exists, raise exception. Args: socket_path (string): the socket file to prepare. """ if socket_path is not None: if os.path.exists(socket_path): raise Exception("Socket file {} exists!".format(socket_path)) socket_dir = os.path.dirname(socket_path) try_to_create_directory(socket_dir) return socket_path return self._make_inc_temp( prefix=default_prefix, directory_name=self._sockets_dir)
python
def _prepare_socket_file(self, socket_path, default_prefix): """Prepare the socket file for raylet and plasma. This method helps to prepare a socket file. 1. Make the directory if the directory does not exist. 2. If the socket file exists, raise exception. Args: socket_path (string): the socket file to prepare. """ if socket_path is not None: if os.path.exists(socket_path): raise Exception("Socket file {} exists!".format(socket_path)) socket_dir = os.path.dirname(socket_path) try_to_create_directory(socket_dir) return socket_path return self._make_inc_temp( prefix=default_prefix, directory_name=self._sockets_dir)
[ "def", "_prepare_socket_file", "(", "self", ",", "socket_path", ",", "default_prefix", ")", ":", "if", "socket_path", "is", "not", "None", ":", "if", "os", ".", "path", ".", "exists", "(", "socket_path", ")", ":", "raise", "Exception", "(", "\"Socket file {} exists!\"", ".", "format", "(", "socket_path", ")", ")", "socket_dir", "=", "os", ".", "path", ".", "dirname", "(", "socket_path", ")", "try_to_create_directory", "(", "socket_dir", ")", "return", "socket_path", "return", "self", ".", "_make_inc_temp", "(", "prefix", "=", "default_prefix", ",", "directory_name", "=", "self", ".", "_sockets_dir", ")" ]
Prepare the socket file for raylet and plasma. This method helps to prepare a socket file. 1. Make the directory if the directory does not exist. 2. If the socket file exists, raise exception. Args: socket_path (string): the socket file to prepare.
[ "Prepare", "the", "socket", "file", "for", "raylet", "and", "plasma", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L289-L306
train
Prepare the socket file for raylet and plasma.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,ko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Z6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + '\x37' + chr(0b110010 + 0o1), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1 + 0o156) + '\x33' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(52) + chr(0b1010 + 0o50), 0o10), ehT0Px3KOsy9(chr(2290 - 2242) + chr(11141 - 11030) + chr(0b110010) + chr(53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1514 - 1462) + chr(1672 - 1623), 0o10), ehT0Px3KOsy9(chr(2028 - 1980) + chr(111) + '\066' + chr(51), 42149 - 42141), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110110) + '\x33', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(55) + '\062', 50908 - 50900), ehT0Px3KOsy9('\060' + chr(5767 - 5656) + chr(0b100110 + 0o14) + '\x36' + chr(2079 - 2030), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1030 - 979) + chr(0b101 + 0o57) + chr(2363 - 2312), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1001 + 0o52) + chr(2362 - 2309) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(111) + chr(0b110010) + '\x33' + '\x34', 0o10), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(1211 - 1100) + chr(0b110001) + chr(0b110000) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110100) + '\x33', 46463 - 46455), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\157' + chr(2344 - 2295) + chr(0b110100) + '\x31', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + chr(355 - 301) + '\063', 8), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11 + 0o57) + '\x33' + '\066', 0b1000), ehT0Px3KOsy9(chr(1702 - 1654) + '\157' + chr(213 - 163) + chr(1801 - 1753) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(295 - 244) + '\063' + chr(909 - 858), 0o10), ehT0Px3KOsy9(chr(899 - 851) + chr(0b110011 + 0o74) + '\x34' + chr(49), 8), ehT0Px3KOsy9('\060' + chr(2844 - 2733) + chr(0b110011) + chr(563 - 509), 45155 - 45147), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1101111) + '\x33' + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b11 + 0o57) + chr(0b11 + 0o64) + '\062', 8), ehT0Px3KOsy9(chr(2071 - 2023) + chr(111) + '\x31' + chr(2238 - 2188) + '\062', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + chr(1292 - 1243) + '\x35', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1100011 + 0o14) + chr(51) + chr(0b110111) + '\x35', 57928 - 57920), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + chr(48) + chr(0b10110 + 0o40), 45367 - 45359), ehT0Px3KOsy9(chr(824 - 776) + chr(2624 - 2513) + chr(0b11001 + 0o30) + chr(2607 - 2552) + chr(626 - 574), 13573 - 13565), ehT0Px3KOsy9('\x30' + chr(0b1101100 + 0o3) + '\062' + chr(2088 - 2036) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(1249 - 1201) + '\157' + chr(2353 - 2300) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + chr(0b11000 + 0o30) + '\066', 4467 - 4459), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\157' + chr(54) + chr(1843 - 1794), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(2053 - 2004) + chr(0b10001 + 0o40) + chr(0b11001 + 0o35), 0o10), ehT0Px3KOsy9(chr(48) + chr(11638 - 11527) + '\066' + '\x35', 64320 - 64312), ehT0Px3KOsy9('\060' + chr(6745 - 6634) + chr(1769 - 1719) + '\060' + chr(0b11001 + 0o36), 8), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + '\065' + chr(2616 - 2562), 57476 - 57468), ehT0Px3KOsy9(chr(2156 - 2108) + chr(10735 - 10624) + chr(1501 - 1452) + chr(1714 - 1666) + chr(0b110111), 9167 - 9159), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b1100 + 0o46) + chr(0b110 + 0o61) + chr(0b110000), 6163 - 6155), ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\x6f' + chr(49) + chr(0b110001) + chr(0b11111 + 0o21), 58954 - 58946), ehT0Px3KOsy9(chr(0b11101 + 0o23) + '\x6f' + chr(0b101 + 0o61) + chr(0b110100), 22024 - 22016)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\157' + chr(522 - 469) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x95'), chr(0b1100100) + chr(0b1001 + 0o134) + '\x63' + chr(1476 - 1365) + chr(0b1011100 + 0o10) + '\x65')(chr(9219 - 9102) + '\x74' + '\x66' + chr(0b101101) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def AAqIgKQWWMoR(oVre8I6UXc3b, eNOt6X_uelYn, hfE0jDqCFy1o): if eNOt6X_uelYn is not None: if xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdeaKfU@'), chr(0b1100001 + 0o3) + chr(912 - 811) + '\x63' + '\x6f' + '\x64' + '\145')('\x75' + chr(0b11100 + 0o130) + '\x66' + chr(1114 - 1069) + chr(0b11111 + 0o31)))(eNOt6X_uelYn): raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe8vA~DG\x93\xdc\xd8\x8f\x8e\xbc:^A\xd6\xe6\xee\xa8Um;'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + chr(3896 - 3780) + chr(102) + chr(1148 - 1103) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xed-PziR\xe0\x89\xe1\x93\x8e\xf6'), chr(0b1100100) + chr(2844 - 2743) + chr(0b1100011) + chr(0b0 + 0o157) + chr(0b1100100) + '\145')('\165' + '\164' + '\146' + '\x2d' + '\x38'))(eNOt6X_uelYn)) nd3Ix5n8aYTk = oqhJDdMJfuwx.path.dirname(eNOt6X_uelYn) AoJBGyrRhT1x(nd3Ix5n8aYTk) return eNOt6X_uelYn return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4tC~Dl\xda\xd4\xd2\xbc\x9f\xf9,S'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(7715 - 7604) + chr(7761 - 7661) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + chr(546 - 501) + chr(1054 - 998)))(prefix=hfE0jDqCFy1o, directory_name=xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4jMvJV\xc7\xc9\xee\x87\x82\xee'), chr(0b1010101 + 0o17) + '\145' + chr(0b1100011) + chr(0b111000 + 0o67) + '\x64' + chr(101))(chr(117) + chr(0b1110100) + '\146' + chr(0b101101) + '\070')))
ray-project/ray
python/ray/node.py
Node.start_redis
def start_redis(self): """Start the Redis servers.""" assert self._redis_address is None redis_log_files = [self.new_log_files("redis")] for i in range(self._ray_params.num_redis_shards): redis_log_files.append(self.new_log_files("redis-shard_" + str(i))) (self._redis_address, redis_shards, process_infos) = ray.services.start_redis( self._node_ip_address, redis_log_files, port=self._ray_params.redis_port, redis_shard_ports=self._ray_params.redis_shard_ports, num_redis_shards=self._ray_params.num_redis_shards, redis_max_clients=self._ray_params.redis_max_clients, redirect_worker_output=True, password=self._ray_params.redis_password, include_java=self._ray_params.include_java, redis_max_memory=self._ray_params.redis_max_memory) assert ( ray_constants.PROCESS_TYPE_REDIS_SERVER not in self.all_processes) self.all_processes[ray_constants.PROCESS_TYPE_REDIS_SERVER] = ( process_infos)
python
def start_redis(self): """Start the Redis servers.""" assert self._redis_address is None redis_log_files = [self.new_log_files("redis")] for i in range(self._ray_params.num_redis_shards): redis_log_files.append(self.new_log_files("redis-shard_" + str(i))) (self._redis_address, redis_shards, process_infos) = ray.services.start_redis( self._node_ip_address, redis_log_files, port=self._ray_params.redis_port, redis_shard_ports=self._ray_params.redis_shard_ports, num_redis_shards=self._ray_params.num_redis_shards, redis_max_clients=self._ray_params.redis_max_clients, redirect_worker_output=True, password=self._ray_params.redis_password, include_java=self._ray_params.include_java, redis_max_memory=self._ray_params.redis_max_memory) assert ( ray_constants.PROCESS_TYPE_REDIS_SERVER not in self.all_processes) self.all_processes[ray_constants.PROCESS_TYPE_REDIS_SERVER] = ( process_infos)
[ "def", "start_redis", "(", "self", ")", ":", "assert", "self", ".", "_redis_address", "is", "None", "redis_log_files", "=", "[", "self", ".", "new_log_files", "(", "\"redis\"", ")", "]", "for", "i", "in", "range", "(", "self", ".", "_ray_params", ".", "num_redis_shards", ")", ":", "redis_log_files", ".", "append", "(", "self", ".", "new_log_files", "(", "\"redis-shard_\"", "+", "str", "(", "i", ")", ")", ")", "(", "self", ".", "_redis_address", ",", "redis_shards", ",", "process_infos", ")", "=", "ray", ".", "services", ".", "start_redis", "(", "self", ".", "_node_ip_address", ",", "redis_log_files", ",", "port", "=", "self", ".", "_ray_params", ".", "redis_port", ",", "redis_shard_ports", "=", "self", ".", "_ray_params", ".", "redis_shard_ports", ",", "num_redis_shards", "=", "self", ".", "_ray_params", ".", "num_redis_shards", ",", "redis_max_clients", "=", "self", ".", "_ray_params", ".", "redis_max_clients", ",", "redirect_worker_output", "=", "True", ",", "password", "=", "self", ".", "_ray_params", ".", "redis_password", ",", "include_java", "=", "self", ".", "_ray_params", ".", "include_java", ",", "redis_max_memory", "=", "self", ".", "_ray_params", ".", "redis_max_memory", ")", "assert", "(", "ray_constants", ".", "PROCESS_TYPE_REDIS_SERVER", "not", "in", "self", ".", "all_processes", ")", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_REDIS_SERVER", "]", "=", "(", "process_infos", ")" ]
Start the Redis servers.
[ "Start", "the", "Redis", "servers", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L308-L330
train
Start the Redis servers.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bd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PkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(5309 - 5198) + chr(50) + '\067' + chr(1279 - 1231), 62067 - 62059), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(0b101101 + 0o7) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1000 + 0o147) + '\x33' + chr(0b110110) + chr(1308 - 1260), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x37' + '\x37', 0b1000), ehT0Px3KOsy9(chr(783 - 735) + '\157' + chr(0b110010) + chr(0b110010) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(958 - 910) + '\x6f' + chr(2109 - 2060) + '\062' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b1111 + 0o42) + chr(2379 - 2324) + chr(0b11101 + 0o25), 0o10), ehT0Px3KOsy9(chr(2188 - 2140) + chr(0b1101111) + chr(0b10100 + 0o37) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1101111) + '\066', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1150 - 1101) + chr(0b110010) + chr(54), 0o10), ehT0Px3KOsy9(chr(1955 - 1907) + '\x6f' + chr(808 - 758) + chr(0b110110) + chr(0b100101 + 0o15), 48913 - 48905), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + chr(0b110100) + '\064', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110000 + 0o7) + chr(1145 - 1095), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(695 - 644) + chr(48) + chr(0b110000 + 0o7), 24079 - 24071), ehT0Px3KOsy9('\060' + chr(2477 - 2366) + chr(0b1010 + 0o53) + chr(1343 - 1289), 0o10), ehT0Px3KOsy9(chr(1337 - 1289) + chr(111) + '\066' + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(8279 - 8168) + chr(0b101011 + 0o7) + chr(373 - 321) + '\065', 64226 - 64218), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b1010100 + 0o33) + chr(49) + chr(0b110000) + '\x30', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\066' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x32' + chr(494 - 442) + chr(326 - 274), 8), ehT0Px3KOsy9('\060' + chr(111) + chr(1371 - 1322) + '\x35' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100100 + 0o15) + chr(54) + chr(394 - 346), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10110 + 0o34) + chr(2214 - 2160), 8), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\x32' + chr(0b101001 + 0o10), 0b1000), ehT0Px3KOsy9('\060' + chr(2056 - 1945) + '\062' + chr(531 - 482) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(0b1101 + 0o44), 38330 - 38322), ehT0Px3KOsy9('\060' + chr(0b1011101 + 0o22) + chr(2539 - 2488) + chr(0b10001 + 0o45) + '\x30', 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b100000 + 0o22) + '\x34' + '\061', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(1625 - 1576) + chr(1938 - 1890), 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + '\x6f' + chr(1522 - 1471) + '\067' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\062' + chr(1663 - 1615) + chr(2212 - 2163), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b111 + 0o150) + '\062' + '\x30' + chr(48), 51252 - 51244), ehT0Px3KOsy9('\x30' + chr(0b1011001 + 0o26) + chr(588 - 539) + '\064' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(55) + chr(0b110000), 60134 - 60126), ehT0Px3KOsy9(chr(48) + chr(0b1010001 + 0o36) + chr(0b110001) + '\x32' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + chr(0b1 + 0o63) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(2408 - 2297) + chr(0b110010) + '\x31' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(111) + '\062' + '\064' + '\061', 8), ehT0Px3KOsy9(chr(48) + chr(6715 - 6604) + '\065' + '\067', 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x35' + chr(399 - 351), 2821 - 2813)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x96'), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b100001 + 0o103) + '\145')('\x75' + chr(116) + '\x66' + '\x2d' + chr(0b11110 + 0o32)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def vNjzr0cM_jre(oVre8I6UXc3b): assert xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\x97\x95rV\xe2\n\x1bxb$\xd7\xd7\x89'), chr(579 - 479) + '\x65' + chr(0b1100011) + chr(9507 - 9396) + '\144' + '\145')(chr(9701 - 9584) + '\164' + chr(0b1100110) + '\x2d' + '\070')) is None JJdbmGMP6Sq0 = [oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'\xca\x80\x94\x7fL'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b100101 + 0o112) + '\144' + chr(101))(chr(0b110010 + 0o103) + chr(12362 - 12246) + chr(0b10100 + 0o122) + '\055' + '\070'))] for WVxHKyX45z_L in vQr8gNKaIaWE(xafqLlk3kkUe(oVre8I6UXc3b._ray_params, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\x90\x9dIM\xf41\x13oY%\xda\xc5\x88\xa3]'), chr(0b1100100) + '\145' + chr(0b1111 + 0o124) + chr(0b1101111) + '\x64' + chr(2867 - 2766))(chr(0b1001 + 0o154) + chr(0b1110100) + chr(0b111011 + 0o53) + chr(311 - 266) + '\x38'))): xafqLlk3kkUe(JJdbmGMP6Sq0, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd9\x95\x80sQ\xf5'), chr(2114 - 2014) + '\x65' + chr(99) + chr(9052 - 8941) + chr(0b10011 + 0o121) + chr(0b11 + 0o142))(chr(0b10110 + 0o137) + chr(116) + '\146' + '\x2d' + chr(0b111000)))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\x80\x87IS\xfe2%zo:\xd7\xd7'), '\144' + '\x65' + chr(4728 - 4629) + '\157' + '\144' + '\x65')('\165' + '\x74' + chr(0b110101 + 0o61) + chr(0b100101 + 0o10) + chr(1894 - 1838)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xca\x80\x94\x7fL\xbc&\x12}t2\xed'), chr(9061 - 8961) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\144' + chr(101))(chr(0b1110101) + chr(7137 - 7021) + '\x66' + chr(45) + '\x38') + M8_cKLkHVB2V(WVxHKyX45z_L))) (oVre8I6UXc3b.K4mksG0wynwM, awqw65JN74AQ, wBcFGfGy0bfk) = H9zaXRrGK6Cq.services.start_redis(oVre8I6UXc3b._node_ip_address, JJdbmGMP6Sq0, port=oVre8I6UXc3b._ray_params.redis_port, redis_shard_ports=oVre8I6UXc3b._ray_params.redis_shard_ports, num_redis_shards=oVre8I6UXc3b._ray_params.num_redis_shards, redis_max_clients=oVre8I6UXc3b._ray_params.redis_max_clients, redirect_worker_output=ehT0Px3KOsy9(chr(0b1000 + 0o50) + '\157' + chr(0b110001), 0b1000), password=oVre8I6UXc3b._ray_params.redis_password, include_java=oVre8I6UXc3b._ray_params.include_java, redis_max_memory=oVre8I6UXc3b._ray_params.redis_max_memory) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe8\xb7\xbfUz\xc2\x06%H_\x06\xf7\xfb\xa8\x82jz\xf6\x1fd\xe1?&S\x03'), chr(0b1000101 + 0o37) + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + chr(101))(chr(117) + chr(116) + '\146' + chr(0b11100 + 0o21) + chr(2891 - 2835))) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd9\x89\x9cIO\xe3:\x19yu%\xd7\xd7'), '\144' + '\x65' + chr(99) + '\x6f' + chr(0b10010 + 0o122) + '\145')(chr(11069 - 10952) + chr(9596 - 9480) + chr(8275 - 8173) + '\x2d' + chr(0b111000 + 0o0))) oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.HfibTtUjqITL] = wBcFGfGy0bfk
ray-project/ray
python/ray/node.py
Node.start_log_monitor
def start_log_monitor(self): """Start the log monitor.""" stdout_file, stderr_file = self.new_log_files("log_monitor") process_info = ray.services.start_log_monitor( self.redis_address, self._logs_dir, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_LOG_MONITOR not in self.all_processes self.all_processes[ray_constants.PROCESS_TYPE_LOG_MONITOR] = [ process_info ]
python
def start_log_monitor(self): """Start the log monitor.""" stdout_file, stderr_file = self.new_log_files("log_monitor") process_info = ray.services.start_log_monitor( self.redis_address, self._logs_dir, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_LOG_MONITOR not in self.all_processes self.all_processes[ray_constants.PROCESS_TYPE_LOG_MONITOR] = [ process_info ]
[ "def", "start_log_monitor", "(", "self", ")", ":", "stdout_file", ",", "stderr_file", "=", "self", ".", "new_log_files", "(", "\"log_monitor\"", ")", "process_info", "=", "ray", ".", "services", ".", "start_log_monitor", "(", "self", ".", "redis_address", ",", "self", ".", "_logs_dir", ",", "stdout_file", "=", "stdout_file", ",", "stderr_file", "=", "stderr_file", ",", "redis_password", "=", "self", ".", "_ray_params", ".", "redis_password", ")", "assert", "ray_constants", ".", "PROCESS_TYPE_LOG_MONITOR", "not", "in", "self", ".", "all_processes", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_LOG_MONITOR", "]", "=", "[", "process_info", "]" ]
Start the log monitor.
[ "Start", "the", "log", "monitor", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L332-L344
train
Start the log monitor process.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHH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ssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(0b110101 + 0o0), 0o10), ehT0Px3KOsy9(chr(48) + chr(3058 - 2947) + chr(49) + chr(48) + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + chr(0b10010 + 0o44) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + '\065', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b101001 + 0o10) + chr(0b110100) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(10797 - 10686) + chr(0b10001 + 0o43) + chr(875 - 823), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(1755 - 1705) + '\x30' + chr(0b1000 + 0o54), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1176 - 1125) + '\x30' + chr(0b110100), 11215 - 11207), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + '\x32' + chr(1553 - 1504), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + chr(0b110010) + chr(0b110000 + 0o0) + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + chr(49) + '\x32', 0b1000), ehT0Px3KOsy9(chr(2255 - 2207) + chr(111) + chr(0b10100 + 0o35) + chr(0b1011 + 0o52) + chr(52), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1100011 + 0o14) + chr(51) + chr(2714 - 2660) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(0b1101111) + chr(0b110001) + chr(158 - 109) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(111) + chr(1969 - 1916) + chr(54), 0b1000), ehT0Px3KOsy9(chr(1692 - 1644) + '\x6f' + chr(0b110001) + chr(0b110111) + chr(0b110010), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b1110 + 0o44) + chr(0b110001) + '\062', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(52) + chr(325 - 270), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b110111 + 0o70) + '\065' + chr(54), 8), ehT0Px3KOsy9('\060' + chr(2605 - 2494) + '\066' + chr(0b101100 + 0o5), 0b1000), ehT0Px3KOsy9('\x30' + chr(2654 - 2543) + chr(0b1 + 0o62) + '\065' + chr(2262 - 2211), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + chr(0b110010) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(2021 - 1972) + chr(0b101110 + 0o5) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b1100 + 0o47) + chr(51) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + '\065' + chr(0b0 + 0o67), 8556 - 8548), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(111) + chr(0b110011) + chr(736 - 686) + '\x35', 37402 - 37394), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(7984 - 7873) + chr(0b110101) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101101 + 0o2) + '\062' + chr(1864 - 1816) + chr(0b110001), 42811 - 42803), ehT0Px3KOsy9(chr(48) + chr(10272 - 10161) + chr(50) + chr(0b110110) + '\062', 8), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(0b110011) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110011) + chr(52), 2184 - 2176), ehT0Px3KOsy9('\060' + '\157' + '\x37', 0b1000), ehT0Px3KOsy9(chr(1832 - 1784) + '\x6f' + chr(51) + chr(53) + chr(592 - 543), ord("\x08")), ehT0Px3KOsy9(chr(2198 - 2150) + '\157' + chr(51) + '\x34' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b110001 + 0o76) + chr(0b110011) + chr(852 - 801) + chr(1166 - 1117), 0o10), ehT0Px3KOsy9('\060' + chr(8371 - 8260) + '\x31' + '\x33' + chr(2471 - 2417), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110111) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + chr(943 - 892) + chr(0b1011 + 0o47) + chr(1603 - 1555), 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b100 + 0o153) + chr(51) + chr(0b110000) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(536 - 487) + chr(51) + chr(912 - 860), 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(2297 - 2186) + chr(0b110101) + chr(1090 - 1042), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'3'), chr(0b1101 + 0o127) + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(4109 - 4008))(chr(0b1101101 + 0o10) + '\164' + chr(102) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def PylDHES1GwOS(oVre8I6UXc3b): (WZTVw9fQgDbB, NMMSaVSm8wXc) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'q)\xd5B\x0eK\xea\xad\xa5\xed8'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(2855 - 2754))(chr(0b1010011 + 0o42) + chr(0b1010101 + 0o37) + '\x66' + chr(45) + chr(0b111000))) PjbNipqGDFj7 = H9zaXRrGK6Cq.services.start_log_monitor(oVre8I6UXc3b.redis_address, oVre8I6UXc3b._logs_dir, stdout_file=WZTVw9fQgDbB, stderr_file=NMMSaVSm8wXc, redis_password=oVre8I6UXc3b._ray_params.redis_password) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'M\x14\xfd^&w\xd7\x9b\x85\xdb\x1a)\xac\x07a=\xd5ja\x7f\xa2\x86\x16\x8f'), '\x64' + chr(3549 - 3448) + chr(4568 - 4469) + '\157' + '\x64' + '\x65')(chr(117) + chr(10125 - 10009) + chr(0b1100110) + chr(45) + '\070')) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'[)\x81*\x0ec\xe7\xa3\xa8\xb5\x1e\x06'), '\x64' + chr(0b10010 + 0o123) + '\143' + chr(0b1101111) + chr(3550 - 3450) + '\x65')(chr(0b1011101 + 0o30) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b1100 + 0o54))) oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.LkT3z5sKWNbo] = [PjbNipqGDFj7]
ray-project/ray
python/ray/node.py
Node.start_reporter
def start_reporter(self): """Start the reporter.""" stdout_file, stderr_file = self.new_log_files("reporter", True) process_info = ray.services.start_reporter( self.redis_address, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_REPORTER not in self.all_processes if process_info is not None: self.all_processes[ray_constants.PROCESS_TYPE_REPORTER] = [ process_info ]
python
def start_reporter(self): """Start the reporter.""" stdout_file, stderr_file = self.new_log_files("reporter", True) process_info = ray.services.start_reporter( self.redis_address, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_REPORTER not in self.all_processes if process_info is not None: self.all_processes[ray_constants.PROCESS_TYPE_REPORTER] = [ process_info ]
[ "def", "start_reporter", "(", "self", ")", ":", "stdout_file", ",", "stderr_file", "=", "self", ".", "new_log_files", "(", "\"reporter\"", ",", "True", ")", "process_info", "=", "ray", ".", "services", ".", "start_reporter", "(", "self", ".", "redis_address", ",", "stdout_file", "=", "stdout_file", ",", "stderr_file", "=", "stderr_file", ",", "redis_password", "=", "self", ".", "_ray_params", ".", "redis_password", ")", "assert", "ray_constants", ".", "PROCESS_TYPE_REPORTER", "not", "in", "self", ".", "all_processes", "if", "process_info", "is", "not", "None", ":", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_REPORTER", "]", "=", "[", "process_info", "]" ]
Start the reporter.
[ "Start", "the", "reporter", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L346-L358
train
Start the reporter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXj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Cn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + '\061' + chr(1946 - 1896), 59266 - 59258), ehT0Px3KOsy9(chr(48) + chr(111) + '\x33' + chr(55) + '\x34', 1346 - 1338), ehT0Px3KOsy9(chr(1567 - 1519) + '\x6f' + '\065' + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + chr(1149 - 1038) + chr(0b1001 + 0o52) + '\x30' + '\066', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + '\063', 33086 - 33078), ehT0Px3KOsy9('\060' + chr(8595 - 8484) + chr(50) + chr(52) + chr(0b110101), 5150 - 5142), ehT0Px3KOsy9('\060' + '\157' + '\064' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11890 - 11779) + chr(50) + '\065' + '\x36', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(0b10101 + 0o40) + chr(0b1110 + 0o46), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + chr(1004 - 956) + '\x32', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(266 - 213) + chr(1078 - 1026), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(54) + '\x36', 0o10), ehT0Px3KOsy9(chr(1387 - 1339) + '\x6f' + chr(49) + '\062' + '\062', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(1365 - 1316) + chr(0b110001 + 0o3) + chr(48), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b110101) + chr(53), 7347 - 7339), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110 + 0o57) + chr(0b1101 + 0o52), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b1001 + 0o51) + '\061' + chr(0b10011 + 0o43), 0o10), ehT0Px3KOsy9('\060' + chr(12017 - 11906) + chr(1842 - 1791) + '\x33', 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(0b110001) + chr(0b110110), 36699 - 36691), ehT0Px3KOsy9('\x30' + chr(216 - 105) + '\x33' + chr(51) + chr(0b1 + 0o62), 50293 - 50285), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1154 - 1103) + chr(51) + '\060', 20279 - 20271), ehT0Px3KOsy9(chr(1321 - 1273) + chr(111) + chr(50) + chr(2196 - 2144) + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + chr(0b10000 + 0o44), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + chr(48) + chr(0b110001), 64857 - 64849), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110100) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(1176 - 1128) + chr(0b1101111) + chr(49) + chr(2652 - 2600), 49514 - 49506), ehT0Px3KOsy9(chr(2150 - 2102) + chr(10263 - 10152) + chr(0b110010) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(557 - 509) + '\x6f' + '\061' + '\x30' + '\x33', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + chr(0b110000 + 0o1), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + chr(0b11001 + 0o33) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + chr(2483 - 2372) + chr(0b1010 + 0o47) + chr(0b10101 + 0o42) + chr(99 - 49), 0o10), ehT0Px3KOsy9(chr(1943 - 1895) + chr(2970 - 2859) + chr(2247 - 2197) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(770 - 722) + chr(0b1101 + 0o142) + chr(0b110100) + chr(0b11111 + 0o22), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110 + 0o53) + '\060' + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1011100 + 0o23) + chr(0b110011) + chr(0b110010) + chr(0b110011), 52100 - 52092), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110101) + '\x34', 8), ehT0Px3KOsy9(chr(1093 - 1045) + chr(3296 - 3185) + chr(0b11110 + 0o25) + '\067' + chr(0b110100), 8), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(111) + chr(824 - 774) + chr(0b110110) + '\063', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(765 - 711) + chr(0b110010), 42828 - 42820), ehT0Px3KOsy9('\x30' + chr(11298 - 11187) + chr(1187 - 1137) + chr(0b100101 + 0o17), 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1905 - 1852) + '\060', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'd'), chr(0b1010101 + 0o17) + chr(0b110011 + 0o62) + chr(0b1100011) + '\x6f' + chr(0b1010101 + 0o17) + chr(0b110010 + 0o63))(chr(117) + chr(0b1010110 + 0o36) + chr(0b1100110) + chr(0b10010 + 0o33) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def h48TnucdYE90(oVre8I6UXc3b): (WZTVw9fQgDbB, NMMSaVSm8wXc) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'8\x99Y\xa9i\xd1C\xdc'), chr(7153 - 7053) + chr(0b1100101) + chr(5189 - 5090) + '\157' + chr(0b1100100) + chr(101))('\x75' + chr(2462 - 2346) + '\x66' + '\055' + '\070'), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11101 + 0o24), 0o10)) PjbNipqGDFj7 = H9zaXRrGK6Cq.services.start_reporter(oVre8I6UXc3b.redis_address, stdout_file=WZTVw9fQgDbB, stderr_file=NMMSaVSm8wXc, redis_password=oVre8I6UXc3b._ray_params.redis_password) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1a\xaef\x85^\xf6u\xf1\xb8\xdb|\xb3\r2\xe8\x7f\xc1I\x9a\x9e\x8a'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\157' + chr(9683 - 9583) + chr(0b1001111 + 0o26))(chr(7889 - 7772) + chr(11378 - 11262) + '\x66' + chr(45) + chr(0b1001 + 0o57))) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x0c\x93\x1a\xf1v\xe2E\xc9\x95\xb5x\x9c'), chr(0b110010 + 0o62) + chr(9912 - 9811) + chr(0b110 + 0o135) + chr(2146 - 2035) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + chr(0b110 + 0o47) + chr(2549 - 2493))) if PjbNipqGDFj7 is not None: oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.qbXgizCkeUw4] = [PjbNipqGDFj7]
ray-project/ray
python/ray/node.py
Node.start_dashboard
def start_dashboard(self): """Start the dashboard.""" stdout_file, stderr_file = self.new_log_files("dashboard", True) self._webui_url, process_info = ray.services.start_dashboard( self.redis_address, self._temp_dir, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_DASHBOARD not in self.all_processes if process_info is not None: self.all_processes[ray_constants.PROCESS_TYPE_DASHBOARD] = [ process_info ] redis_client = self.create_redis_client() redis_client.hmset("webui", {"url": self._webui_url})
python
def start_dashboard(self): """Start the dashboard.""" stdout_file, stderr_file = self.new_log_files("dashboard", True) self._webui_url, process_info = ray.services.start_dashboard( self.redis_address, self._temp_dir, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_DASHBOARD not in self.all_processes if process_info is not None: self.all_processes[ray_constants.PROCESS_TYPE_DASHBOARD] = [ process_info ] redis_client = self.create_redis_client() redis_client.hmset("webui", {"url": self._webui_url})
[ "def", "start_dashboard", "(", "self", ")", ":", "stdout_file", ",", "stderr_file", "=", "self", ".", "new_log_files", "(", "\"dashboard\"", ",", "True", ")", "self", ".", "_webui_url", ",", "process_info", "=", "ray", ".", "services", ".", "start_dashboard", "(", "self", ".", "redis_address", ",", "self", ".", "_temp_dir", ",", "stdout_file", "=", "stdout_file", ",", "stderr_file", "=", "stderr_file", ",", "redis_password", "=", "self", ".", "_ray_params", ".", "redis_password", ")", "assert", "ray_constants", ".", "PROCESS_TYPE_DASHBOARD", "not", "in", "self", ".", "all_processes", "if", "process_info", "is", "not", "None", ":", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_DASHBOARD", "]", "=", "[", "process_info", "]", "redis_client", "=", "self", ".", "create_redis_client", "(", ")", "redis_client", ".", "hmset", "(", "\"webui\"", ",", "{", "\"url\"", ":", "self", ".", "_webui_url", "}", ")" ]
Start the dashboard.
[ "Start", "the", "dashboard", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L360-L375
train
Start the dashboard.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnb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,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\067', 0o10), ehT0Px3KOsy9(chr(1883 - 1835) + chr(0b1101111) + '\x31' + '\060' + chr(0b100000 + 0o23), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001001 + 0o46) + chr(49) + chr(831 - 782) + chr(55), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000001 + 0o56) + '\x32' + chr(637 - 587) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(0b1010010 + 0o35) + '\062' + '\060' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + '\060' + chr(51), 8), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1011010 + 0o25) + chr(0b110010 + 0o5), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b10111 + 0o130) + chr(0b1 + 0o61) + chr(0b110111), 4121 - 4113), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + chr(0b110 + 0o55) + '\x32', 22386 - 22378), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(50) + '\x34', 0b1000), ehT0Px3KOsy9(chr(2240 - 2192) + chr(1315 - 1204) + chr(0b1110 + 0o43) + '\065' + chr(88 - 38), 53531 - 53523), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + chr(2147 - 2097) + chr(0b10011 + 0o41) + '\x37', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b10011 + 0o134) + '\x32' + '\064' + chr(1420 - 1371), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + chr(55) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x33' + chr(51) + chr(55), 43258 - 43250), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100010 + 0o15) + chr(0b100111 + 0o12) + chr(0b110110) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + chr(0b11000 + 0o30) + chr(2132 - 2080), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1191 - 1141) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1389 - 1339) + '\x37' + '\062', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(921 - 871) + chr(2587 - 2536) + chr(0b110000), 50199 - 50191), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(0b101100 + 0o12) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(156 - 108) + '\x6f' + '\x32' + '\x35' + chr(1706 - 1654), 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(0b10111 + 0o32) + '\x37', 8), ehT0Px3KOsy9(chr(734 - 686) + '\157' + '\x31' + chr(0b110110) + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(0b100000 + 0o26) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1853 - 1802) + '\062' + chr(0b10100 + 0o36), 23568 - 23560), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110001) + '\x34', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10101 + 0o37), 0b1000), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\157' + '\061' + '\067' + chr(0b10101 + 0o42), 0o10), ehT0Px3KOsy9('\x30' + chr(4287 - 4176) + '\x32' + chr(0b101000 + 0o16) + '\067', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + chr(372 - 323), 48883 - 48875), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + '\062' + chr(0b1001 + 0o47), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001) + chr(49) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(625 - 571) + '\x31', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1101 + 0o50) + '\062', 55 - 47), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + chr(54) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110000 + 0o2) + chr(0b110010) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(2471 - 2360) + chr(0b110001 + 0o4) + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(732 - 684) + chr(49), 28056 - 28048)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\x6f' + chr(53) + chr(105 - 57), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'1'), chr(0b1100100) + chr(6846 - 6745) + chr(0b1100011) + chr(6559 - 6448) + chr(100) + chr(101))(chr(117) + '\164' + chr(0b1000001 + 0o45) + chr(0b101101) + chr(0b10110 + 0o42)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def lNMwOBW7U1T4(oVre8I6UXc3b): (WZTVw9fQgDbB, NMMSaVSm8wXc) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'{"<\xfa\xe1\xecfe\xfe'), chr(2567 - 2467) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(101))('\165' + '\x74' + chr(7531 - 7429) + chr(0b10 + 0o53) + chr(56)), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\157' + '\x31', 5660 - 5652)) (oVre8I6UXc3b.Dtc01cR8J9iH, PjbNipqGDFj7) = H9zaXRrGK6Cq.services.start_dashboard(oVre8I6UXc3b.redis_address, oVre8I6UXc3b._temp_dir, stdout_file=WZTVw9fQgDbB, stderr_file=NMMSaVSm8wXc, redis_password=oVre8I6UXc3b._ray_params.redis_password) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'O\x11\x00\xd1\xc6\xd0TH\xce\xcd:\xe2\xfe<\x9e!\x0cT\xf5\xd9\xe6\xe8'), '\x64' + chr(7164 - 7063) + chr(0b1011110 + 0o5) + chr(522 - 411) + chr(0b1010101 + 0o17) + '\145')('\165' + '\x74' + chr(0b1 + 0o145) + '\x2d' + '\070')) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'Y,|\xa5\xee\xc4dp\xe3\xa3>\xcd'), chr(0b101 + 0o137) + chr(0b11101 + 0o110) + chr(0b1100011) + '\x6f' + '\x64' + '\145')(chr(13480 - 13363) + chr(0b1110100) + chr(4066 - 3964) + chr(0b101101) + chr(2656 - 2600))) if PjbNipqGDFj7 is not None: oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.MmiUvUMkAYNL] = [PjbNipqGDFj7] znULerELFfBL = oVre8I6UXc3b.create_redis_client() xafqLlk3kkUe(znULerELFfBL, xafqLlk3kkUe(SXOLrMavuUCe(b'w.<\xf7\xf7'), chr(9229 - 9129) + chr(6973 - 6872) + chr(99) + chr(0b101100 + 0o103) + chr(0b1100100) + chr(0b10001 + 0o124))('\165' + '\164' + chr(0b1100110) + '\x2d' + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'h&-\xe7\xea'), chr(100) + chr(101) + '\143' + chr(111) + '\144' + chr(0b1000 + 0o135))(chr(117) + chr(0b1110100) + chr(1647 - 1545) + chr(45) + '\070'), {xafqLlk3kkUe(SXOLrMavuUCe(b'j1#'), '\x64' + '\145' + '\x63' + chr(111) + chr(8295 - 8195) + chr(0b101100 + 0o71))(chr(117) + chr(116) + '\146' + '\055' + chr(0b11 + 0o65)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'[7,\xa2\xb2\xe0U/\xd0\xad\x03\xef'), chr(0b100 + 0o140) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + '\x65')(chr(0b111110 + 0o67) + chr(0b1110010 + 0o2) + chr(3127 - 3025) + '\055' + '\070'))})
ray-project/ray
python/ray/node.py
Node.start_plasma_store
def start_plasma_store(self): """Start the plasma store.""" stdout_file, stderr_file = self.new_log_files("plasma_store") process_info = ray.services.start_plasma_store( stdout_file=stdout_file, stderr_file=stderr_file, object_store_memory=self._ray_params.object_store_memory, plasma_directory=self._ray_params.plasma_directory, huge_pages=self._ray_params.huge_pages, plasma_store_socket_name=self._plasma_store_socket_name) assert ( ray_constants.PROCESS_TYPE_PLASMA_STORE not in self.all_processes) self.all_processes[ray_constants.PROCESS_TYPE_PLASMA_STORE] = [ process_info ]
python
def start_plasma_store(self): """Start the plasma store.""" stdout_file, stderr_file = self.new_log_files("plasma_store") process_info = ray.services.start_plasma_store( stdout_file=stdout_file, stderr_file=stderr_file, object_store_memory=self._ray_params.object_store_memory, plasma_directory=self._ray_params.plasma_directory, huge_pages=self._ray_params.huge_pages, plasma_store_socket_name=self._plasma_store_socket_name) assert ( ray_constants.PROCESS_TYPE_PLASMA_STORE not in self.all_processes) self.all_processes[ray_constants.PROCESS_TYPE_PLASMA_STORE] = [ process_info ]
[ "def", "start_plasma_store", "(", "self", ")", ":", "stdout_file", ",", "stderr_file", "=", "self", ".", "new_log_files", "(", "\"plasma_store\"", ")", "process_info", "=", "ray", ".", "services", ".", "start_plasma_store", "(", "stdout_file", "=", "stdout_file", ",", "stderr_file", "=", "stderr_file", ",", "object_store_memory", "=", "self", ".", "_ray_params", ".", "object_store_memory", ",", "plasma_directory", "=", "self", ".", "_ray_params", ".", "plasma_directory", ",", "huge_pages", "=", "self", ".", "_ray_params", ".", "huge_pages", ",", "plasma_store_socket_name", "=", "self", ".", "_plasma_store_socket_name", ")", "assert", "(", "ray_constants", ".", "PROCESS_TYPE_PLASMA_STORE", "not", "in", "self", ".", "all_processes", ")", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_PLASMA_STORE", "]", "=", "[", "process_info", "]" ]
Start the plasma store.
[ "Start", "the", "plasma", "store", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L377-L391
train
Start the plasma store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,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9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2292 - 2244) + '\x6f' + chr(362 - 311) + chr(430 - 375) + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + '\x37' + chr(0b1010 + 0o50), 15140 - 15132), ehT0Px3KOsy9('\060' + chr(111) + chr(0b1010 + 0o50) + chr(0b110001) + chr(1627 - 1579), 0o10), ehT0Px3KOsy9('\060' + chr(11145 - 11034) + chr(950 - 896) + chr(48), 45153 - 45145), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + '\067' + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(4037 - 3926) + chr(0b1101 + 0o45), 55536 - 55528), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(0b110010) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1001001 + 0o46) + '\062' + chr(0b110011) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(9556 - 9445) + '\062' + chr(0b110000) + '\x37', 0o10), ehT0Px3KOsy9('\060' + chr(6008 - 5897) + chr(0b110010) + chr(0b1100 + 0o46) + chr(50), 0b1000), ehT0Px3KOsy9(chr(2242 - 2194) + '\157' + chr(49) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1101111) + chr(927 - 876) + chr(0b10011 + 0o44) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2373 - 2323) + chr(0b110100) + chr(1719 - 1670), 0o10), ehT0Px3KOsy9('\060' + chr(7838 - 7727) + chr(0b110011) + chr(52) + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + chr(2434 - 2323) + chr(1055 - 1004) + chr(0b100011 + 0o15) + chr(1545 - 1494), 48691 - 48683), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(54) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100011 + 0o20) + '\x37' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b100011 + 0o17) + chr(0b110111) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(666 - 617) + chr(0b110100) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\062' + '\x36' + chr(1738 - 1687), 62169 - 62161), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(205 - 154) + chr(52) + chr(2236 - 2187), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + '\066' + '\x37', 0b1000), ehT0Px3KOsy9(chr(578 - 530) + chr(2071 - 1960) + chr(0b110001) + chr(50) + '\x37', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(1270 - 1221) + chr(49) + chr(0b100101 + 0o14), 0b1000), ehT0Px3KOsy9(chr(1592 - 1544) + '\157' + chr(1122 - 1073) + chr(1898 - 1846) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(3586 - 3475) + chr(0b110011) + '\x36' + '\x37', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + '\x31' + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\061' + '\062' + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(1061 - 1013) + chr(0b11 + 0o154) + '\063', 0b1000), ehT0Px3KOsy9(chr(491 - 443) + '\x6f' + '\061' + chr(55) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49), 52039 - 52031), ehT0Px3KOsy9(chr(48) + chr(0b111100 + 0o63) + chr(0b110010) + chr(0b110111) + '\x37', 16871 - 16863), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\x6f' + '\063' + chr(0b11101 + 0o23) + '\x32', 0b1000), ehT0Px3KOsy9(chr(1412 - 1364) + '\x6f' + chr(0b101101 + 0o6) + chr(49) + chr(49), 15437 - 15429), ehT0Px3KOsy9(chr(1737 - 1689) + chr(0b101010 + 0o105) + chr(0b10111 + 0o32) + chr(0b110000) + chr(0b101 + 0o57), 0b1000), ehT0Px3KOsy9(chr(1156 - 1108) + '\157' + '\063' + chr(157 - 102) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\x6f' + chr(1659 - 1610) + chr(0b0 + 0o61) + '\060', 0b1000), ehT0Px3KOsy9(chr(933 - 885) + chr(10369 - 10258) + chr(51) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\x6f' + chr(50) + chr(55) + chr(0b110101), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(52) + '\065', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\157' + '\x35' + chr(48), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3'), chr(0b111110 + 0o46) + chr(101) + '\143' + chr(0b1101111) + '\x64' + chr(597 - 496))(chr(13655 - 13538) + chr(0b1101101 + 0o7) + chr(5794 - 5692) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def JUmP0HGgF6St(oVre8I6UXc3b): (WZTVw9fQgDbB, NMMSaVSm8wXc) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'\x8d\x16\xe9C\x17c\x8d\xe8\xf3\xfd\x7f\x9d'), '\x64' + '\145' + chr(0b1100011) + '\x6f' + chr(100) + chr(101))(chr(4184 - 4067) + chr(0b1110100) + chr(5053 - 4951) + chr(1875 - 1830) + chr(2580 - 2524))) PjbNipqGDFj7 = H9zaXRrGK6Cq.services.start_plasma_store(stdout_file=WZTVw9fQgDbB, stderr_file=NMMSaVSm8wXc, object_store_memory=oVre8I6UXc3b._ray_params.object_store_memory, plasma_directory=oVre8I6UXc3b._ray_params.plasma_directory, huge_pages=oVre8I6UXc3b._ray_params.huge_pages, plasma_store_socket_name=oVre8I6UXc3b._plasma_store_socket_name) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xad(\xc7s?Q\x81\xc4\xd3\xcb]\xbd\xfe\xb6\x8f\xf5\xa9\xf1%\xec\xb2\xe3\x18\x1b#'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\144' + '\x65')(chr(117) + chr(6172 - 6056) + '\146' + chr(1145 - 1100) + '\070')) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb\x15\xbb\x07\x17E\xb1\xfc\xfe\xa5Y\x92'), chr(5267 - 5167) + chr(9358 - 9257) + chr(0b1100011) + chr(0b1011011 + 0o24) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(9418 - 9316) + chr(0b10000 + 0o35) + chr(56))) oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.HpfGVGQdVUVN] = [PjbNipqGDFj7]
ray-project/ray
python/ray/node.py
Node.start_raylet
def start_raylet(self, use_valgrind=False, use_profiler=False): """Start the raylet. Args: use_valgrind (bool): True if we should start the process in valgrind. use_profiler (bool): True if we should start the process in the valgrind profiler. """ stdout_file, stderr_file = self.new_log_files("raylet") process_info = ray.services.start_raylet( self._redis_address, self._node_ip_address, self._raylet_socket_name, self._plasma_store_socket_name, self._ray_params.worker_path, self._temp_dir, self._ray_params.num_cpus, self._ray_params.num_gpus, self._ray_params.resources, self._ray_params.object_manager_port, self._ray_params.node_manager_port, self._ray_params.redis_password, use_valgrind=use_valgrind, use_profiler=use_profiler, stdout_file=stdout_file, stderr_file=stderr_file, config=self._config, include_java=self._ray_params.include_java, java_worker_options=self._ray_params.java_worker_options, load_code_from_local=self._ray_params.load_code_from_local, ) assert ray_constants.PROCESS_TYPE_RAYLET not in self.all_processes self.all_processes[ray_constants.PROCESS_TYPE_RAYLET] = [process_info]
python
def start_raylet(self, use_valgrind=False, use_profiler=False): """Start the raylet. Args: use_valgrind (bool): True if we should start the process in valgrind. use_profiler (bool): True if we should start the process in the valgrind profiler. """ stdout_file, stderr_file = self.new_log_files("raylet") process_info = ray.services.start_raylet( self._redis_address, self._node_ip_address, self._raylet_socket_name, self._plasma_store_socket_name, self._ray_params.worker_path, self._temp_dir, self._ray_params.num_cpus, self._ray_params.num_gpus, self._ray_params.resources, self._ray_params.object_manager_port, self._ray_params.node_manager_port, self._ray_params.redis_password, use_valgrind=use_valgrind, use_profiler=use_profiler, stdout_file=stdout_file, stderr_file=stderr_file, config=self._config, include_java=self._ray_params.include_java, java_worker_options=self._ray_params.java_worker_options, load_code_from_local=self._ray_params.load_code_from_local, ) assert ray_constants.PROCESS_TYPE_RAYLET not in self.all_processes self.all_processes[ray_constants.PROCESS_TYPE_RAYLET] = [process_info]
[ "def", "start_raylet", "(", "self", ",", "use_valgrind", "=", "False", ",", "use_profiler", "=", "False", ")", ":", "stdout_file", ",", "stderr_file", "=", "self", ".", "new_log_files", "(", "\"raylet\"", ")", "process_info", "=", "ray", ".", "services", ".", "start_raylet", "(", "self", ".", "_redis_address", ",", "self", ".", "_node_ip_address", ",", "self", ".", "_raylet_socket_name", ",", "self", ".", "_plasma_store_socket_name", ",", "self", ".", "_ray_params", ".", "worker_path", ",", "self", ".", "_temp_dir", ",", "self", ".", "_ray_params", ".", "num_cpus", ",", "self", ".", "_ray_params", ".", "num_gpus", ",", "self", ".", "_ray_params", ".", "resources", ",", "self", ".", "_ray_params", ".", "object_manager_port", ",", "self", ".", "_ray_params", ".", "node_manager_port", ",", "self", ".", "_ray_params", ".", "redis_password", ",", "use_valgrind", "=", "use_valgrind", ",", "use_profiler", "=", "use_profiler", ",", "stdout_file", "=", "stdout_file", ",", "stderr_file", "=", "stderr_file", ",", "config", "=", "self", ".", "_config", ",", "include_java", "=", "self", ".", "_ray_params", ".", "include_java", ",", "java_worker_options", "=", "self", ".", "_ray_params", ".", "java_worker_options", ",", "load_code_from_local", "=", "self", ".", "_ray_params", ".", "load_code_from_local", ",", ")", "assert", "ray_constants", ".", "PROCESS_TYPE_RAYLET", "not", "in", "self", ".", "all_processes", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_RAYLET", "]", "=", "[", "process_info", "]" ]
Start the raylet. Args: use_valgrind (bool): True if we should start the process in valgrind. use_profiler (bool): True if we should start the process in the valgrind profiler.
[ "Start", "the", "raylet", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L393-L426
train
Start the raylet.
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Wp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1423 - 1375) + chr(0b1011000 + 0o27) + chr(0b110100) + chr(0b100000 + 0o26), 0b1000), ehT0Px3KOsy9(chr(677 - 629) + chr(0b1101111) + '\062' + chr(0b0 + 0o65) + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(9339 - 9228) + '\066' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(1381 - 1333) + '\157' + chr(0b1101 + 0o45) + chr(0b100001 + 0o25) + chr(1614 - 1564), 0b1000), ehT0Px3KOsy9('\x30' + chr(8402 - 8291) + chr(49) + '\062' + chr(1122 - 1073), 0b1000), ehT0Px3KOsy9(chr(0b1101 + 0o43) + '\157' + chr(489 - 440) + chr(0b0 + 0o63) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b111 + 0o53) + chr(714 - 662) + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101011 + 0o4) + '\x31' + chr(1123 - 1072) + chr(1683 - 1631), 18334 - 18326), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(2960 - 2849) + chr(0b111 + 0o52) + chr(0b1001 + 0o55) + '\x35', 0o10), ehT0Px3KOsy9(chr(710 - 662) + chr(111) + chr(638 - 589) + chr(50), 54609 - 54601), ehT0Px3KOsy9(chr(0b110000) + chr(11223 - 11112) + chr(49) + '\065' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + chr(55) + '\061', 19961 - 19953), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + chr(0b110101) + '\061', 8), ehT0Px3KOsy9(chr(1313 - 1265) + chr(0b111111 + 0o60) + '\066' + chr(0b110001), 33358 - 33350), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10 + 0o57) + '\061' + chr(0b100010 + 0o24), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1743 - 1692) + chr(691 - 636) + '\x34', 42691 - 42683), ehT0Px3KOsy9(chr(2079 - 2031) + '\157' + chr(50) + '\x36' + chr(0b100 + 0o63), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + chr(2670 - 2618) + chr(53), 0o10), ehT0Px3KOsy9('\x30' + chr(1193 - 1082) + '\x33' + chr(52) + chr(0b11111 + 0o22), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(0b110011) + '\x32', 43783 - 43775), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b100100 + 0o15) + '\060' + chr(51), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(0b110000) + chr(0b10001 + 0o46), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(0b1110 + 0o47) + '\x34', 0o10), ehT0Px3KOsy9(chr(1099 - 1051) + '\157' + '\062' + chr(0b1110 + 0o45) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b1101111) + chr(49) + chr(0b110100) + '\065', 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + chr(613 - 558) + chr(49), 63132 - 63124), ehT0Px3KOsy9(chr(0b110000) + chr(5964 - 5853) + chr(49) + chr(2204 - 2152) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + '\061' + chr(0b101010 + 0o15) + '\066', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + '\065' + chr(0b100010 + 0o16), 24969 - 24961), ehT0Px3KOsy9(chr(2211 - 2163) + '\x6f' + '\x31' + chr(0b110001) + chr(0b10011 + 0o42), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b100000 + 0o25), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(111) + '\x32' + chr(48) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111 - 0) + chr(0b110000 + 0o2) + '\x36' + chr(51), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001110 + 0o41) + '\x32' + chr(54) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(1054 - 1006) + '\157' + chr(1325 - 1274) + chr(51) + chr(55), 9526 - 9518), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b11111 + 0o120) + chr(72 - 22) + chr(0b100001 + 0o21) + '\065', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b1010 + 0o51), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + chr(0b110011) + '\x33', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(1687 - 1638) + chr(0b100010 + 0o22) + chr(1736 - 1688), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110110) + chr(1045 - 993), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1101111) + '\065' + '\x30', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x08'), chr(1745 - 1645) + chr(101) + '\143' + chr(0b1101111) + '\x64' + '\x65')(chr(9087 - 8970) + '\x74' + chr(0b1100110) + chr(0b10110 + 0o27) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def y8HS4ZtNBYty(oVre8I6UXc3b, ZKTxvFggi5rV=ehT0Px3KOsy9(chr(1571 - 1523) + chr(0b11001 + 0o126) + chr(0b110000), 0o10), QiXLVdgM7HSr=ehT0Px3KOsy9('\060' + chr(11398 - 11287) + '\x30', 8)): (WZTVw9fQgDbB, NMMSaVSm8wXc) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'T\xcfI\xde4)'), chr(2487 - 2387) + chr(101) + '\x63' + '\157' + chr(0b1100100) + chr(0b101111 + 0o66))('\165' + '\x74' + chr(102) + '\x2d' + chr(0b11100 + 0o34))) PjbNipqGDFj7 = H9zaXRrGK6Cq.services.start_raylet(oVre8I6UXc3b.K4mksG0wynwM, oVre8I6UXc3b._node_ip_address, oVre8I6UXc3b._raylet_socket_name, oVre8I6UXc3b._plasma_store_socket_name, oVre8I6UXc3b._ray_params.worker_path, oVre8I6UXc3b._temp_dir, oVre8I6UXc3b._ray_params.num_cpus, oVre8I6UXc3b._ray_params.num_gpus, oVre8I6UXc3b._ray_params.z4Xs9XhDbg00, oVre8I6UXc3b._ray_params.object_manager_port, oVre8I6UXc3b._ray_params.node_manager_port, oVre8I6UXc3b._ray_params.redis_password, use_valgrind=ZKTxvFggi5rV, use_profiler=QiXLVdgM7HSr, stdout_file=WZTVw9fQgDbB, stderr_file=NMMSaVSm8wXc, config=oVre8I6UXc3b._config, include_java=oVre8I6UXc3b._ray_params.include_java, java_worker_options=oVre8I6UXc3b._ray_params.java_worker_options, load_code_from_local=oVre8I6UXc3b._ray_params.load_code_from_local) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'v\xfc\x7f\xf1\x14\x0e\xf7\x03!S9<6c\x0f\xa5\xfb \xb5'), chr(100) + '\145' + chr(0b1011001 + 0o12) + '\x6f' + '\x64' + '\145')(chr(0b1110011 + 0o2) + chr(11513 - 11397) + chr(0b1100110) + chr(45) + '\x38')) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'`\xc1\x03\x85<\x1a\xc7;\x0c==\x13'), chr(0b1100100) + chr(5607 - 5506) + chr(0b1100011) + '\x6f' + chr(100) + '\x65')(chr(1598 - 1481) + chr(0b1000000 + 0o64) + '\146' + chr(0b1010 + 0o43) + chr(56))) oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.DGi3aDV405xZ] = [PjbNipqGDFj7]
ray-project/ray
python/ray/node.py
Node.new_worker_redirected_log_file
def new_worker_redirected_log_file(self, worker_id): """Create new logging files for workers to redirect its output.""" worker_stdout_file, worker_stderr_file = (self.new_log_files( "worker-" + ray.utils.binary_to_hex(worker_id), True)) return worker_stdout_file, worker_stderr_file
python
def new_worker_redirected_log_file(self, worker_id): """Create new logging files for workers to redirect its output.""" worker_stdout_file, worker_stderr_file = (self.new_log_files( "worker-" + ray.utils.binary_to_hex(worker_id), True)) return worker_stdout_file, worker_stderr_file
[ "def", "new_worker_redirected_log_file", "(", "self", ",", "worker_id", ")", ":", "worker_stdout_file", ",", "worker_stderr_file", "=", "(", "self", ".", "new_log_files", "(", "\"worker-\"", "+", "ray", ".", "utils", ".", "binary_to_hex", "(", "worker_id", ")", ",", "True", ")", ")", "return", "worker_stdout_file", ",", "worker_stderr_file" ]
Create new logging files for workers to redirect its output.
[ "Create", "new", "logging", "files", "for", "workers", "to", "redirect", "its", "output", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L428-L432
train
Create new logging files for workers to redirect its output.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC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f,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(0b110110) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b101100 + 0o5) + chr(0b10001 + 0o45) + chr(0b10011 + 0o43), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b11000 + 0o127) + chr(0b10101 + 0o35) + chr(1062 - 1008) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(11163 - 11052) + chr(49) + chr(0b110111) + '\x32', 37668 - 37660), ehT0Px3KOsy9(chr(729 - 681) + chr(9604 - 9493) + chr(50) + '\x32' + chr(55), 3828 - 3820), ehT0Px3KOsy9('\x30' + chr(0b1101100 + 0o3) + chr(0b10 + 0o60) + chr(48) + '\x32', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(2117 - 2066) + chr(0b100011 + 0o15) + chr(1540 - 1490), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + chr(51) + chr(1399 - 1347), 0b1000), ehT0Px3KOsy9('\060' + chr(0b10000 + 0o137) + '\x33' + chr(0b11011 + 0o33) + chr(2286 - 2236), 0o10), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + '\x33' + chr(2177 - 2129) + chr(49), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(622 - 571), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110110) + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1010001 + 0o36) + '\x33' + chr(0b10111 + 0o37) + chr(52), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1011000 + 0o27) + chr(319 - 268) + chr(0b101010 + 0o13) + '\x34', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + chr(0b10 + 0o63) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + chr(2275 - 2164) + '\x33' + '\062' + chr(225 - 177), 26790 - 26782), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + '\x34' + '\064', 3720 - 3712), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(111) + '\x33' + chr(0b110011) + chr(242 - 188), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x32' + chr(1228 - 1180) + '\x34', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(9932 - 9821) + chr(51) + chr(1440 - 1391) + '\x31', 18361 - 18353), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(0b110101) + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(55), 0b1000), ehT0Px3KOsy9('\060' + chr(0b111100 + 0o63) + chr(282 - 233) + chr(53) + chr(1110 - 1058), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b101001 + 0o106) + '\061' + '\066' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(994 - 946) + chr(0b1101111) + '\x33' + chr(2304 - 2252) + '\x34', 8), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1101111) + '\061' + chr(0b11111 + 0o27) + '\066', 8), ehT0Px3KOsy9(chr(0b110000) + chr(2005 - 1894) + chr(2398 - 2349) + chr(0b11110 + 0o22) + chr(0b110101 + 0o1), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b100111 + 0o110) + chr(0b110010 + 0o0) + chr(0b110110) + chr(0b110000), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110000 + 0o2) + '\067' + chr(102 - 54), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(111) + '\x31' + chr(0b101101 + 0o12) + '\062', 8), ehT0Px3KOsy9('\060' + chr(8133 - 8022) + '\067' + chr(0b10111 + 0o31), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101 + 0o142) + '\062' + '\x30', 26050 - 26042), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + chr(49) + chr(49), 0b1000), ehT0Px3KOsy9('\060' + chr(0b111011 + 0o64) + chr(1353 - 1304) + chr(0b110111) + chr(1544 - 1495), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(185 - 137) + chr(0b110100), 8), ehT0Px3KOsy9('\060' + chr(0b1011001 + 0o26) + chr(50) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10011 + 0o41) + chr(515 - 462), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10111 + 0o32) + '\061' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(5724 - 5613) + chr(1546 - 1496) + chr(0b110100) + chr(1645 - 1592), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(447 - 399) + chr(0b1000111 + 0o50) + chr(53) + chr(1346 - 1298), 36091 - 36083)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x9c'), '\144' + chr(0b111011 + 0o52) + chr(99) + chr(0b1001010 + 0o45) + '\x64' + '\x65')(chr(117) + chr(116) + chr(0b1011000 + 0o16) + chr(0b100111 + 0o6) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def gLGtkhW4JYBT(oVre8I6UXc3b, LPBkMz6QzyaB): (tPmrEXjiuo2F, s8vAPlHzFcdg) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'\xc5\x19\xc2\x11\xf2\xf0\xef'), chr(0b1100010 + 0o2) + chr(0b1100101) + chr(99) + chr(0b100001 + 0o116) + chr(0b1011 + 0o131) + chr(0b1011110 + 0o7))(chr(9102 - 8985) + '\164' + chr(0b1100110) + '\x2d' + chr(2923 - 2867)) + H9zaXRrGK6Cq.utils.binary_to_hex(LPBkMz6QzyaB), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\157' + '\061', 0o10)) return (tPmrEXjiuo2F, s8vAPlHzFcdg)
ray-project/ray
python/ray/node.py
Node.start_monitor
def start_monitor(self): """Start the monitor.""" stdout_file, stderr_file = self.new_log_files("monitor") process_info = ray.services.start_monitor( self._redis_address, stdout_file=stdout_file, stderr_file=stderr_file, autoscaling_config=self._ray_params.autoscaling_config, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_MONITOR not in self.all_processes self.all_processes[ray_constants.PROCESS_TYPE_MONITOR] = [process_info]
python
def start_monitor(self): """Start the monitor.""" stdout_file, stderr_file = self.new_log_files("monitor") process_info = ray.services.start_monitor( self._redis_address, stdout_file=stdout_file, stderr_file=stderr_file, autoscaling_config=self._ray_params.autoscaling_config, redis_password=self._ray_params.redis_password) assert ray_constants.PROCESS_TYPE_MONITOR not in self.all_processes self.all_processes[ray_constants.PROCESS_TYPE_MONITOR] = [process_info]
[ "def", "start_monitor", "(", "self", ")", ":", "stdout_file", ",", "stderr_file", "=", "self", ".", "new_log_files", "(", "\"monitor\"", ")", "process_info", "=", "ray", ".", "services", ".", "start_monitor", "(", "self", ".", "_redis_address", ",", "stdout_file", "=", "stdout_file", ",", "stderr_file", "=", "stderr_file", ",", "autoscaling_config", "=", "self", ".", "_ray_params", ".", "autoscaling_config", ",", "redis_password", "=", "self", ".", "_ray_params", ".", "redis_password", ")", "assert", "ray_constants", ".", "PROCESS_TYPE_MONITOR", "not", "in", "self", ".", "all_processes", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_MONITOR", "]", "=", "[", "process_info", "]" ]
Start the monitor.
[ "Start", "the", "monitor", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L438-L448
train
Start the monitor.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,ko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Z6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(7094 - 6983) + chr(1807 - 1758) + '\062' + chr(1336 - 1287), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(51), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(9129 - 9018) + chr(51) + '\x33' + chr(50), 0o10), ehT0Px3KOsy9(chr(1187 - 1139) + chr(0b1101111) + '\x33' + chr(49) + '\x36', 62427 - 62419), ehT0Px3KOsy9('\060' + chr(4878 - 4767) + '\062' + '\x30' + '\060', 9574 - 9566), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(8234 - 8123) + chr(0b100101 + 0o14) + chr(0b110100) + '\x34', 0b1000), ehT0Px3KOsy9(chr(316 - 268) + '\157' + '\063' + chr(0b110000) + chr(51), 50894 - 50886), ehT0Px3KOsy9('\060' + '\157' + chr(138 - 88) + '\x36' + chr(892 - 841), ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + chr(0b1 + 0o60) + '\061' + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(0b111001 + 0o66) + chr(1174 - 1123) + chr(0b110101) + chr(0b1 + 0o63), ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(111) + chr(0b10001 + 0o46) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110101) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(0b1000 + 0o50) + chr(775 - 726), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(54) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1864 - 1814) + chr(0b110110) + '\067', 20186 - 20178), ehT0Px3KOsy9(chr(567 - 519) + chr(111) + chr(51) + chr(0b100100 + 0o14) + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + chr(4722 - 4611) + chr(0b1101 + 0o46) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + '\061' + chr(0b110100), 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + chr(0b11010 + 0o31) + chr(53), 52801 - 52793), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(0b1011 + 0o47) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + '\x37' + chr(0b100 + 0o56), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b11010 + 0o125) + '\x31' + chr(0b100010 + 0o22) + chr(399 - 349), 0b1000), ehT0Px3KOsy9(chr(1897 - 1849) + '\x6f' + chr(0b110001) + chr(0b100011 + 0o15) + chr(54), 21821 - 21813), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(1575 - 1464) + '\063' + chr(0b110111) + '\x33', 25251 - 25243), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(0b110110) + chr(131 - 77), 0o10), ehT0Px3KOsy9(chr(599 - 551) + chr(0b1101111) + '\062' + chr(52) + chr(0b110101), 27145 - 27137), ehT0Px3KOsy9(chr(619 - 571) + '\x6f' + chr(0b100101 + 0o15) + '\064' + '\x36', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1945 - 1894) + chr(0b1010 + 0o54) + '\067', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\x31' + chr(0b110100) + chr(1075 - 1027), 0b1000), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(7028 - 6917) + chr(0b110010) + '\064', 0o10), ehT0Px3KOsy9(chr(1856 - 1808) + chr(0b1101111) + chr(0b110010) + '\062' + chr(0b10010 + 0o44), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\062' + '\x37', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1111 + 0o42) + chr(55) + chr(0b110010), 33232 - 33224), ehT0Px3KOsy9(chr(1655 - 1607) + chr(111) + '\x37', 61472 - 61464), ehT0Px3KOsy9(chr(48) + '\157' + '\x35' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(2488 - 2438) + '\x35' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x36' + '\060', 0b1000), ehT0Px3KOsy9(chr(73 - 25) + chr(111) + chr(0b110001) + chr(1535 - 1485) + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + chr(53) + chr(49), 0b1000), ehT0Px3KOsy9(chr(1023 - 975) + chr(0b1001101 + 0o42) + '\x31' + chr(51), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\157' + '\x35' + chr(0b101000 + 0o10), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x7f'), '\144' + '\x65' + chr(99) + '\157' + chr(100) + chr(101))(chr(7627 - 7510) + chr(0b1101010 + 0o12) + chr(0b110101 + 0o61) + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def owLS2fmrKuNp(oVre8I6UXc3b): (WZTVw9fQgDbB, NMMSaVSm8wXc) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'<t\xb4\xa7\xf4\x0b\xb1'), chr(1828 - 1728) + chr(101) + chr(2682 - 2583) + chr(0b1010100 + 0o33) + chr(0b1100100) + chr(9380 - 9279))(chr(5985 - 5868) + chr(0b1110100) + '\146' + chr(0b101101) + '\070')) PjbNipqGDFj7 = H9zaXRrGK6Cq.services.start_monitor(oVre8I6UXc3b.K4mksG0wynwM, stdout_file=WZTVw9fQgDbB, stderr_file=NMMSaVSm8wXc, autoscaling_config=oVre8I6UXc3b._ray_params.autoscaling_config, redis_password=oVre8I6UXc3b._ray_params.redis_password) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\x01I\x95\x8d\xc57\x90\xec\x18\xb5j\xef\x1e~\xf8\x88T\x18\x92\x00'), chr(100) + chr(101) + chr(5703 - 5604) + chr(111) + '\x64' + '\145')(chr(0b1110101) + chr(5384 - 5268) + '\x66' + chr(1360 - 1315) + chr(429 - 373))) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x17t\xe9\xf9\xed#\xa0\xd45\xdbn\xc0'), '\144' + chr(101) + '\143' + chr(10536 - 10425) + chr(0b1100100) + chr(2084 - 1983))(chr(0b1110101) + '\x74' + chr(0b101101 + 0o71) + chr(45) + '\x38')) oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.ShjKftiZ33Qz] = [PjbNipqGDFj7]
ray-project/ray
python/ray/node.py
Node.start_raylet_monitor
def start_raylet_monitor(self): """Start the raylet monitor.""" stdout_file, stderr_file = self.new_log_files("raylet_monitor") process_info = ray.services.start_raylet_monitor( self._redis_address, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password, config=self._config) assert (ray_constants.PROCESS_TYPE_RAYLET_MONITOR not in self.all_processes) self.all_processes[ray_constants.PROCESS_TYPE_RAYLET_MONITOR] = [ process_info ]
python
def start_raylet_monitor(self): """Start the raylet monitor.""" stdout_file, stderr_file = self.new_log_files("raylet_monitor") process_info = ray.services.start_raylet_monitor( self._redis_address, stdout_file=stdout_file, stderr_file=stderr_file, redis_password=self._ray_params.redis_password, config=self._config) assert (ray_constants.PROCESS_TYPE_RAYLET_MONITOR not in self.all_processes) self.all_processes[ray_constants.PROCESS_TYPE_RAYLET_MONITOR] = [ process_info ]
[ "def", "start_raylet_monitor", "(", "self", ")", ":", "stdout_file", ",", "stderr_file", "=", "self", ".", "new_log_files", "(", "\"raylet_monitor\"", ")", "process_info", "=", "ray", ".", "services", ".", "start_raylet_monitor", "(", "self", ".", "_redis_address", ",", "stdout_file", "=", "stdout_file", ",", "stderr_file", "=", "stderr_file", ",", "redis_password", "=", "self", ".", "_ray_params", ".", "redis_password", ",", "config", "=", "self", ".", "_config", ")", "assert", "(", "ray_constants", ".", "PROCESS_TYPE_RAYLET_MONITOR", "not", "in", "self", ".", "all_processes", ")", "self", ".", "all_processes", "[", "ray_constants", ".", "PROCESS_TYPE_RAYLET_MONITOR", "]", "=", "[", "process_info", "]" ]
Start the raylet monitor.
[ "Start", "the", "raylet", "monitor", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L450-L463
train
Start the raylet monitor.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CS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EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(335 - 284) + chr(53) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b1101111) + chr(54) + chr(0b101011 + 0o7), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1998 - 1947) + '\060' + '\x35', 13581 - 13573), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b100111 + 0o14) + chr(0b1100 + 0o51) + chr(0b110000 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(702 - 654) + chr(0b1101111) + chr(0b1001 + 0o53) + '\x33', 53545 - 53537), ehT0Px3KOsy9(chr(181 - 133) + '\157' + chr(0b110011) + chr(52) + '\x30', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + chr(1392 - 1338) + chr(0b101000 + 0o13), ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\x6f' + '\x32' + chr(0b110000) + '\067', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101010 + 0o7) + '\064' + chr(330 - 277), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b100 + 0o55) + chr(746 - 691) + chr(447 - 394), 0o10), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\x6f' + chr(0b110011) + '\060' + chr(0b110100), 33630 - 33622), ehT0Px3KOsy9('\x30' + chr(9791 - 9680) + chr(0b110010) + chr(0b10111 + 0o34) + '\063', 24633 - 24625), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(49) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + '\x34', 39165 - 39157), ehT0Px3KOsy9(chr(2024 - 1976) + '\157' + '\x32' + chr(0b100000 + 0o21), 24692 - 24684), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1503 - 1453) + chr(51) + '\x37', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100001 + 0o20) + chr(0b11111 + 0o30) + chr(61 - 12), ord("\x08")), ehT0Px3KOsy9(chr(1144 - 1096) + chr(0b1101111) + chr(0b110011) + chr(0b110110) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(9229 - 9118) + chr(0b110011) + chr(0b110011) + chr(1182 - 1132), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\061' + chr(0b110011), 25890 - 25882), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(111) + chr(50) + '\065' + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\x6f' + '\x33' + chr(0b101101 + 0o11) + chr(2027 - 1976), 8), ehT0Px3KOsy9(chr(2031 - 1983) + chr(0b1001000 + 0o47) + chr(49) + chr(0b1000 + 0o53) + '\065', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1100100 + 0o13) + '\x33' + chr(2038 - 1987) + '\065', 20158 - 20150), ehT0Px3KOsy9(chr(0b110000) + chr(7522 - 7411) + '\061' + chr(0b110110) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\067' + '\x33', 0b1000), ehT0Px3KOsy9(chr(1345 - 1297) + chr(0b1101111) + '\061' + chr(1759 - 1707) + '\x31', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(54) + chr(48), 56565 - 56557), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + '\x33' + chr(52), 0o10), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b101001 + 0o106) + chr(0b1001 + 0o50) + '\063' + '\062', 10279 - 10271), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\x34' + chr(0b11101 + 0o23), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + chr(0b110010) + '\x37', 27347 - 27339), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(2909 - 2855), 0b1000), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(1308 - 1197) + chr(0b110001) + chr(49) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + chr(949 - 901) + chr(55), 8), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110010) + '\061' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b1101 + 0o43), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(52) + chr(1213 - 1159), ord("\x08")), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(0b1011110 + 0o21) + chr(49) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110110), 57789 - 57781)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(0b1101111) + chr(53) + chr(898 - 850), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6'), '\x64' + '\145' + chr(99) + chr(0b1100001 + 0o16) + chr(1138 - 1038) + '\x65')(chr(0b1110001 + 0o4) + '\164' + chr(102) + chr(0b101101) + chr(2107 - 2051)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Chjwex_O10sP(oVre8I6UXc3b): (WZTVw9fQgDbB, NMMSaVSm8wXc) = oVre8I6UXc3b.new_log_files(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9aS\xbc\x82F\x94\xac\xea\n\x13\xad\xef"f'), chr(1814 - 1714) + '\x65' + chr(4147 - 4048) + '\157' + chr(0b100110 + 0o76) + '\x65')('\165' + '\x74' + '\x66' + chr(0b101101) + chr(56))) PjbNipqGDFj7 = H9zaXRrGK6Cq.services.start_raylet_monitor(oVre8I6UXc3b.K4mksG0wynwM, stdout_file=WZTVw9fQgDbB, stderr_file=NMMSaVSm8wXc, redis_password=oVre8I6UXc3b._ray_params.redis_password, config=oVre8I6UXc3b._config) assert xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8`\x8a\xadf\xb3\xa0\xd81$\x94\xde\x12FP\xc65\xb0\x8e\x94\xe0\xbc\x13\x94 t3'), chr(100) + chr(0b1100101) + '\143' + chr(0b1011110 + 0o21) + chr(100) + chr(2526 - 2425))(chr(0b1110001 + 0o4) + chr(116) + chr(0b101111 + 0o67) + chr(0b101101) + chr(56))) not in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xae]\xf6\xd9N\xa7\x90\xe0\x1cJ\x90\xf1'), chr(100) + '\145' + chr(0b1100 + 0o127) + chr(0b1000000 + 0o57) + '\144' + chr(0b10 + 0o143))('\165' + '\164' + '\146' + chr(1776 - 1731) + '\x38')) oVre8I6UXc3b.Fo37mGcgy7Tj[NAlxrfaLQgar.Iu25bY43AAHd] = [PjbNipqGDFj7]
ray-project/ray
python/ray/node.py
Node.start_head_processes
def start_head_processes(self): """Start head processes on the node.""" logger.info( "Process STDOUT and STDERR is being redirected to {}.".format( self._logs_dir)) assert self._redis_address is None # If this is the head node, start the relevant head node processes. self.start_redis() self.start_monitor() self.start_raylet_monitor() # The dashboard is Python3.x only. if PY3 and self._ray_params.include_webui: self.start_dashboard()
python
def start_head_processes(self): """Start head processes on the node.""" logger.info( "Process STDOUT and STDERR is being redirected to {}.".format( self._logs_dir)) assert self._redis_address is None # If this is the head node, start the relevant head node processes. self.start_redis() self.start_monitor() self.start_raylet_monitor() # The dashboard is Python3.x only. if PY3 and self._ray_params.include_webui: self.start_dashboard()
[ "def", "start_head_processes", "(", "self", ")", ":", "logger", ".", "info", "(", "\"Process STDOUT and STDERR is being redirected to {}.\"", ".", "format", "(", "self", ".", "_logs_dir", ")", ")", "assert", "self", ".", "_redis_address", "is", "None", "# If this is the head node, start the relevant head node processes.", "self", ".", "start_redis", "(", ")", "self", ".", "start_monitor", "(", ")", "self", ".", "start_raylet_monitor", "(", ")", "# The dashboard is Python3.x only.", "if", "PY3", "and", "self", ".", "_ray_params", ".", "include_webui", ":", "self", ".", "start_dashboard", "(", ")" ]
Start head processes on the node.
[ "Start", "head", "processes", "on", "the", "node", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L465-L477
train
Start head processes on the node.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GM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Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1787 - 1738) + chr(0b110000) + '\x33', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11 + 0o56) + chr(50) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(132 - 84) + chr(111) + '\x33' + chr(55) + '\065', 0b1000), ehT0Px3KOsy9(chr(2154 - 2106) + '\x6f' + chr(1816 - 1764) + chr(0b11101 + 0o32), 7929 - 7921), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + chr(0b11110 + 0o31) + chr(0b110110), 5643 - 5635), ehT0Px3KOsy9(chr(568 - 520) + '\157' + chr(0b101001 + 0o10) + chr(1508 - 1453) + chr(0b110011 + 0o1), 0b1000), ehT0Px3KOsy9(chr(1505 - 1457) + chr(0b1101111) + '\x32' + chr(464 - 415) + '\060', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + chr(0b110110) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1245 - 1194) + chr(2136 - 2082) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1532 - 1483) + chr(1652 - 1598) + chr(883 - 831), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + chr(0b110100) + chr(2237 - 2183), 13087 - 13079), ehT0Px3KOsy9('\060' + chr(0b11 + 0o154) + chr(0b101000 + 0o16) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + '\x30' + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(48) + chr(4535 - 4424) + '\x33' + chr(0b101000 + 0o16) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b10001 + 0o136) + chr(0b1 + 0o63) + '\065', 0o10), ehT0Px3KOsy9(chr(813 - 765) + chr(111) + chr(1073 - 1018) + chr(265 - 212), 0o10), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\157' + '\062' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2092 - 2042) + chr(0b100011 + 0o22) + chr(0b100011 + 0o22), 0b1000), ehT0Px3KOsy9('\060' + chr(0b101 + 0o152) + '\063' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + chr(51) + chr(512 - 458) + '\x33', 0o10), ehT0Px3KOsy9('\060' + chr(5327 - 5216) + '\x31' + chr(50) + chr(779 - 727), 0b1000), ehT0Px3KOsy9(chr(374 - 326) + chr(12236 - 12125) + '\067' + chr(0b100011 + 0o21), 0o10), ehT0Px3KOsy9(chr(2285 - 2237) + chr(111) + chr(2358 - 2303), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(7479 - 7368) + '\062' + chr(0b110111) + chr(0b110011), 64186 - 64178), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010000 + 0o37) + chr(0b110011) + '\x37' + chr(0b10010 + 0o36), 0o10), ehT0Px3KOsy9('\060' + chr(2517 - 2406) + chr(55) + '\060', 17813 - 17805), ehT0Px3KOsy9('\060' + '\x6f' + '\066', 0o10), ehT0Px3KOsy9(chr(1060 - 1012) + chr(111) + chr(49) + chr(768 - 715) + '\x36', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(808 - 758) + chr(0b110000) + chr(2783 - 2728), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\062' + '\062' + chr(55), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b100000 + 0o24) + chr(985 - 933), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(3501 - 3390) + '\062' + chr(52) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + chr(820 - 771), 0o10), ehT0Px3KOsy9(chr(2078 - 2030) + '\157' + '\x35' + '\061', 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + '\062' + '\x34' + chr(447 - 398), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + chr(1763 - 1711) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(3441 - 3330) + chr(0b1111 + 0o43) + '\061' + chr(51), ord("\x08")), ehT0Px3KOsy9('\060' + chr(270 - 159) + chr(0b11110 + 0o23) + chr(1136 - 1087) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(4846 - 4735) + '\x31' + chr(0b110010) + chr(1172 - 1123), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b10 + 0o57) + chr(0b110000 + 0o6) + chr(0b110110), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1669 - 1621) + chr(111) + chr(978 - 925) + chr(0b110000), 28386 - 28378)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'm'), chr(232 - 132) + chr(0b1100101) + '\143' + '\x6f' + chr(100) + chr(101))(chr(0b1000000 + 0o65) + '\164' + chr(0b11100 + 0o112) + chr(1108 - 1063) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def TCb3Z8YUajya(oVre8I6UXc3b): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x10e\xb5_\xcb\x1f\xefE\x9b\x18|_'), chr(0b11101 + 0o107) + chr(101) + '\x63' + '\x6f' + chr(0b1111 + 0o125) + chr(0b100000 + 0o105))(chr(12077 - 11960) + '\164' + '\146' + '\x2d' + chr(0b111000)))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x13 \x92D\xdb\x0f\xfbR\xa2 b{\xd6\xa4\x05\\x\xc9<\xa0\x00xB\xe9\xaa\x18o\x1d\xa7\xf5A\xca\x7fN\x81\xd6\xee.8\x04&1\x89B\xda\\\xfc\x1d\xd1\x0f[\x1a'), chr(100) + chr(4157 - 4056) + '\x63' + '\157' + chr(3503 - 3403) + '\145')(chr(0b1001011 + 0o52) + '\x74' + chr(0b11001 + 0o115) + chr(45) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x15f\x8fH\xf6\x1d\xdbA\xa1\x04C^'), '\x64' + chr(0b1100101) + chr(0b1011010 + 0o11) + chr(0b1101111) + chr(100) + '\145')(chr(117) + chr(116) + chr(0b110111 + 0o57) + chr(0b101101) + '\x38'))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x1c>\x92@\xcd#\xec\x1b\x83'), '\x64' + chr(101) + '\143' + chr(5912 - 5801) + '\144' + chr(0b1010011 + 0o22))('\x75' + '\x74' + chr(0b1100110) + chr(1577 - 1532) + '\x38')))) assert xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x08f\x90L\xcd;\xb8\x05\x88\x1aQy'), chr(0b1100100) + '\x65' + chr(0b11001 + 0o112) + chr(111) + '\144' + chr(6199 - 6098))('\x75' + '\164' + '\x66' + '\x2d' + chr(56))) is None xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'0&\x9cU\xca#\xfa\x17\x95\x1dU'), chr(0b101110 + 0o66) + chr(0b1010000 + 0o25) + '\143' + chr(2336 - 2225) + chr(1041 - 941) + chr(0b1100101))(chr(12883 - 12766) + '\x74' + '\x66' + chr(0b11 + 0o52) + chr(256 - 200)))() xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'0&\x9cU\xca#\xe5\x1d\x9f\x1dR[\xf1'), chr(2589 - 2489) + chr(0b1100101) + '\x63' + '\157' + '\x64' + chr(4871 - 4770))(chr(0b1110101) + '\164' + chr(102) + chr(0b101101) + '\x38'))() xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'0&\x9cU\xca#\xfa\x13\x88\x18C@\xdc\x9dJS\x7f\xd9s\x81'), chr(100) + '\x65' + chr(99) + '\x6f' + chr(0b1100100) + chr(7409 - 7308))(chr(0b1110101) + chr(9489 - 9373) + chr(240 - 138) + '\x2d' + '\x38'))() if YgURjh4t3UZu and xafqLlk3kkUe(oVre8I6UXc3b._ray_params, xafqLlk3kkUe(SXOLrMavuUCe(b'*<\x9eK\xcb\x18\xed-\x86\x11DA\xea'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(9450 - 9350) + chr(0b1100101))(chr(0b1000 + 0o155) + chr(0b110101 + 0o77) + chr(0b1000010 + 0o44) + chr(45) + '\070')): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'0&\x9cU\xca#\xec\x13\x82\x1cD[\xe2\x82A'), chr(251 - 151) + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + chr(101))(chr(117) + '\x74' + chr(6291 - 6189) + chr(0b1101 + 0o40) + chr(0b1100 + 0o54)))()
ray-project/ray
python/ray/node.py
Node.start_ray_processes
def start_ray_processes(self): """Start all of the processes on the node.""" logger.info( "Process STDOUT and STDERR is being redirected to {}.".format( self._logs_dir)) self.start_plasma_store() self.start_raylet() if PY3: self.start_reporter() if self._ray_params.include_log_monitor: self.start_log_monitor()
python
def start_ray_processes(self): """Start all of the processes on the node.""" logger.info( "Process STDOUT and STDERR is being redirected to {}.".format( self._logs_dir)) self.start_plasma_store() self.start_raylet() if PY3: self.start_reporter() if self._ray_params.include_log_monitor: self.start_log_monitor()
[ "def", "start_ray_processes", "(", "self", ")", ":", "logger", ".", "info", "(", "\"Process STDOUT and STDERR is being redirected to {}.\"", ".", "format", "(", "self", ".", "_logs_dir", ")", ")", "self", ".", "start_plasma_store", "(", ")", "self", ".", "start_raylet", "(", ")", "if", "PY3", ":", "self", ".", "start_reporter", "(", ")", "if", "self", ".", "_ray_params", ".", "include_log_monitor", ":", "self", ".", "start_log_monitor", "(", ")" ]
Start all of the processes on the node.
[ "Start", "all", "of", "the", "processes", "on", "the", "node", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L479-L491
train
Start all of the processes on the node.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh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InYwBvYW,iDQ_gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1692 - 1644) + '\x6f' + chr(666 - 616) + chr(1589 - 1535) + '\x33', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + '\064' + chr(1725 - 1674), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b111 + 0o52) + chr(0b110001) + '\x31', ord("\x08")), ehT0Px3KOsy9('\060' + chr(4478 - 4367) + chr(51) + '\x31' + chr(0b110110), 62704 - 62696), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b1111 + 0o140) + chr(1929 - 1879) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110000) + chr(622 - 573), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x35' + chr(390 - 341), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + chr(0b110111), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110001) + chr(50) + '\066', 26461 - 26453), ehT0Px3KOsy9(chr(1795 - 1747) + chr(0b1001111 + 0o40) + '\x33' + '\064' + chr(0b100011 + 0o20), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(1516 - 1466) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1100110 + 0o11) + '\x31' + chr(55) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(2071 - 2023) + '\x6f' + chr(49) + '\x32' + '\x30', 29221 - 29213), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(0b110101 + 0o0) + '\062', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\062' + '\x35' + chr(0b110111), 4394 - 4386), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + '\x30' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\064' + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(0b110111) + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11110 + 0o24) + chr(825 - 771) + chr(1384 - 1334), 39001 - 38993), ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\157' + chr(0b1111 + 0o46) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(1238 - 1190) + chr(7867 - 7756) + '\063' + chr(1143 - 1094) + chr(48), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(0b100010 + 0o25) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2310 - 2259) + chr(0b110010) + chr(50), 0o10), ehT0Px3KOsy9(chr(1820 - 1772) + '\157' + chr(0b11101 + 0o25) + chr(0b100101 + 0o21), ord("\x08")), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(6815 - 6704) + chr(50) + chr(625 - 577) + chr(0b100110 + 0o12), 12688 - 12680), ehT0Px3KOsy9(chr(186 - 138) + chr(0b1000001 + 0o56) + '\063' + '\x33', 0o10), ehT0Px3KOsy9(chr(1232 - 1184) + chr(0b100010 + 0o115) + chr(0b10110 + 0o33) + chr(0b110100) + chr(0b0 + 0o63), 8), ehT0Px3KOsy9(chr(836 - 788) + chr(0b11000 + 0o127) + '\063' + '\x35' + chr(0b1101 + 0o46), 45141 - 45133), ehT0Px3KOsy9('\x30' + chr(4551 - 4440) + chr(0b101110 + 0o3) + chr(2679 - 2627) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + '\x37' + chr(1055 - 1006), 0b1000), ehT0Px3KOsy9(chr(521 - 473) + chr(111) + '\067' + chr(0b101110 + 0o7), 54952 - 54944), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110 + 0o54) + chr(0b11111 + 0o21), 8), ehT0Px3KOsy9(chr(1389 - 1341) + chr(0b101111 + 0o100) + chr(0b110011) + '\066' + '\066', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b1011001 + 0o26) + chr(2299 - 2249) + chr(0b101010 + 0o12) + '\x34', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110100) + chr(50), 0o10), ehT0Px3KOsy9(chr(79 - 31) + chr(0b1101111) + chr(0b111 + 0o53) + '\060' + '\x37', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(965 - 915) + chr(0b1000 + 0o55) + '\x35', 23527 - 23519), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\062' + '\060' + chr(0b1 + 0o66), 8), ehT0Px3KOsy9('\060' + chr(8516 - 8405) + '\x31' + '\060' + chr(0b10100 + 0o43), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(672 - 624) + chr(111) + '\065' + chr(0b10000 + 0o40), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d'), chr(0b1100100) + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b111011 + 0o72) + chr(3931 - 3815) + '\146' + chr(0b101101) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def _8oLqekpCrs4(oVre8I6UXc3b): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0T\x01\xb6e"N <\x8f\xcf\x15'), '\x64' + '\x65' + '\x63' + chr(0b100000 + 0o117) + '\x64' + '\145')(chr(0b1110101) + '\164' + '\x66' + chr(0b111 + 0o46) + chr(0b110101 + 0o3)))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3\x11&\xadu2Z7\x05\xb7\xd11\x05\xfe\x8f\xa7K\xdc\x92}\x9c\xbc\x97D\xd2;\n\x98B\xdbXy\x98b\x84P\xe2\xc9\xee5\xd6\x00=\xabta]xv\x98\xe8P'), '\144' + chr(0b1100101) + '\143' + '\x6f' + '\144' + chr(101))(chr(117) + '\164' + '\146' + chr(1802 - 1757) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xe5W;\xa1X z$\x06\x93\xf0\x14'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(2160 - 2059))('\165' + chr(13320 - 13204) + chr(0b1100110) + '\055' + '\x38'))(xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xec\x0f&\xa9c\x1eM~$'), '\x64' + chr(0b1000 + 0o135) + '\143' + '\157' + '\x64' + chr(143 - 42))('\x75' + chr(116) + '\x66' + '\x2d' + chr(367 - 311))))) xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0\x17(\xbcd\x1eY{7\x90\xf8\x1f\x0f\xd9\xdb\xa9W\xdd'), chr(0b1100100) + chr(0b1100101) + chr(0b1000 + 0o133) + chr(0b1101111) + '\x64' + chr(3983 - 3882))('\x75' + chr(116) + chr(8132 - 8030) + chr(0b100101 + 0o10) + chr(0b11000 + 0o40)))() xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0\x17(\xbcd\x1e[v/\x8f\xf0\n'), chr(0b1100100) + '\x65' + chr(2822 - 2723) + chr(0b1100100 + 0o13) + chr(8109 - 8009) + '\145')('\165' + chr(0b1110100) + '\146' + '\x2d' + '\x38'))() if YgURjh4t3UZu: xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0\x17(\xbcd\x1e[r&\x8c\xe7\n5\xd8'), chr(5865 - 5765) + chr(0b101100 + 0o71) + chr(99) + chr(896 - 785) + chr(0b1100100) + chr(6179 - 6078))(chr(11629 - 11512) + '\164' + chr(7126 - 7024) + chr(0b101101) + chr(56)))() if xafqLlk3kkUe(oVre8I6UXc3b._ray_params, xafqLlk3kkUe(SXOLrMavuUCe(b'\xda\r*\xa2e%LH:\x8c\xf2!=\xc5\xc1\xafQ\xd7\xc0'), chr(0b100000 + 0o104) + chr(4290 - 4189) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(8608 - 8507))(chr(117) + chr(0b10000 + 0o144) + chr(0b1001110 + 0o30) + '\x2d' + chr(1951 - 1895))): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0\x17(\xbcd\x1eEx1\xbc\xf8\x11>\xc3\xdb\xa9W'), '\144' + '\145' + chr(6536 - 6437) + chr(8065 - 7954) + chr(3295 - 3195) + chr(101))('\165' + '\x74' + chr(102) + chr(0b100111 + 0o6) + chr(0b111000)))()
ray-project/ray
python/ray/node.py
Node._kill_process_type
def _kill_process_type(self, process_type, allow_graceful=False, check_alive=True, wait=False): """Kill a process of a given type. If the process type is PROCESS_TYPE_REDIS_SERVER, then we will kill all of the Redis servers. If the process was started in valgrind, then we will raise an exception if the process has a non-zero exit code. Args: process_type: The type of the process to kill. allow_graceful (bool): Send a SIGTERM first and give the process time to exit gracefully. If that doesn't work, then use SIGKILL. We usually want to do this outside of tests. check_alive (bool): If true, then we expect the process to be alive and will raise an exception if the process is already dead. wait (bool): If true, then this method will not return until the process in question has exited. Raises: This process raises an exception in the following cases: 1. The process had already died and check_alive is true. 2. The process had been started in valgrind and had a non-zero exit code. """ process_infos = self.all_processes[process_type] if process_type != ray_constants.PROCESS_TYPE_REDIS_SERVER: assert len(process_infos) == 1 for process_info in process_infos: process = process_info.process # Handle the case where the process has already exited. if process.poll() is not None: if check_alive: raise Exception("Attempting to kill a process of type " "'{}', but this process is already dead." .format(process_type)) else: continue if process_info.use_valgrind: process.terminate() process.wait() if process.returncode != 0: message = ("Valgrind detected some errors in process of " "type {}. Error code {}.".format( process_type, process.returncode)) if process_info.stdout_file is not None: with open(process_info.stdout_file, "r") as f: message += "\nPROCESS STDOUT:\n" + f.read() if process_info.stderr_file is not None: with open(process_info.stderr_file, "r") as f: message += "\nPROCESS STDERR:\n" + f.read() raise Exception(message) continue if process_info.use_valgrind_profiler: # Give process signal to write profiler data. os.kill(process.pid, signal.SIGINT) # Wait for profiling data to be written. time.sleep(0.1) if allow_graceful: # Allow the process one second to exit gracefully. process.terminate() timer = threading.Timer(1, lambda process: process.kill(), [process]) try: timer.start() process.wait() finally: timer.cancel() if process.poll() is not None: continue # If the process did not exit within one second, force kill it. process.kill() # The reason we usually don't call process.wait() here is that # there's some chance we'd end up waiting a really long time. if wait: process.wait() del self.all_processes[process_type]
python
def _kill_process_type(self, process_type, allow_graceful=False, check_alive=True, wait=False): """Kill a process of a given type. If the process type is PROCESS_TYPE_REDIS_SERVER, then we will kill all of the Redis servers. If the process was started in valgrind, then we will raise an exception if the process has a non-zero exit code. Args: process_type: The type of the process to kill. allow_graceful (bool): Send a SIGTERM first and give the process time to exit gracefully. If that doesn't work, then use SIGKILL. We usually want to do this outside of tests. check_alive (bool): If true, then we expect the process to be alive and will raise an exception if the process is already dead. wait (bool): If true, then this method will not return until the process in question has exited. Raises: This process raises an exception in the following cases: 1. The process had already died and check_alive is true. 2. The process had been started in valgrind and had a non-zero exit code. """ process_infos = self.all_processes[process_type] if process_type != ray_constants.PROCESS_TYPE_REDIS_SERVER: assert len(process_infos) == 1 for process_info in process_infos: process = process_info.process # Handle the case where the process has already exited. if process.poll() is not None: if check_alive: raise Exception("Attempting to kill a process of type " "'{}', but this process is already dead." .format(process_type)) else: continue if process_info.use_valgrind: process.terminate() process.wait() if process.returncode != 0: message = ("Valgrind detected some errors in process of " "type {}. Error code {}.".format( process_type, process.returncode)) if process_info.stdout_file is not None: with open(process_info.stdout_file, "r") as f: message += "\nPROCESS STDOUT:\n" + f.read() if process_info.stderr_file is not None: with open(process_info.stderr_file, "r") as f: message += "\nPROCESS STDERR:\n" + f.read() raise Exception(message) continue if process_info.use_valgrind_profiler: # Give process signal to write profiler data. os.kill(process.pid, signal.SIGINT) # Wait for profiling data to be written. time.sleep(0.1) if allow_graceful: # Allow the process one second to exit gracefully. process.terminate() timer = threading.Timer(1, lambda process: process.kill(), [process]) try: timer.start() process.wait() finally: timer.cancel() if process.poll() is not None: continue # If the process did not exit within one second, force kill it. process.kill() # The reason we usually don't call process.wait() here is that # there's some chance we'd end up waiting a really long time. if wait: process.wait() del self.all_processes[process_type]
[ "def", "_kill_process_type", "(", "self", ",", "process_type", ",", "allow_graceful", "=", "False", ",", "check_alive", "=", "True", ",", "wait", "=", "False", ")", ":", "process_infos", "=", "self", ".", "all_processes", "[", "process_type", "]", "if", "process_type", "!=", "ray_constants", ".", "PROCESS_TYPE_REDIS_SERVER", ":", "assert", "len", "(", "process_infos", ")", "==", "1", "for", "process_info", "in", "process_infos", ":", "process", "=", "process_info", ".", "process", "# Handle the case where the process has already exited.", "if", "process", ".", "poll", "(", ")", "is", "not", "None", ":", "if", "check_alive", ":", "raise", "Exception", "(", "\"Attempting to kill a process of type \"", "\"'{}', but this process is already dead.\"", ".", "format", "(", "process_type", ")", ")", "else", ":", "continue", "if", "process_info", ".", "use_valgrind", ":", "process", ".", "terminate", "(", ")", "process", ".", "wait", "(", ")", "if", "process", ".", "returncode", "!=", "0", ":", "message", "=", "(", "\"Valgrind detected some errors in process of \"", "\"type {}. Error code {}.\"", ".", "format", "(", "process_type", ",", "process", ".", "returncode", ")", ")", "if", "process_info", ".", "stdout_file", "is", "not", "None", ":", "with", "open", "(", "process_info", ".", "stdout_file", ",", "\"r\"", ")", "as", "f", ":", "message", "+=", "\"\\nPROCESS STDOUT:\\n\"", "+", "f", ".", "read", "(", ")", "if", "process_info", ".", "stderr_file", "is", "not", "None", ":", "with", "open", "(", "process_info", ".", "stderr_file", ",", "\"r\"", ")", "as", "f", ":", "message", "+=", "\"\\nPROCESS STDERR:\\n\"", "+", "f", ".", "read", "(", ")", "raise", "Exception", "(", "message", ")", "continue", "if", "process_info", ".", "use_valgrind_profiler", ":", "# Give process signal to write profiler data.", "os", ".", "kill", "(", "process", ".", "pid", ",", "signal", ".", "SIGINT", ")", "# Wait for profiling data to be written.", "time", ".", "sleep", "(", "0.1", ")", "if", "allow_graceful", ":", "# Allow the process one second to exit gracefully.", "process", ".", "terminate", "(", ")", "timer", "=", "threading", ".", "Timer", "(", "1", ",", "lambda", "process", ":", "process", ".", "kill", "(", ")", ",", "[", "process", "]", ")", "try", ":", "timer", ".", "start", "(", ")", "process", ".", "wait", "(", ")", "finally", ":", "timer", ".", "cancel", "(", ")", "if", "process", ".", "poll", "(", ")", "is", "not", "None", ":", "continue", "# If the process did not exit within one second, force kill it.", "process", ".", "kill", "(", ")", "# The reason we usually don't call process.wait() here is that", "# there's some chance we'd end up waiting a really long time.", "if", "wait", ":", "process", ".", "wait", "(", ")", "del", "self", ".", "all_processes", "[", "process_type", "]" ]
Kill a process of a given type. If the process type is PROCESS_TYPE_REDIS_SERVER, then we will kill all of the Redis servers. If the process was started in valgrind, then we will raise an exception if the process has a non-zero exit code. Args: process_type: The type of the process to kill. allow_graceful (bool): Send a SIGTERM first and give the process time to exit gracefully. If that doesn't work, then use SIGKILL. We usually want to do this outside of tests. check_alive (bool): If true, then we expect the process to be alive and will raise an exception if the process is already dead. wait (bool): If true, then this method will not return until the process in question has exited. Raises: This process raises an exception in the following cases: 1. The process had already died and check_alive is true. 2. The process had been started in valgrind and had a non-zero exit code.
[ "Kill", "a", "process", "of", "a", "given", "type", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L493-L579
train
Kill a process of a given type.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSR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EEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(9899 - 9788) + chr(0b110 + 0o54) + '\x37' + '\067', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(904 - 851) + chr(1311 - 1263), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(5624 - 5513) + chr(428 - 379) + chr(0b110011) + chr(466 - 414), 44855 - 44847), ehT0Px3KOsy9(chr(48) + '\157' + '\x32' + '\062' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2147 - 2098) + chr(262 - 213) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110 + 0o55) + chr(0b110000 + 0o5) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(1180 - 1132) + chr(0b1101111) + chr(0b101000 + 0o12) + '\x34' + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001) + '\061' + '\x36', 10431 - 10423), ehT0Px3KOsy9(chr(2146 - 2098) + chr(111) + chr(818 - 763) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b1101 + 0o43) + '\067', 28414 - 28406), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2499 - 2448) + chr(0b110100) + '\x32', 28523 - 28515), ehT0Px3KOsy9(chr(0b110000) + chr(10770 - 10659) + '\063' + chr(1595 - 1540) + chr(49), 13763 - 13755), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1011 + 0o144) + '\063' + chr(281 - 229), 0b1000), ehT0Px3KOsy9(chr(1937 - 1889) + '\157' + chr(2259 - 2208) + chr(0b11110 + 0o23) + chr(0b1001 + 0o56), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1010111 + 0o30) + chr(0b10110 + 0o33) + '\065' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(2224 - 2176) + chr(0b1101111) + chr(50) + chr(1617 - 1566) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b1101111 + 0o0) + '\063' + chr(0b100000 + 0o21) + chr(444 - 389), 8), ehT0Px3KOsy9(chr(2094 - 2046) + chr(0b1010100 + 0o33) + chr(49) + '\061' + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + '\x30' + chr(0b110000 + 0o1), 25880 - 25872), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b101001 + 0o106) + chr(0b110001) + chr(0b101111 + 0o2) + chr(0b110000), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b11 + 0o60) + chr(2508 - 2456) + '\061', 0b1000), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b1101111) + '\064' + chr(49), 0o10), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(1513 - 1402) + '\x37' + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\157' + chr(0b110011) + chr(2159 - 2108) + chr(277 - 226), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000100 + 0o53) + '\067' + '\067', 33469 - 33461), ehT0Px3KOsy9(chr(0b101 + 0o53) + '\157' + chr(1762 - 1713) + chr(0b110010) + chr(0b1111 + 0o45), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + chr(0b110111) + '\x36', 990 - 982), ehT0Px3KOsy9(chr(48) + chr(4997 - 4886) + chr(0b110001) + '\066' + '\066', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(0b1111 + 0o41) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1709 - 1660) + chr(0b110110) + chr(54), 8), ehT0Px3KOsy9('\x30' + chr(8480 - 8369) + chr(349 - 298) + chr(0b110000) + '\x36', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1100010 + 0o15) + chr(0b101010 + 0o7) + chr(0b110010) + chr(48), 0o10), ehT0Px3KOsy9('\x30' + chr(1145 - 1034) + '\061' + '\x37' + chr(1596 - 1546), ord("\x08")), ehT0Px3KOsy9(chr(465 - 417) + '\157' + chr(1325 - 1274) + chr(0b110011) + chr(495 - 447), 40957 - 40949), ehT0Px3KOsy9(chr(48) + chr(12000 - 11889) + chr(0b110011) + '\066' + chr(2390 - 2341), 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(111) + '\x32' + chr(0b110001) + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + chr(1572 - 1522) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(2033 - 1985) + chr(0b1010100 + 0o33) + chr(0b110010) + chr(0b1110 + 0o43) + chr(0b110000), 16120 - 16112), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10101 + 0o35) + chr(54) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(522 - 474) + chr(0b10000 + 0o137) + '\064' + chr(51), 35472 - 35464)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(2546 - 2435) + chr(373 - 320) + chr(0b11111 + 0o21), 222 - 214)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x91'), chr(0b110010 + 0o62) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(4769 - 4668))('\x75' + '\164' + chr(0b1100110) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def DaF7d1O_UbT1(oVre8I6UXc3b, mN6JsE9yUBle, zKVeiTsPd7Sf=ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b11 + 0o154) + chr(48), ord("\x08")), xLSZ73E84kkq=ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + chr(1770 - 1721), 0o10), iik9wfy8nMEV=ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1440 - 1392), 8)): wBcFGfGy0bfk = oVre8I6UXc3b.Fo37mGcgy7Tj[mN6JsE9yUBle] if mN6JsE9yUBle != xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7\xce5\xf0\x1c\x99\xf6$O\x8e\xb6\xb5'), chr(6132 - 6032) + chr(101) + chr(0b100111 + 0o74) + chr(0b101001 + 0o106) + chr(0b1100100) + '\145')('\x75' + chr(3548 - 3432) + '\146' + chr(1554 - 1509) + '\070')): assert c2A0yzQpDQB3(wBcFGfGy0bfk) == ehT0Px3KOsy9('\x30' + '\x6f' + '\061', 8) for PjbNipqGDFj7 in wBcFGfGy0bfk: ZaphbO0J_dPn = PjbNipqGDFj7.ZaphbO0J_dPn if xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcf\xc70\xfe'), '\x64' + chr(0b1010010 + 0o23) + '\x63' + chr(10741 - 10630) + chr(0b1100100) + '\145')(chr(609 - 492) + '\164' + chr(9075 - 8973) + chr(0b11111 + 0o16) + chr(0b10100 + 0o44)))() is not None: if xLSZ73E84kkq: raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b"\xfe\xdc(\xf7%\x9d\xd7'P\xa0\xc2\x8ds\xef\x02\xf2\xa3 \xe1)\xc1QN\xb4\\1\xcd\x05\xa6\x19\xa0p\x0e\xa1\x81\xe9\xb0\xaf\xcb^\x98\x84|\xf0=\x99\x83:V\xae\x91\xd9l\xbd\x06\xf8\xaa?\xb2h\x88R\x1c\xbaS&\xdb\x17\xe2\x0f\xe64\x1f\xb9\x95\xa2"), '\144' + chr(3329 - 3228) + chr(0b10011 + 0o120) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + '\x66' + chr(0b101101) + chr(456 - 400)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xe9\x9c.\xfd\x00\x8c\xf0}n\xb7\x87\x93'), '\144' + chr(2177 - 2076) + chr(99) + chr(0b1010110 + 0o31) + chr(0b1100100) + chr(0b1100101))(chr(0b1111 + 0o146) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)))(mN6JsE9yUBle)) else: continue if xafqLlk3kkUe(PjbNipqGDFj7, xafqLlk3kkUe(SXOLrMavuUCe(b'\xca\xdb9\xcd>\x8c\xcf)L\xae\x8c\x9d'), '\144' + chr(0b1100101) + '\143' + chr(111) + chr(0b1000 + 0o134) + '\x65')('\165' + chr(116) + '\x66' + '\x2d' + '\x38')): xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcb\xcd.\xff!\x83\xc2:['), chr(100) + chr(0b1011110 + 0o7) + chr(320 - 221) + chr(0b10100 + 0o133) + chr(100) + '\x65')('\165' + chr(0b100101 + 0o117) + chr(0b1100110) + chr(1450 - 1405) + chr(0b111000)))() xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\xc17\xab?\x8b\xdavP\x8a\xa7\xaf'), '\x64' + '\145' + '\143' + chr(0b10100 + 0o133) + chr(100) + '\145')('\165' + chr(0b1110100) + '\146' + chr(53 - 8) + chr(1507 - 1451)))() if xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcd\xcd(\xe7:\x83\xc0!Z\xa2'), chr(100) + chr(0b11000 + 0o115) + chr(0b110100 + 0o57) + chr(6446 - 6335) + chr(100) + '\x65')(chr(2550 - 2433) + '\164' + chr(0b1100110) + chr(859 - 814) + chr(56))) != ehT0Px3KOsy9('\060' + chr(4510 - 4399) + '\x30', 8): R2mbIkZzeu1B = xafqLlk3kkUe(SXOLrMavuUCe(b"\xe9\xc90\xf5:\x84\xcd*\x1e\xa3\x87\x8dy\xac\x1d\xfe\xabl\xb2'\x8cD\x1c\xbeM&\xd1\x04\xf5V\xaf>Z\xa8\x83\xe3\xf3\xed\xc3P\x9f\xc7:\xb2<\x94\xd3+\x1e\xbc\x9f\xd7<\x8a\x1b\xe9\xa0>\xe1+\x8eEY\xfbD)\x90"), chr(0b101100 + 0o70) + '\145' + chr(0b1100011) + '\x6f' + '\x64' + chr(0b111100 + 0o51))(chr(0b1011110 + 0o27) + chr(10380 - 10264) + chr(0b1100110) + chr(1498 - 1453) + chr(0b111000)).V4roHaS3Ppej(mN6JsE9yUBle, ZaphbO0J_dPn.returncode) if xafqLlk3kkUe(PjbNipqGDFj7, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xdc8\xfd=\x99\xfc(W\xab\x87'), '\x64' + chr(0b1000011 + 0o42) + chr(0b110101 + 0o56) + '\x6f' + '\144' + chr(0b101101 + 0o70))('\165' + chr(0b1110100) + '\x66' + '\x2d' + chr(0b10111 + 0o41))) is not None: with _fwkIVCGgtAN(xafqLlk3kkUe(PjbNipqGDFj7, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xdc8\xfd=\x99\xfc(W\xab\x87'), chr(0b10010 + 0o122) + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(2552 - 2451))(chr(117) + '\x74' + chr(5716 - 5614) + chr(1156 - 1111) + chr(0b100110 + 0o22))), xafqLlk3kkUe(SXOLrMavuUCe(b'\xcd'), chr(100) + '\x65' + '\x63' + chr(111) + '\x64' + chr(6507 - 6406))('\x75' + chr(116) + '\146' + '\x2d' + '\070')) as EGyt1xfPT1P6: R2mbIkZzeu1B += xafqLlk3kkUe(SXOLrMavuUCe(b'\xb5\xf8\x0e\xdd\x0b\xa8\xf0\x1d\x1e\x94\xb6\xbdS\x9a=\xa1\xc5'), '\144' + chr(0b1011100 + 0o11) + '\x63' + chr(111) + chr(100) + '\145')(chr(2388 - 2271) + chr(2523 - 2407) + chr(0b1100110) + '\x2d' + chr(56)) + EGyt1xfPT1P6.U6MiWrhuCi2Y() if xafqLlk3kkUe(PjbNipqGDFj7, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xdc8\xf7:\x9f\xfc(W\xab\x87'), chr(1529 - 1429) + chr(0b1011111 + 0o6) + '\x63' + chr(0b1010000 + 0o37) + chr(9669 - 9569) + '\145')(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(0b111000))) is not None: with _fwkIVCGgtAN(xafqLlk3kkUe(PjbNipqGDFj7, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xdc8\xf7:\x9f\xfc(W\xab\x87'), chr(0b1100100) + chr(4908 - 4807) + chr(0b1100011) + chr(0b1101111) + chr(237 - 137) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101000 + 0o5) + chr(0b111000))), xafqLlk3kkUe(SXOLrMavuUCe(b'\xcd'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + chr(2038 - 1937))(chr(117) + chr(8779 - 8663) + '\x66' + chr(45) + chr(0b101100 + 0o14))) as EGyt1xfPT1P6: R2mbIkZzeu1B += xafqLlk3kkUe(SXOLrMavuUCe(b'\xb5\xf8\x0e\xdd\x0b\xa8\xf0\x1d\x1e\x94\xb6\xbdY\x9d;\xa1\xc5'), '\144' + chr(5004 - 4903) + chr(99) + '\157' + '\x64' + chr(101))('\165' + chr(116) + chr(6724 - 6622) + chr(45) + chr(0b111000)) + EGyt1xfPT1P6.U6MiWrhuCi2Y() raise jLmadlzMdunT(R2mbIkZzeu1B) continue if xafqLlk3kkUe(PjbNipqGDFj7, xafqLlk3kkUe(SXOLrMavuUCe(b'\xca\xdb9\xcd>\x8c\xcf)L\xae\x8c\x9dC\xbf\x1b\xf4\xa9%\xad-\x93'), chr(0b1100100) + '\x65' + chr(5568 - 5469) + chr(0b1101111) + chr(5904 - 5804) + '\145')(chr(117) + '\x74' + '\x66' + '\055' + chr(728 - 672))): xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4\xc10\xfe'), chr(4507 - 4407) + '\x65' + '\x63' + '\157' + '\144' + '\145')(chr(0b110000 + 0o105) + '\164' + '\146' + '\x2d' + '\x38'))(xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcf\xcc\x1a\xf8=\xa4\xe4$L\x81\x80\xcd'), chr(0b10100 + 0o120) + chr(0b11010 + 0o113) + chr(6108 - 6009) + '\x6f' + '\144' + chr(3875 - 3774))('\x75' + '\164' + chr(102) + chr(0b11111 + 0o16) + chr(860 - 804))), xafqLlk3kkUe(ZDvW02DvHNUc, xafqLlk3kkUe(SXOLrMavuUCe(b'\xec\xe1\x1b\xdb\x06\xb9'), '\x64' + chr(7555 - 7454) + chr(99) + '\157' + chr(0b101110 + 0o66) + chr(101))(chr(0b110010 + 0o103) + chr(8771 - 8655) + chr(5605 - 5503) + '\055' + '\070'))) xafqLlk3kkUe(ltvhPP4VhXre, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xc49\xf78'), chr(0b1000101 + 0o37) + chr(0b111001 + 0o54) + '\x63' + chr(0b1101111) + '\144' + chr(0b111100 + 0o51))('\x75' + chr(0b1110100) + '\x66' + '\x2d' + '\070'))(0.1) if zKVeiTsPd7Sf: xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcb\xcd.\xff!\x83\xc2:['), chr(6370 - 6270) + '\145' + '\143' + chr(0b1101111) + '\144' + '\145')(chr(0b111110 + 0o67) + chr(4000 - 3884) + chr(8108 - 8006) + chr(1576 - 1531) + chr(0b10010 + 0o46)))() gY2Es2eMB1I_ = mitHeYQsEXej.Timer(ehT0Px3KOsy9('\x30' + '\x6f' + '\061', 8), lambda ZaphbO0J_dPn: ZaphbO0J_dPn.kill(), [ZaphbO0J_dPn]) try: xafqLlk3kkUe(gY2Es2eMB1I_, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xdc=\xe0<'), chr(0b1010111 + 0o15) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b11 + 0o141) + chr(0b11000 + 0o115))('\165' + '\164' + chr(102) + '\x2d' + chr(0b111000)))() xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\xc17\xab?\x8b\xdavP\x8a\xa7\xaf'), chr(0b1100000 + 0o4) + chr(498 - 397) + chr(0b10101 + 0o116) + chr(0b1101111) + chr(0b11001 + 0o113) + '\145')(chr(0b1001110 + 0o47) + '\164' + chr(0b1000111 + 0o37) + '\055' + chr(0b10111 + 0o41)))() finally: xafqLlk3kkUe(gY2Es2eMB1I_, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdc\xc92\xf1-\x81'), chr(100) + '\x65' + chr(6004 - 5905) + '\157' + '\144' + chr(8817 - 8716))('\x75' + '\164' + chr(0b100111 + 0o77) + chr(187 - 142) + '\x38'))() if xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcf\xc70\xfe'), chr(100) + chr(0b1110 + 0o127) + '\143' + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(13438 - 13322) + '\x66' + chr(45) + '\x38'))() is not None: continue xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4\xc10\xfe'), chr(0b1101 + 0o127) + chr(1705 - 1604) + chr(8827 - 8728) + chr(0b1101111) + '\x64' + chr(0b110100 + 0o61))(chr(0b1100101 + 0o20) + chr(116) + '\146' + '\x2d' + chr(0b111000)))() if iik9wfy8nMEV: xafqLlk3kkUe(ZaphbO0J_dPn, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6\xc17\xab?\x8b\xdavP\x8a\xa7\xaf'), chr(100) + chr(0b1100101) + chr(1187 - 1088) + chr(196 - 85) + chr(100) + chr(0b1100101))(chr(0b111001 + 0o74) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b1110 + 0o52)))() del xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9\xc7o\xa5%\xaa\xc0)G\xf0\xb6\x93'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + chr(6878 - 6778) + '\145')('\x75' + chr(0b1110010 + 0o2) + chr(1612 - 1510) + chr(0b100 + 0o51) + chr(56)))[mN6JsE9yUBle]
ray-project/ray
python/ray/node.py
Node.kill_redis
def kill_redis(self, check_alive=True): """Kill the Redis servers. Args: check_alive (bool): Raise an exception if any of the processes were already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_REDIS_SERVER, check_alive=check_alive)
python
def kill_redis(self, check_alive=True): """Kill the Redis servers. Args: check_alive (bool): Raise an exception if any of the processes were already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_REDIS_SERVER, check_alive=check_alive)
[ "def", "kill_redis", "(", "self", ",", "check_alive", "=", "True", ")", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_REDIS_SERVER", ",", "check_alive", "=", "check_alive", ")" ]
Kill the Redis servers. Args: check_alive (bool): Raise an exception if any of the processes were already dead.
[ "Kill", "the", "Redis", "servers", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L581-L589
train
Kill the Redis servers.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZf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_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b100111 + 0o14) + '\x32' + chr(1949 - 1899), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + '\067' + chr(1297 - 1246), 0b1000), ehT0Px3KOsy9(chr(491 - 443) + '\157' + chr(0b110010) + '\067' + chr(0b11011 + 0o32), 0b1000), ehT0Px3KOsy9(chr(1781 - 1733) + '\157' + chr(0b110011) + chr(0b10001 + 0o43) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(4340 - 4229) + chr(51) + '\063' + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100001 + 0o16) + chr(51) + chr(0b110101 + 0o2) + chr(1785 - 1733), 9394 - 9386), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b100111 + 0o14) + '\x36' + chr(0b110100), 42873 - 42865), ehT0Px3KOsy9(chr(48) + '\157' + chr(2418 - 2368) + '\064' + '\x34', 39807 - 39799), ehT0Px3KOsy9('\060' + chr(0b1000101 + 0o52) + chr(1251 - 1197) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100 + 0o55) + chr(50) + chr(51), 24653 - 24645), ehT0Px3KOsy9(chr(48) + chr(0b11011 + 0o124) + chr(50) + '\x34' + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(8702 - 8591) + '\064' + '\x36', 0b1000), ehT0Px3KOsy9(chr(612 - 564) + chr(2848 - 2737) + '\x33' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + chr(973 - 922), ord("\x08")), ehT0Px3KOsy9(chr(1628 - 1580) + chr(111) + chr(0b11010 + 0o31) + chr(0b110111) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(2204 - 2156) + chr(0b1101111) + chr(0b110101) + chr(0b11 + 0o61), 0o10), ehT0Px3KOsy9('\060' + '\157' + '\064' + chr(0b101111 + 0o5), 32524 - 32516), ehT0Px3KOsy9(chr(48) + chr(7671 - 7560) + chr(0b1000 + 0o54) + chr(0b110101), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(585 - 535) + chr(0b101000 + 0o15) + chr(0b100100 + 0o16), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(55) + chr(55), 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(7370 - 7259) + chr(0b110110) + '\x32', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + '\067' + '\x34', 52746 - 52738), ehT0Px3KOsy9('\060' + chr(0b101011 + 0o104) + chr(0b101010 + 0o7) + chr(0b1100 + 0o51) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(218 - 170) + chr(6250 - 6139) + chr(0b10010 + 0o43) + chr(0b110001), 53344 - 53336), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + chr(49) + chr(2486 - 2435) + chr(0b10111 + 0o37), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(11105 - 10994) + '\x32' + chr(50) + chr(0b110111), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(2282 - 2231) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + '\x35' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(8130 - 8019) + chr(55) + chr(0b1111 + 0o46), 0b1000), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(111) + '\067' + '\x31', 0o10), ehT0Px3KOsy9('\x30' + chr(6825 - 6714) + '\063' + chr(0b11100 + 0o25) + chr(1771 - 1720), 10544 - 10536), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\065' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + '\x31' + '\065' + chr(1821 - 1770), 8), ehT0Px3KOsy9(chr(432 - 384) + '\x6f' + chr(0b110011) + '\065' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110101) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(494 - 446) + '\157' + chr(0b110100) + chr(2202 - 2153), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(2616 - 2505) + '\062' + chr(1766 - 1716) + chr(0b101001 + 0o14), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(8784 - 8673) + chr(0b110010) + chr(0b101 + 0o54) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(0b101111 + 0o4) + chr(48), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + '\x31' + '\x33', 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1000 + 0o147) + chr(53) + chr(0b1011 + 0o45), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xfc'), '\144' + '\x65' + chr(99) + '\157' + chr(0b100111 + 0o75) + chr(0b101001 + 0o74))(chr(117) + chr(0b1010 + 0o152) + chr(102) + chr(0b101101) + chr(251 - 195)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def A4f6waHDARxy(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(111) + chr(0b100101 + 0o14), ord("\x08"))): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8d\xd0\xd4\x8c\xb7\xa3\x84\xd6Y0\xc6UnD\x8eUT@'), '\x64' + chr(0b100000 + 0o105) + chr(9034 - 8935) + '\x6f' + chr(6751 - 6651) + chr(0b1100101))(chr(117) + chr(116) + '\146' + chr(45) + '\x38'))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9a\xdd\xd4\x82\x8f\x88\xa1\xceG\x1a\xf7j'), chr(7482 - 7382) + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b100100 + 0o121) + chr(0b1101111 + 0o5) + chr(0b1100110) + chr(0b101101) + '\x38')), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_plasma_store
def kill_plasma_store(self, check_alive=True): """Kill the plasma store. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_PLASMA_STORE, check_alive=check_alive)
python
def kill_plasma_store(self, check_alive=True): """Kill the plasma store. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_PLASMA_STORE, check_alive=check_alive)
[ "def", "kill_plasma_store", "(", "self", ",", "check_alive", "=", "True", ")", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_PLASMA_STORE", ",", "check_alive", "=", "check_alive", ")" ]
Kill the plasma store. Args: check_alive (bool): Raise an exception if the process was already dead.
[ "Kill", "the", "plasma", "store", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L591-L599
train
Kill the plasma store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzM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,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1011101 + 0o22) + chr(805 - 755) + chr(1331 - 1280) + chr(2084 - 2034), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1001101 + 0o42) + chr(1397 - 1347) + chr(0b110100) + chr(2135 - 2084), 51658 - 51650), ehT0Px3KOsy9(chr(1889 - 1841) + '\157' + chr(0b110001) + '\x31' + chr(50), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1010100 + 0o33) + chr(0b110011) + chr(0b1101 + 0o47) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b11110 + 0o23) + chr(0b110000) + chr(1345 - 1290), 0b1000), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(8241 - 8130) + '\063' + '\064' + chr(1214 - 1166), 13939 - 13931), ehT0Px3KOsy9(chr(48) + chr(3704 - 3593) + chr(0b110010) + chr(53) + chr(0b101011 + 0o12), ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b100010 + 0o115) + chr(363 - 312) + '\x35' + chr(884 - 830), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b101101 + 0o11) + chr(0b110110), 37294 - 37286), ehT0Px3KOsy9('\060' + '\x6f' + chr(467 - 415), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(611 - 563) + '\x31', 35126 - 35118), ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\157' + chr(2052 - 1999) + chr(679 - 629), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b100001 + 0o23) + chr(50), 3931 - 3923), ehT0Px3KOsy9(chr(852 - 804) + chr(0b100001 + 0o116) + chr(0b1 + 0o60) + chr(0b11 + 0o62) + chr(53), 1839 - 1831), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1360 - 1305) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110101) + '\x31', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10 + 0o57) + chr(117 - 64) + chr(48), 16989 - 16981), ehT0Px3KOsy9('\x30' + chr(111) + '\062' + '\x36' + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(8317 - 8206) + chr(0b110001) + chr(1076 - 1027) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1101111) + chr(0b10010 + 0o40) + chr(1497 - 1445) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101001 + 0o6) + chr(423 - 372) + '\x32' + '\x35', 0b1000), ehT0Px3KOsy9(chr(48) + chr(1079 - 968) + chr(0b110011) + chr(54) + chr(0b10001 + 0o46), 46708 - 46700), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b10100 + 0o133) + chr(1879 - 1829) + chr(0b110000 + 0o1) + chr(51), 42410 - 42402), ehT0Px3KOsy9('\060' + '\x6f' + chr(213 - 164) + chr(55) + '\062', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b101101 + 0o6) + chr(49) + chr(0b110111), 13331 - 13323), ehT0Px3KOsy9(chr(890 - 842) + '\x6f' + '\063' + '\060', 0o10), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\x6f' + '\x31' + '\x34' + '\060', 55635 - 55627), ehT0Px3KOsy9(chr(0b110000) + chr(3902 - 3791) + chr(0b110010) + chr(0b110010) + '\x32', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + chr(702 - 653) + chr(625 - 573), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\063' + chr(1905 - 1857) + chr(1809 - 1758), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1840 - 1789) + chr(576 - 524) + chr(0b1000 + 0o56), 5338 - 5330), ehT0Px3KOsy9(chr(1035 - 987) + chr(402 - 291) + chr(51) + chr(0b110100) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + '\066' + chr(715 - 667), ord("\x08")), ehT0Px3KOsy9('\060' + chr(10994 - 10883) + '\x32' + chr(51) + '\060', 2098 - 2090), ehT0Px3KOsy9(chr(1416 - 1368) + chr(0b1011 + 0o144) + chr(0b10111 + 0o36), 0b1000), ehT0Px3KOsy9(chr(478 - 430) + '\x6f' + chr(0b1000 + 0o51) + chr(2190 - 2140) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\061' + '\067' + chr(51), 31876 - 31868), ehT0Px3KOsy9(chr(2052 - 2004) + chr(0b101 + 0o152) + '\x32' + '\x31' + '\063', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10000 + 0o42) + chr(0b110110) + chr(1009 - 960), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x34' + '\062', 7001 - 6993)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1100 + 0o51) + chr(0b110000), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb4'), '\144' + chr(0b100 + 0o141) + chr(9018 - 8919) + '\x6f' + chr(2971 - 2871) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(0b100001 + 0o27)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def xp6AvX8xJ_XJ(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2347 - 2298), ord("\x08"))): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc5\xc8#\x8d+\xbf\xdd\x9c\xd9g$Y\x112MP\x18\xd1'), '\144' + '\x65' + '\x63' + chr(0b1 + 0o156) + chr(3177 - 3077) + chr(0b1100101))(chr(0b110101 + 0o100) + chr(116) + chr(0b1100110) + chr(45) + chr(0b111000)))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd2\xd3,\xa6\x11\xa7\xfc\x8a\xe0Q\x17d'), chr(7453 - 7353) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100011 + 0o1) + '\145')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(737 - 692) + chr(56))), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_raylet
def kill_raylet(self, check_alive=True): """Kill the raylet. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_RAYLET, check_alive=check_alive)
python
def kill_raylet(self, check_alive=True): """Kill the raylet. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_RAYLET, check_alive=check_alive)
[ "def", "kill_raylet", "(", "self", ",", "check_alive", "=", "True", ")", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_RAYLET", ",", "check_alive", "=", "check_alive", ")" ]
Kill the raylet. Args: check_alive (bool): Raise an exception if the process was already dead.
[ "Kill", "the", "raylet", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L601-L609
train
Kill the raylet.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKo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aLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(50) + '\062', 7910 - 7902), ehT0Px3KOsy9('\060' + chr(11503 - 11392) + chr(0b110011) + chr(0b110000) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(364 - 316) + '\157' + chr(0b110011) + '\x33' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b101111 + 0o100) + chr(51) + chr(0b100011 + 0o20) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(0b111010 + 0o65) + '\x33' + chr(61 - 11) + chr(0b101 + 0o57), 6306 - 6298), ehT0Px3KOsy9(chr(0b110000) + chr(5480 - 5369) + chr(0b110001) + chr(0b110110) + '\061', 28969 - 28961), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110111) + chr(1242 - 1189), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(11112 - 11001) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + '\x35' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(1083 - 1034) + '\x31', 47556 - 47548), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101111) + chr(0b10011 + 0o37) + chr(0b10000 + 0o46) + chr(851 - 797), 29244 - 29236), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110011) + chr(0b110000) + '\064', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + chr(658 - 610), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b10100 + 0o37) + chr(0b110001) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(51) + '\061', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10111 + 0o36) + '\x32', 45341 - 45333), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + '\065', 2327 - 2319), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + '\066', 33394 - 33386), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(0b110111) + chr(219 - 166), 28837 - 28829), ehT0Px3KOsy9(chr(688 - 640) + chr(4958 - 4847) + '\x33' + '\066' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(5817 - 5706) + chr(0b11110 + 0o23) + chr(52) + chr(0b1 + 0o65), 41289 - 41281), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + chr(0b110001) + chr(0b110110) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1741 - 1690) + '\061' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b1100101 + 0o12) + chr(1512 - 1461) + '\x36' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(1105 - 1057) + chr(0b110 + 0o151) + '\x31' + '\x35', 8), ehT0Px3KOsy9(chr(748 - 700) + chr(10546 - 10435) + '\067' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + chr(0b101 + 0o57), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(1623 - 1512) + chr(837 - 787) + chr(0b110 + 0o52) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(1119 - 1071) + chr(10605 - 10494) + chr(51) + chr(0b110011) + chr(0b1001 + 0o56), 47426 - 47418), ehT0Px3KOsy9('\060' + chr(3805 - 3694) + chr(0b100100 + 0o17) + chr(51) + chr(376 - 321), 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + '\x31' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(1462 - 1414) + chr(1121 - 1010) + chr(937 - 887) + '\x31' + chr(416 - 361), 0o10), ehT0Px3KOsy9(chr(48) + chr(11740 - 11629) + chr(695 - 645) + '\x37' + chr(641 - 593), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + '\x37' + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x35' + chr(55), 30538 - 30530), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110011) + chr(2690 - 2638) + '\062', 59311 - 59303), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1420 - 1370) + chr(2122 - 2068) + chr(0b110100), 23664 - 23656), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(7804 - 7693) + chr(50) + chr(54) + chr(1085 - 1030), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + '\060' + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10000 + 0o43) + chr(573 - 522) + '\067', 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + chr(581 - 528) + '\x30', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'|'), chr(100) + chr(2262 - 2161) + '\143' + chr(111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1011001 + 0o33) + chr(102) + chr(0b100000 + 0o15) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def UsCvLCNezlSv(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9(chr(0b110000) + chr(3946 - 3835) + '\x31', 8)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\r\xad\xb5\xb4\xb8.Ms\xc2j\xd3\xb7k\x90\xadS}s'), chr(2209 - 2109) + chr(0b1100001 + 0o4) + '\143' + chr(0b10100 + 0o133) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b111000)))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\x16\x81\xb5\xeb\xb55k5\x9d<\xce\x9e'), chr(0b1100100) + chr(2392 - 2291) + chr(9503 - 9404) + chr(4590 - 4479) + chr(0b1011010 + 0o12) + '\x65')(chr(0b10 + 0o163) + chr(12805 - 12689) + chr(102) + chr(0b100010 + 0o13) + chr(0b111000))), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_log_monitor
def kill_log_monitor(self, check_alive=True): """Kill the log monitor. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_LOG_MONITOR, check_alive=check_alive)
python
def kill_log_monitor(self, check_alive=True): """Kill the log monitor. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_LOG_MONITOR, check_alive=check_alive)
[ "def", "kill_log_monitor", "(", "self", ",", "check_alive", "=", "True", ")", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_LOG_MONITOR", ",", "check_alive", "=", "check_alive", ")" ]
Kill the log monitor. Args: check_alive (bool): Raise an exception if the process was already dead.
[ "Kill", "the", "log", "monitor", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L611-L619
train
Kill the log monitor.
Pu7Z6IJCgH3a,vcEHXBQXuD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4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2015 - 1967) + chr(0b1101111) + chr(0b110011) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(1288 - 1240) + chr(4853 - 4742) + chr(55) + chr(51), 0o10), ehT0Px3KOsy9(chr(1238 - 1190) + '\157' + '\x33' + chr(0b1000 + 0o53) + '\x34', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b11010 + 0o125) + chr(2384 - 2335) + '\x37' + '\063', 0o10), ehT0Px3KOsy9(chr(2228 - 2180) + chr(0b1001 + 0o146) + '\x33' + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(2152 - 2103) + chr(51), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + '\x35' + chr(0b110010), 41446 - 41438), ehT0Px3KOsy9('\060' + chr(0b1011010 + 0o25) + chr(51) + '\x33' + chr(52), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2168 - 2117) + '\064' + chr(0b10010 + 0o44), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b1100 + 0o46) + '\065' + chr(237 - 186), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x32' + chr(0b10 + 0o60) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(119 - 70) + chr(2739 - 2685) + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x36' + chr(0b110 + 0o53), ord("\x08")), ehT0Px3KOsy9(chr(999 - 951) + '\x6f' + chr(54) + chr(0b110001 + 0o3), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1542 - 1491) + chr(0b110010) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + '\x6f' + chr(51) + chr(0b110000) + '\x33', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(275 - 226) + chr(2239 - 2185) + chr(0b11100 + 0o33), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(0b110110) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(1989 - 1878) + chr(55) + chr(0b110 + 0o56), 28110 - 28102), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(11547 - 11436) + chr(0b101 + 0o54) + chr(0b110110) + chr(451 - 400), 8), ehT0Px3KOsy9('\060' + '\157' + chr(49) + '\x30', 10043 - 10035), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110101) + chr(49), 19644 - 19636), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(2050 - 2001) + '\x33', 8), ehT0Px3KOsy9(chr(726 - 678) + chr(0b110 + 0o151) + '\062' + chr(0b111 + 0o55) + chr(0b100010 + 0o17), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(9364 - 9253) + '\063' + chr(1557 - 1509) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + chr(50), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100111 + 0o15) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + '\066' + '\063', 8), ehT0Px3KOsy9(chr(321 - 273) + chr(0b1101111) + chr(0b110001) + '\066' + chr(0b100001 + 0o25), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(602 - 551) + chr(0b110111) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b100110 + 0o17) + chr(1051 - 1003), 56123 - 56115), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(8656 - 8545) + chr(1195 - 1144) + chr(1013 - 962) + chr(48), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b11 + 0o56) + chr(0b110010) + chr(0b11000 + 0o31), ord("\x08")), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(10660 - 10549) + chr(2232 - 2182) + chr(1648 - 1593) + chr(2200 - 2146), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(51) + '\060' + chr(49), 0o10), ehT0Px3KOsy9('\060' + chr(0b1001000 + 0o47) + '\063' + chr(0b100 + 0o57) + chr(0b1 + 0o66), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + chr(0b11 + 0o62) + chr(2107 - 2052), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b10101 + 0o132) + chr(847 - 798) + chr(0b11011 + 0o30) + chr(53), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\067' + '\060', 43394 - 43386), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + chr(0b1100 + 0o47) + '\063', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + '\x35' + '\060', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'7'), chr(0b1010111 + 0o15) + chr(0b1100101) + chr(7259 - 7160) + chr(0b1101111) + '\x64' + chr(0b1100101))('\165' + chr(116) + chr(0b101110 + 0o70) + chr(45) + chr(0b100100 + 0o24)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def _vmSZso8yyC2(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001), 11400 - 11392)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'FP\xb5\x17t\x94\x9a\xae\x89\xc8\xf7\x01Bk\xa1\xba\x07\x16'), chr(1208 - 1108) + '\145' + '\143' + chr(10474 - 10363) + chr(100) + chr(5988 - 5887))(chr(6929 - 6812) + '\x74' + chr(0b11110 + 0o110) + chr(0b101101) + '\070'))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'UP\x88Hb\xfe\x99\x97\xb1\xe5\xf0\x1d'), chr(100) + chr(0b11 + 0o142) + chr(0b1001111 + 0o24) + chr(111) + chr(7708 - 7608) + '\145')(chr(0b1110101) + chr(9115 - 8999) + chr(0b1100110) + chr(0b101101) + '\070')), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_reporter
def kill_reporter(self, check_alive=True): """Kill the reporter. Args: check_alive (bool): Raise an exception if the process was already dead. """ # reporter is started only in PY3. if PY3: self._kill_process_type( ray_constants.PROCESS_TYPE_REPORTER, check_alive=check_alive)
python
def kill_reporter(self, check_alive=True): """Kill the reporter. Args: check_alive (bool): Raise an exception if the process was already dead. """ # reporter is started only in PY3. if PY3: self._kill_process_type( ray_constants.PROCESS_TYPE_REPORTER, check_alive=check_alive)
[ "def", "kill_reporter", "(", "self", ",", "check_alive", "=", "True", ")", ":", "# reporter is started only in PY3.", "if", "PY3", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_REPORTER", ",", "check_alive", "=", "check_alive", ")" ]
Kill the reporter. Args: check_alive (bool): Raise an exception if the process was already dead.
[ "Kill", "the", "reporter", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L621-L631
train
Kill the reporter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl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iBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b1101111) + chr(0b110100) + chr(205 - 154), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + '\x33' + '\x32', 0o10), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\157' + chr(0b110001) + '\060' + '\060', 2920 - 2912), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1453 - 1403) + '\064' + chr(50), 0o10), ehT0Px3KOsy9(chr(1154 - 1106) + chr(2212 - 2101) + '\x31' + chr(1174 - 1124) + chr(0b110000), 3854 - 3846), ehT0Px3KOsy9(chr(1330 - 1282) + chr(0b1100110 + 0o11) + chr(0b11000 + 0o33) + chr(50) + '\066', 6222 - 6214), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(6734 - 6623) + chr(2358 - 2307) + chr(0b100100 + 0o14) + chr(2137 - 2087), 0b1000), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\x6f' + chr(49) + chr(48) + '\065', 0b1000), ehT0Px3KOsy9('\060' + chr(8078 - 7967) + '\x33' + chr(50) + chr(0b11101 + 0o26), 0o10), ehT0Px3KOsy9(chr(2211 - 2163) + chr(0b1100001 + 0o16) + chr(0b110011) + '\064' + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(1766 - 1718) + '\157' + '\x31' + '\x30' + chr(0b110101), 8), ehT0Px3KOsy9(chr(836 - 788) + '\x6f' + '\x35' + chr(0b110001), 31011 - 31003), ehT0Px3KOsy9('\060' + chr(0b1101000 + 0o7) + chr(49) + chr(103 - 50) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(3792 - 3681) + '\x37' + '\061', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\x33' + '\062' + chr(0b110011), 8), ehT0Px3KOsy9('\x30' + chr(0b1001010 + 0o45) + chr(0b11011 + 0o26) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(9050 - 8939) + chr(452 - 401) + chr(48) + chr(0b11010 + 0o35), 53386 - 53378), ehT0Px3KOsy9(chr(0b110000) + chr(7168 - 7057) + chr(1992 - 1942) + chr(52) + '\064', 3945 - 3937), ehT0Px3KOsy9('\060' + chr(11314 - 11203) + '\x31' + '\063' + '\067', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(51) + chr(55) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\157' + chr(817 - 766) + '\062' + '\062', 36726 - 36718), ehT0Px3KOsy9(chr(445 - 397) + chr(0b1101111) + chr(0b101100 + 0o6) + '\x36' + chr(2240 - 2187), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x37' + chr(0b11110 + 0o26), 0b1000), ehT0Px3KOsy9(chr(2018 - 1970) + chr(111) + chr(2146 - 2096) + chr(0b110100) + chr(0b100101 + 0o17), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + '\x31' + chr(53), 53933 - 53925), ehT0Px3KOsy9('\x30' + '\157' + '\x35' + '\061', 8), ehT0Px3KOsy9(chr(0b110000) + chr(10305 - 10194) + chr(2268 - 2218) + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(1009 - 954) + '\x31', 0b1000), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(0b100100 + 0o16) + chr(0b100010 + 0o20) + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2080 - 2030) + chr(52) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(144 - 96) + '\x6f' + chr(51) + '\x35' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(5177 - 5066) + chr(0b110010) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(9842 - 9731) + chr(962 - 913), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b101110 + 0o101) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(3352 - 3241) + chr(0b10111 + 0o34) + chr(548 - 500) + chr(0b1001 + 0o54), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + chr(0b1001 + 0o55) + chr(0b10010 + 0o43), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + '\066' + chr(0b100100 + 0o16), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(2480 - 2369) + chr(0b100 + 0o55) + chr(0b110101) + '\064', 0b1000), ehT0Px3KOsy9('\060' + chr(10230 - 10119) + chr(0b101001 + 0o10) + '\063' + chr(2105 - 2051), 31270 - 31262), ehT0Px3KOsy9(chr(1924 - 1876) + '\x6f' + chr(1307 - 1256) + chr(2097 - 2047) + '\x35', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + chr(1391 - 1338) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\r'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(0b10100 + 0o120) + chr(101))('\165' + chr(116) + '\x66' + chr(0b10001 + 0o34) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def H6rC4U7uXjD1(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9(chr(48) + chr(0b111011 + 0o64) + chr(0b101000 + 0o11), 8)): if YgURjh4t3UZu: xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'|1)\xce<\x89\xb27\xbc\x87 Z\x18f\xa7t\xb7\xc1'), chr(0b101011 + 0o71) + chr(3143 - 3042) + chr(99) + '\x6f' + chr(7648 - 7548) + chr(0b1010 + 0o133))('\165' + chr(0b110010 + 0o102) + chr(9782 - 9680) + '\x2d' + '\070'))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'R8\x18\xc59\xac\x81.\xb6\xb12\x1d'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + '\144' + '\x65')('\x75' + '\164' + chr(0b111 + 0o137) + '\055' + '\070')), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_dashboard
def kill_dashboard(self, check_alive=True): """Kill the dashboard. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_DASHBOARD, check_alive=check_alive)
python
def kill_dashboard(self, check_alive=True): """Kill the dashboard. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_DASHBOARD, check_alive=check_alive)
[ "def", "kill_dashboard", "(", "self", ",", "check_alive", "=", "True", ")", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_DASHBOARD", ",", "check_alive", "=", "check_alive", ")" ]
Kill the dashboard. Args: check_alive (bool): Raise an exception if the process was already dead.
[ "Kill", "the", "dashboard", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L633-L641
train
Kill the dashboard.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,T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o49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\x33' + chr(0b110000), 46524 - 46516), ehT0Px3KOsy9('\060' + chr(12243 - 12132) + chr(0b101011 + 0o6) + chr(0b110100) + '\065', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110100) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(816 - 766) + '\065' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(860 - 812) + '\157' + '\062' + chr(517 - 469) + chr(1875 - 1827), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(881 - 831) + chr(0b101000 + 0o11) + chr(2038 - 1986), 25338 - 25330), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1010000 + 0o37) + chr(1381 - 1328) + chr(2075 - 2022), 0b1000), ehT0Px3KOsy9(chr(0b1100 + 0o44) + chr(512 - 401) + chr(0b110001) + chr(2031 - 1980) + chr(1220 - 1167), 10434 - 10426), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\157' + chr(0b110011) + '\067' + chr(2519 - 2464), 5244 - 5236), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(0b110111) + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(1952 - 1841) + '\x32' + chr(0b101001 + 0o11) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(518 - 407) + chr(0b110011) + '\x35' + chr(0b110010), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + '\061' + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b101101 + 0o4) + chr(0b10110 + 0o35), ord("\x08")), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + chr(742 - 692) + chr(54), 47203 - 47195), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(55) + chr(52), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + '\067' + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1101111) + chr(923 - 874) + chr(0b110110) + '\060', 34925 - 34917), ehT0Px3KOsy9('\x30' + chr(7688 - 7577) + '\x31' + chr(0b110011) + chr(54), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(1859 - 1810) + chr(0b110110) + chr(0b11110 + 0o27), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + '\060' + '\x37', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1100 + 0o143) + chr(1802 - 1753) + chr(86 - 33) + chr(484 - 434), 35614 - 35606), ehT0Px3KOsy9('\x30' + chr(10553 - 10442) + '\x32' + chr(1235 - 1181) + chr(50), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(55) + '\x35', 8), ehT0Px3KOsy9('\x30' + chr(7445 - 7334) + '\x33' + chr(0b110000) + chr(0b100011 + 0o16), 0o10), ehT0Px3KOsy9('\x30' + chr(0b110101 + 0o72) + chr(0b101011 + 0o10) + '\063' + chr(0b1010 + 0o52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1100 + 0o143) + chr(0b1 + 0o62) + chr(50) + chr(0b110011), 34420 - 34412), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(11672 - 11561) + chr(51) + '\060' + chr(51), 60128 - 60120), ehT0Px3KOsy9(chr(890 - 842) + chr(111) + '\x35' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + '\060' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(111) + chr(0b100010 + 0o20) + '\x37' + '\x36', 61017 - 61009), ehT0Px3KOsy9(chr(1449 - 1401) + '\157' + '\x32' + chr(0b101110 + 0o6) + chr(1835 - 1785), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100101 + 0o14) + '\065' + '\x31', 53454 - 53446), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + chr(0b101111 + 0o3) + chr(728 - 680), ord("\x08")), ehT0Px3KOsy9(chr(719 - 671) + chr(0b1011000 + 0o27) + chr(0b11110 + 0o23) + chr(52), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + chr(2435 - 2384) + chr(0b110010), 25602 - 25594), ehT0Px3KOsy9('\060' + '\x6f' + chr(672 - 623) + '\063' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x33' + chr(54) + chr(0b110110 + 0o1), 0o10), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\157' + chr(49) + chr(51), 0o10), ehT0Px3KOsy9(chr(191 - 143) + chr(1781 - 1670) + '\x33' + chr(0b101100 + 0o12) + chr(0b11101 + 0o27), 64683 - 64675)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x35' + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6'), '\x64' + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + chr(0b100 + 0o141))(chr(4131 - 4014) + chr(0b100 + 0o160) + chr(102) + chr(0b10111 + 0o26) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def muKSDxwcfM3T(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001), 51373 - 51365)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x87\x0e\x88\xc4\xec\xd3]/\x90\x1e\xf1\x99\xfa\xd4b\x05\x89\x15'), chr(0b110110 + 0o56) + '\x65' + chr(1757 - 1658) + '\x6f' + chr(3407 - 3307) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + '\070'))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95\x08\x88\xfd\xf6\xd9`6\xbe$\xda\xa6'), chr(0b1000011 + 0o41) + '\x65' + '\x63' + '\157' + chr(100) + '\145')(chr(117) + '\x74' + chr(0b111011 + 0o53) + chr(0b10111 + 0o26) + chr(0b111000))), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_monitor
def kill_monitor(self, check_alive=True): """Kill the monitor. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_MONITOR, check_alive=check_alive)
python
def kill_monitor(self, check_alive=True): """Kill the monitor. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_MONITOR, check_alive=check_alive)
[ "def", "kill_monitor", "(", "self", ",", "check_alive", "=", "True", ")", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_MONITOR", ",", "check_alive", "=", "check_alive", ")" ]
Kill the monitor. Args: check_alive (bool): Raise an exception if the process was already dead.
[ "Kill", "the", "monitor", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L643-L651
train
Kill the monitor.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcY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8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(161 - 112) + '\063', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + chr(0b1101 + 0o50) + chr(240 - 189), 58921 - 58913), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010000 + 0o37) + chr(1286 - 1236) + '\065' + chr(2418 - 2365), 9256 - 9248), ehT0Px3KOsy9(chr(48) + chr(111) + '\x34', 48942 - 48934), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + '\067' + '\064', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(2145 - 2095) + chr(1864 - 1814) + chr(2223 - 2173), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110111) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b100 + 0o153) + chr(51) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(102 - 51) + chr(2188 - 2139) + chr(936 - 884), 0b1000), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(10975 - 10864) + chr(744 - 691) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(5732 - 5621) + '\x37' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101111) + chr(0b110011) + chr(0b10011 + 0o35) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\x34' + '\062', 0o10), ehT0Px3KOsy9(chr(2230 - 2182) + chr(0b1101111) + chr(0b110101) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(1446 - 1398) + chr(0b100101 + 0o112) + chr(950 - 897), 0o10), ehT0Px3KOsy9(chr(1666 - 1618) + chr(0b1101111) + chr(0b1010 + 0o47) + chr(0b110111) + '\061', 0b1000), ehT0Px3KOsy9(chr(604 - 556) + chr(0b1101111) + '\x33' + '\x36' + chr(0b100 + 0o62), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(226 - 175) + chr(52) + chr(860 - 808), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b1111 + 0o43) + chr(0b10110 + 0o41), 0b1000), ehT0Px3KOsy9('\060' + chr(0b101000 + 0o107) + chr(0b100010 + 0o17) + '\x37' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(2087 - 2039) + chr(999 - 888) + chr(0b110011 + 0o0) + chr(0b11101 + 0o23) + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x31' + chr(0b110111) + chr(0b100110 + 0o21), 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\157' + '\062' + chr(0b101111 + 0o2), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10101 + 0o36) + '\061' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b10 + 0o155) + chr(49) + '\060' + chr(0b100010 + 0o16), ord("\x08")), ehT0Px3KOsy9(chr(0b1001 + 0o47) + '\157' + '\x32' + '\063' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(335 - 280) + chr(828 - 779), 0b1000), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111 + 0o0) + chr(51) + '\063' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b110110 + 0o71) + chr(1854 - 1805) + chr(485 - 431) + chr(0b100100 + 0o21), 14572 - 14564), ehT0Px3KOsy9('\060' + chr(0b0 + 0o157) + chr(0b110100) + '\x31', 0o10), ehT0Px3KOsy9(chr(2162 - 2114) + chr(3891 - 3780) + chr(49) + '\x31' + chr(53), 37694 - 37686), ehT0Px3KOsy9(chr(156 - 108) + chr(5060 - 4949) + '\062' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + chr(0b110000) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1110 + 0o141) + '\061' + '\061' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(1393 - 1345) + chr(0b1000110 + 0o51) + '\063' + '\065' + chr(0b110011), 0b1000), ehT0Px3KOsy9('\060' + chr(2469 - 2358) + '\061' + '\065' + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(0b100000 + 0o117) + '\061' + chr(2123 - 2068) + chr(53), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b101 + 0o152) + '\x32' + '\060' + chr(1588 - 1534), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10010 + 0o37) + chr(0b110010) + '\x31', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\061' + '\x37' + chr(977 - 926), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + chr(1737 - 1684) + '\060', 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'%'), chr(6226 - 6126) + chr(1189 - 1088) + '\143' + chr(6155 - 6044) + chr(9817 - 9717) + '\145')('\x75' + chr(0b111101 + 0o67) + chr(6098 - 5996) + chr(0b101101) + chr(3044 - 2988)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def GZd4GKIBkv9C(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9(chr(48) + chr(2210 - 2099) + chr(840 - 791), 0o10)): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'T\x00\xc4h\xd0\xcd\x88k\xa3KZ\xb7Qtq\x00\x86\x81'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(13249 - 13132) + '\x74' + chr(0b101 + 0o141) + chr(1445 - 1400) + chr(56)))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'X\x03\xc7O\xda\xe6\x91C\xff\x1bn\xbe'), '\x64' + chr(0b101100 + 0o71) + chr(0b1100011) + '\157' + chr(0b1010 + 0o132) + chr(0b10011 + 0o122))(chr(12347 - 12230) + chr(0b101011 + 0o111) + chr(0b1100110) + chr(309 - 264) + chr(1301 - 1245))), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_raylet_monitor
def kill_raylet_monitor(self, check_alive=True): """Kill the raylet monitor. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_RAYLET_MONITOR, check_alive=check_alive)
python
def kill_raylet_monitor(self, check_alive=True): """Kill the raylet monitor. Args: check_alive (bool): Raise an exception if the process was already dead. """ self._kill_process_type( ray_constants.PROCESS_TYPE_RAYLET_MONITOR, check_alive=check_alive)
[ "def", "kill_raylet_monitor", "(", "self", ",", "check_alive", "=", "True", ")", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_RAYLET_MONITOR", ",", "check_alive", "=", "check_alive", ")" ]
Kill the raylet monitor. Args: check_alive (bool): Raise an exception if the process was already dead.
[ "Kill", "the", "raylet", "monitor", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L653-L661
train
Kill the raylet monitor.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSb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Fey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(607 - 559) + '\157' + '\x32' + chr(234 - 184), 55438 - 55430), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + '\062' + chr(0b110011 + 0o3) + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(334 - 284) + chr(0b1111 + 0o50) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b11010 + 0o26) + '\x6f' + chr(2234 - 2184) + chr(1322 - 1270) + '\x31', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1329 - 1278) + chr(52) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(52) + chr(0b1010 + 0o46), ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1010000 + 0o37) + chr(51) + chr(0b100011 + 0o22) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10011 + 0o40) + chr(0b101001 + 0o13) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(49) + chr(0b110011), 64539 - 64531), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + '\x37' + '\x34', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b111000 + 0o67) + chr(0b110001) + chr(0b110011) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(53) + '\x37', 0o10), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1101111) + chr(0b10000 + 0o46) + chr(0b110111), 43835 - 43827), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(111) + chr(0b101010 + 0o11) + '\x36' + chr(0b101100 + 0o7), 0o10), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(0b1101001 + 0o6) + chr(0b100110 + 0o13) + chr(394 - 343) + chr(0b110100 + 0o1), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010001 + 0o36) + chr(666 - 616), ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1101111) + '\063' + chr(51) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1000001 + 0o56) + chr(51) + '\065', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(10997 - 10886) + chr(51) + chr(51) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1011101 + 0o22) + chr(0b10110 + 0o34) + chr(2555 - 2500) + chr(0b11100 + 0o30), 0o10), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + '\067' + chr(92 - 44), 59687 - 59679), ehT0Px3KOsy9(chr(48) + chr(6874 - 6763) + chr(1660 - 1611) + '\063' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\064', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + '\x32' + chr(0b100010 + 0o23), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010 + 0o4) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(2035 - 1924) + chr(210 - 160) + chr(0b110100) + chr(55), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(1584 - 1530), 31209 - 31201), ehT0Px3KOsy9(chr(2004 - 1956) + chr(0b1101111) + chr(0b110011) + chr(0b1100 + 0o52) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\061' + '\x37' + chr(563 - 515), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(0b110001), 20838 - 20830), ehT0Px3KOsy9(chr(48) + '\157' + chr(51) + chr(1295 - 1241) + '\060', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b100100 + 0o15) + chr(0b10111 + 0o31) + chr(48), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + '\x34' + chr(48), 8), ehT0Px3KOsy9('\x30' + chr(0b11010 + 0o125) + chr(52) + chr(53), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110011) + chr(51) + chr(654 - 601), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(0b1011 + 0o45) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(640 - 529) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(0b11110 + 0o27) + '\067', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\067' + chr(1122 - 1071), 0o10), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\x6f' + chr(1902 - 1852) + chr(50) + chr(827 - 778), 15559 - 15551)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + chr(53) + chr(48), 2930 - 2922)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'<'), chr(2537 - 2437) + chr(0b1100101) + '\x63' + '\157' + chr(0b100101 + 0o77) + '\x65')(chr(0b101110 + 0o107) + chr(116) + chr(102) + chr(45) + chr(0b11101 + 0o33)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def bRQiOMVNshKb(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9('\060' + '\x6f' + '\x31', ord("\x08"))): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'M\xdd\xd2\xcd\x8a\xff\x98\x92\xa4\x9f<\x1cD\xac){\xabx'), chr(0b11010 + 0o112) + '\145' + '\x63' + chr(0b101110 + 0o101) + '\x64' + '\x65')('\x75' + chr(634 - 518) + chr(0b1100110) + '\x2d' + '\x38'))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'[\xc3\x89\x94\x84\xf9\xdc\xd3\x8a\xbd\x11\x0b'), chr(100) + chr(3535 - 3434) + chr(7568 - 7469) + '\x6f' + chr(5172 - 5072) + chr(4387 - 4286))('\165' + chr(0b1 + 0o163) + '\146' + chr(0b100010 + 0o13) + chr(0b100101 + 0o23))), check_alive=xLSZ73E84kkq)
ray-project/ray
python/ray/node.py
Node.kill_all_processes
def kill_all_processes(self, check_alive=True, allow_graceful=False): """Kill all of the processes. Note that This is slower than necessary because it calls kill, wait, kill, wait, ... instead of kill, kill, ..., wait, wait, ... Args: check_alive (bool): Raise an exception if any of the processes were already dead. """ # Kill the raylet first. This is important for suppressing errors at # shutdown because we give the raylet a chance to exit gracefully and # clean up its child worker processes. If we were to kill the plasma # store (or Redis) first, that could cause the raylet to exit # ungracefully, leading to more verbose output from the workers. if ray_constants.PROCESS_TYPE_RAYLET in self.all_processes: self._kill_process_type( ray_constants.PROCESS_TYPE_RAYLET, check_alive=check_alive, allow_graceful=allow_graceful) # We call "list" to copy the keys because we are modifying the # dictionary while iterating over it. for process_type in list(self.all_processes.keys()): self._kill_process_type( process_type, check_alive=check_alive, allow_graceful=allow_graceful)
python
def kill_all_processes(self, check_alive=True, allow_graceful=False): """Kill all of the processes. Note that This is slower than necessary because it calls kill, wait, kill, wait, ... instead of kill, kill, ..., wait, wait, ... Args: check_alive (bool): Raise an exception if any of the processes were already dead. """ # Kill the raylet first. This is important for suppressing errors at # shutdown because we give the raylet a chance to exit gracefully and # clean up its child worker processes. If we were to kill the plasma # store (or Redis) first, that could cause the raylet to exit # ungracefully, leading to more verbose output from the workers. if ray_constants.PROCESS_TYPE_RAYLET in self.all_processes: self._kill_process_type( ray_constants.PROCESS_TYPE_RAYLET, check_alive=check_alive, allow_graceful=allow_graceful) # We call "list" to copy the keys because we are modifying the # dictionary while iterating over it. for process_type in list(self.all_processes.keys()): self._kill_process_type( process_type, check_alive=check_alive, allow_graceful=allow_graceful)
[ "def", "kill_all_processes", "(", "self", ",", "check_alive", "=", "True", ",", "allow_graceful", "=", "False", ")", ":", "# Kill the raylet first. This is important for suppressing errors at", "# shutdown because we give the raylet a chance to exit gracefully and", "# clean up its child worker processes. If we were to kill the plasma", "# store (or Redis) first, that could cause the raylet to exit", "# ungracefully, leading to more verbose output from the workers.", "if", "ray_constants", ".", "PROCESS_TYPE_RAYLET", "in", "self", ".", "all_processes", ":", "self", ".", "_kill_process_type", "(", "ray_constants", ".", "PROCESS_TYPE_RAYLET", ",", "check_alive", "=", "check_alive", ",", "allow_graceful", "=", "allow_graceful", ")", "# We call \"list\" to copy the keys because we are modifying the", "# dictionary while iterating over it.", "for", "process_type", "in", "list", "(", "self", ".", "all_processes", ".", "keys", "(", ")", ")", ":", "self", ".", "_kill_process_type", "(", "process_type", ",", "check_alive", "=", "check_alive", ",", "allow_graceful", "=", "allow_graceful", ")" ]
Kill all of the processes. Note that This is slower than necessary because it calls kill, wait, kill, wait, ... instead of kill, kill, ..., wait, wait, ... Args: check_alive (bool): Raise an exception if any of the processes were already dead.
[ "Kill", "all", "of", "the", "processes", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L663-L690
train
Kill all of the processes in the cluster.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7Z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iDQ_gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\x6f' + '\062' + chr(2325 - 2273) + '\x33', 0b1000), ehT0Px3KOsy9('\060' + chr(3445 - 3334) + chr(0b110010) + chr(1135 - 1085) + chr(52), 46587 - 46579), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + '\062' + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b110100 + 0o73) + chr(54) + chr(0b110110), 19668 - 19660), ehT0Px3KOsy9(chr(48) + chr(1798 - 1687) + chr(699 - 649) + chr(0b0 + 0o67) + chr(340 - 291), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001000 + 0o47) + chr(0b110001) + chr(0b1111 + 0o42) + chr(1607 - 1553), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b10111 + 0o33) + chr(0b1101 + 0o52), 27922 - 27914), ehT0Px3KOsy9(chr(48) + chr(0b10100 + 0o133) + '\x32' + chr(48) + chr(180 - 127), 18413 - 18405), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(11750 - 11639) + chr(0b10110 + 0o36) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(1976 - 1865) + chr(418 - 366) + chr(48), 3000 - 2992), ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\x6f' + '\x31' + chr(1881 - 1832) + '\062', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(1163 - 1113) + chr(55), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + '\x34' + chr(0b101111 + 0o1), 0b1000), ehT0Px3KOsy9(chr(270 - 222) + '\157' + chr(0b101111 + 0o2) + chr(55) + chr(54), 50512 - 50504), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(0b110000) + chr(1753 - 1699), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101110 + 0o1) + chr(0b11000 + 0o31) + chr(0b110010) + chr(0b101001 + 0o12), 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\157' + '\x31' + chr(362 - 313) + '\064', 0o10), ehT0Px3KOsy9(chr(1368 - 1320) + chr(111) + chr(0b1010 + 0o50) + chr(52) + '\060', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\x34' + chr(184 - 134), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + chr(150 - 99) + chr(51) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(111) + '\x32' + chr(0b110001) + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(298 - 248) + chr(2346 - 2291) + '\065', 0b1000), ehT0Px3KOsy9(chr(422 - 374) + chr(111) + chr(252 - 198) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1010111 + 0o30) + chr(49) + '\063' + chr(341 - 290), 0b1000), ehT0Px3KOsy9('\060' + chr(995 - 884) + chr(1349 - 1297) + chr(53), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000101 + 0o52) + chr(50) + chr(51) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(651 - 540) + '\063' + chr(54) + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(0b110100) + '\x37', 35791 - 35783), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(0b110011) + chr(97 - 49), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(48), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(1333 - 1285) + chr(3766 - 3655) + '\061' + '\x32' + chr(0b10010 + 0o43), 8), ehT0Px3KOsy9('\x30' + chr(6723 - 6612) + chr(0b11111 + 0o22) + '\065' + chr(0b101110 + 0o3), 0b1000), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(0b1110 + 0o141) + chr(1959 - 1910) + chr(0b110001) + '\x35', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(1149 - 1094) + chr(0b110001), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + chr(127 - 73) + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101100 + 0o5) + chr(0b100111 + 0o11) + chr(52), 0o10), ehT0Px3KOsy9(chr(1109 - 1061) + chr(0b111000 + 0o67) + '\x37' + '\062', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(300 - 249) + chr(847 - 797) + chr(55), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + chr(2021 - 1967) + chr(0b110110), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(111) + '\x35' + '\060', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x8d'), chr(739 - 639) + '\x65' + '\143' + chr(199 - 88) + chr(1977 - 1877) + '\145')(chr(0b110 + 0o157) + chr(3019 - 2903) + '\x66' + chr(45) + chr(0b1010 + 0o56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def c3AvlGMGIvdG(oVre8I6UXc3b, xLSZ73E84kkq=ehT0Px3KOsy9(chr(48) + chr(0b110001 + 0o76) + chr(0b110001), 0o10), zKVeiTsPd7Sf=ehT0Px3KOsy9(chr(0b100 + 0o54) + '\x6f' + '\060', 0o10)): if xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\xd3<\x05\xd8\nA\xb1\x17\x152M'), chr(100) + chr(0b1100101) + chr(0b11100 + 0o107) + '\x6f' + chr(0b101110 + 0o66) + chr(0b1000111 + 0o36))(chr(0b1011010 + 0o33) + '\164' + chr(102) + '\x2d' + '\x38')) in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe5\xfbf\x01\xd4\tt\xe2^\x17\x1e}'), chr(0b1000001 + 0o43) + '\145' + '\x63' + '\x6f' + '\x64' + chr(0b1100101))('\165' + chr(0b101 + 0o157) + chr(102) + chr(0b101101) + chr(56))): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfc\xff<Z\xd5\x11g\xf7HC/d\x13!\xb2*<\xc5'), '\x64' + chr(5418 - 5317) + '\143' + chr(0b1101111) + '\x64' + chr(0b10111 + 0o116))(chr(0b1010110 + 0o37) + '\164' + '\146' + '\055' + chr(0b110000 + 0o10)))(xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\xd3<\x05\xd8\nA\xb1\x17\x152M'), chr(1481 - 1381) + chr(0b1100101) + chr(3325 - 3226) + chr(6773 - 6662) + chr(0b100100 + 0o100) + chr(1494 - 1393))('\165' + chr(116) + '\146' + '\055' + '\070')), check_alive=xLSZ73E84kkq, allow_graceful=zKVeiTsPd7Sf) for mN6JsE9yUBle in YyaZ4tpXu4lf(xafqLlk3kkUe(oVre8I6UXc3b.all_processes, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc8\xf1,E'), '\x64' + chr(0b1010100 + 0o21) + chr(150 - 51) + chr(0b111000 + 0o67) + chr(9370 - 9270) + chr(101))('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)))()): xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfc\xff<Z\xd5\x11g\xf7HC/d\x13!\xb2*<\xc5'), chr(0b110101 + 0o57) + chr(5559 - 5458) + '\143' + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(0b1101101 + 0o7) + chr(5391 - 5289) + chr(1241 - 1196) + chr(56)))(mN6JsE9yUBle, check_alive=xLSZ73E84kkq, allow_graceful=zKVeiTsPd7Sf)
ray-project/ray
python/ray/node.py
Node.live_processes
def live_processes(self): """Return a list of the live processes. Returns: A list of the live processes. """ result = [] for process_type, process_infos in self.all_processes.items(): for process_info in process_infos: if process_info.process.poll() is None: result.append((process_type, process_info.process)) return result
python
def live_processes(self): """Return a list of the live processes. Returns: A list of the live processes. """ result = [] for process_type, process_infos in self.all_processes.items(): for process_info in process_infos: if process_info.process.poll() is None: result.append((process_type, process_info.process)) return result
[ "def", "live_processes", "(", "self", ")", ":", "result", "=", "[", "]", "for", "process_type", ",", "process_infos", "in", "self", ".", "all_processes", ".", "items", "(", ")", ":", "for", "process_info", "in", "process_infos", ":", "if", "process_info", ".", "process", ".", "poll", "(", ")", "is", "None", ":", "result", ".", "append", "(", "(", "process_type", ",", "process_info", ".", "process", ")", ")", "return", "result" ]
Return a list of the live processes. Returns: A list of the live processes.
[ "Return", "a", "list", "of", "the", "live", "processes", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/node.py#L692-L703
train
Return a list of the live processes.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9Flfzs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2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\x6f' + chr(0b110010) + chr(2185 - 2134) + chr(52), 9370 - 9362), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + chr(0b10011 + 0o37) + chr(0b1011 + 0o51), 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1101010 + 0o5) + '\x32' + chr(51) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1011 + 0o51) + '\065', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + '\063' + chr(1477 - 1426), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(50) + chr(0b1001 + 0o54), 58828 - 58820), ehT0Px3KOsy9(chr(1085 - 1037) + chr(0b1101111) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b0 + 0o60) + '\157' + chr(2545 - 2491) + chr(1423 - 1373), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(2305 - 2256) + chr(0b101011 + 0o10) + chr(2128 - 2080), 0b1000), ehT0Px3KOsy9('\x30' + chr(3028 - 2917) + '\067' + chr(0b110001), 34752 - 34744), ehT0Px3KOsy9(chr(48) + '\157' + chr(2031 - 1982) + chr(52) + '\067', 25641 - 25633), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(0b110001 + 0o3) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(0b110000 + 0o77) + chr(50) + chr(53) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(1592 - 1544) + '\157' + chr(0b110011) + chr(1675 - 1621) + '\067', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110011) + '\x37' + chr(2209 - 2155), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2295 - 2244) + chr(54) + chr(2247 - 2199), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + chr(53) + chr(0b101101 + 0o3), ord("\x08")), ehT0Px3KOsy9(chr(1244 - 1196) + chr(8967 - 8856) + chr(0b110110) + '\x32', 8), ehT0Px3KOsy9(chr(278 - 230) + chr(0b1101111) + chr(2224 - 2174) + chr(1329 - 1277) + chr(50), 55907 - 55899), ehT0Px3KOsy9(chr(48) + '\157' + chr(803 - 753) + chr(0b100101 + 0o21) + chr(612 - 561), 0o10), ehT0Px3KOsy9('\060' + chr(0b1011110 + 0o21) + '\062' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(10984 - 10873) + '\061' + '\064' + chr(0b111 + 0o52), 0o10), ehT0Px3KOsy9(chr(669 - 621) + '\157' + chr(0b110 + 0o55) + chr(0b10110 + 0o41) + chr(50), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(173 - 62) + '\063' + chr(81 - 30) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(9687 - 9576) + chr(268 - 218) + chr(593 - 541) + chr(50), 8), ehT0Px3KOsy9('\060' + chr(0b1100100 + 0o13) + chr(0b110011) + chr(833 - 782) + chr(998 - 944), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b10010 + 0o135) + chr(50) + chr(0b110000) + chr(54), 3014 - 3006), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(676 - 626) + chr(53), 0b1000), ehT0Px3KOsy9('\060' + chr(0b100010 + 0o115) + chr(245 - 195) + chr(50) + chr(2407 - 2355), 8), ehT0Px3KOsy9(chr(48) + chr(924 - 813) + chr(615 - 566) + '\064' + chr(2106 - 2057), 8), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(111) + chr(0b10001 + 0o42) + chr(52) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b10100 + 0o36), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11667 - 11556) + chr(864 - 814) + chr(0b10010 + 0o37) + chr(0b10010 + 0o40), ord("\x08")), ehT0Px3KOsy9('\060' + chr(12157 - 12046) + chr(2168 - 2117) + chr(1474 - 1425) + chr(54), 47873 - 47865), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1504 - 1453) + chr(0b1001 + 0o54) + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + chr(0b110101) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + '\157' + '\x31' + '\064' + chr(0b101001 + 0o14), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001010 + 0o45) + chr(0b110011) + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(1793 - 1745) + '\157' + '\x37' + '\x37', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\x6f' + '\x35' + chr(0b10111 + 0o31), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb2'), '\x64' + '\145' + chr(957 - 858) + chr(111) + chr(5648 - 5548) + chr(8061 - 7960))('\x75' + chr(0b1100101 + 0o17) + '\146' + '\055' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def B_qAPPtSd1tb(oVre8I6UXc3b): ShZmEKfTkAOZ = [] for (mN6JsE9yUBle, wBcFGfGy0bfk) in xafqLlk3kkUe(oVre8I6UXc3b.all_processes, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd2\xee\xe8@\xd2\x0f6{4j/['), '\x64' + '\145' + chr(0b101100 + 0o67) + '\x6f' + chr(8630 - 8530) + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(1136 - 1091) + '\x38'))(): for PjbNipqGDFj7 in wBcFGfGy0bfk: if xafqLlk3kkUe(PjbNipqGDFj7.process, xafqLlk3kkUe(SXOLrMavuUCe(b'\xec\xfb\xf2I'), chr(0b1100100) + chr(4408 - 4307) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(4791 - 4675) + '\x66' + chr(45) + '\x38'))() is None: xafqLlk3kkUe(ShZmEKfTkAOZ, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfd\xe4\xee@\xf51'), '\x64' + chr(0b11110 + 0o107) + chr(0b11001 + 0o112) + chr(4129 - 4018) + chr(100) + chr(0b1100101))('\165' + chr(116) + chr(7181 - 7079) + chr(0b1101 + 0o40) + chr(56)))((mN6JsE9yUBle, xafqLlk3kkUe(PjbNipqGDFj7, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\xf5\xeeM\xf9\x1a5x\x07]7\x0c'), chr(0b100101 + 0o77) + chr(0b110010 + 0o63) + '\143' + chr(0b100 + 0o153) + chr(1709 - 1609) + '\x65')(chr(117) + chr(0b1110100) + chr(10051 - 9949) + chr(45) + '\x38')))) return ShZmEKfTkAOZ
ray-project/ray
python/ray/rllib/agents/es/es.py
create_shared_noise
def create_shared_noise(count): """Create a large array of noise to be shared by all workers.""" seed = 123 noise = np.random.RandomState(seed).randn(count).astype(np.float32) return noise
python
def create_shared_noise(count): """Create a large array of noise to be shared by all workers.""" seed = 123 noise = np.random.RandomState(seed).randn(count).astype(np.float32) return noise
[ "def", "create_shared_noise", "(", "count", ")", ":", "seed", "=", "123", "noise", "=", "np", ".", "random", ".", "RandomState", "(", "seed", ")", ".", "randn", "(", "count", ")", ".", "astype", "(", "np", ".", "float32", ")", "return", "noise" ]
Create a large array of noise to be shared by all workers.
[ "Create", "a", "large", "array", "of", "noise", "to", "be", "shared", "by", "all", "workers", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/es/es.py#L51-L55
train
Create a large array of noise to be shared by all workers.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufV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nh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + '\065' + '\061', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(10844 - 10733) + chr(0b110011) + '\x34', 24450 - 24442), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b1011011 + 0o24) + '\x31' + chr(453 - 398) + '\x30', 0o10), ehT0Px3KOsy9(chr(1575 - 1527) + chr(0b1100010 + 0o15) + chr(51) + '\067' + chr(0b100101 + 0o13), 0b1000), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(111) + chr(0b1100 + 0o47) + chr(0b110111) + chr(2276 - 2227), 39703 - 39695), ehT0Px3KOsy9('\x30' + chr(0b11110 + 0o121) + chr(49) + chr(0b110000) + chr(53), 0o10), ehT0Px3KOsy9(chr(48) + chr(1225 - 1114) + chr(2345 - 2296) + '\x36' + '\066', ord("\x08")), ehT0Px3KOsy9(chr(1769 - 1721) + chr(0b1101111) + '\063' + chr(0b101110 + 0o10) + chr(0b110111), 64131 - 64123), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(111) + chr(0b110011) + chr(0b110000) + chr(0b100000 + 0o23), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110000) + chr(0b10010 + 0o44), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101000 + 0o11) + '\x31' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(8794 - 8683) + chr(0b110011) + chr(0b110110) + chr(49), 49411 - 49403), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + chr(0b11011 + 0o32) + '\064', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + '\x32' + chr(0b10110 + 0o36), 48274 - 48266), ehT0Px3KOsy9(chr(1224 - 1176) + chr(0b110 + 0o151) + chr(1512 - 1463) + chr(2233 - 2178) + chr(0b110001), 30863 - 30855), ehT0Px3KOsy9(chr(0b11101 + 0o23) + '\x6f' + '\x31' + '\x36' + '\x32', 50053 - 50045), ehT0Px3KOsy9(chr(48) + chr(0b1000101 + 0o52) + '\063' + '\x35' + '\x32', 31846 - 31838), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(12151 - 12040) + '\064', 24624 - 24616), ehT0Px3KOsy9(chr(1407 - 1359) + chr(111) + '\063' + chr(185 - 130) + chr(0b11011 + 0o27), ord("\x08")), ehT0Px3KOsy9(chr(2236 - 2188) + chr(2356 - 2245) + chr(0b100000 + 0o23) + '\060' + chr(0b110011), 8), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + '\061' + chr(0b110110) + chr(2017 - 1968), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51 - 1) + '\062' + chr(0b10001 + 0o41), 0o10), ehT0Px3KOsy9(chr(48) + chr(2092 - 1981) + '\062' + chr(50) + '\062', 8), ehT0Px3KOsy9(chr(892 - 844) + '\x6f' + chr(0b110010) + '\x34' + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + chr(9855 - 9744) + chr(0b11100 + 0o27) + chr(0b110001) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\x6f' + chr(0b1111 + 0o42) + '\x37' + chr(0b100100 + 0o15), 8), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\157' + chr(0b110011) + chr(2546 - 2494) + chr(48), 38827 - 38819), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + '\061' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x35' + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b1000 + 0o53) + chr(0b101010 + 0o14) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(208 - 160) + '\x6f' + '\x31' + chr(0b100111 + 0o14) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(12100 - 11989) + chr(0b110010) + chr(842 - 793) + chr(2821 - 2766), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(0b110001) + chr(0b110011), 44453 - 44445), ehT0Px3KOsy9(chr(48) + chr(0b100111 + 0o110) + chr(1239 - 1186), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(1914 - 1864) + '\063' + chr(2964 - 2909), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + chr(55) + '\x32', 13645 - 13637), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001010 + 0o45) + chr(1469 - 1418) + '\063' + chr(51), 22196 - 22188), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(6314 - 6203) + '\063' + chr(0b11001 + 0o36) + chr(0b10001 + 0o45), 27913 - 27905)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1832 - 1784) + chr(0b1101111) + '\065' + '\x30', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x87'), chr(0b1100100) + '\x65' + chr(986 - 887) + chr(11486 - 11375) + chr(100) + '\145')(chr(0b1110101) + '\x74' + chr(0b1010 + 0o134) + chr(0b11000 + 0o25) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def lFOFtscN595_(ualWdDeXJEGO): cEhryM0YPR0h = ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + chr(55) + chr(0b1010 + 0o51), 29754 - 29746) MudPQU2D1pmv = WqUC3KWvYVup.random.RandomState(cEhryM0YPR0h).randn(ualWdDeXJEGO).astype(WqUC3KWvYVup.float32) return MudPQU2D1pmv
ray-project/ray
python/ray/experimental/sgd/tfbench/model_config.py
get_model_config
def get_model_config(model_name, dataset): """Map model name to model network configuration.""" model_map = _get_model_map(dataset.name) if model_name not in model_map: raise ValueError("Invalid model name \"%s\" for dataset \"%s\"" % (model_name, dataset.name)) else: return model_map[model_name]()
python
def get_model_config(model_name, dataset): """Map model name to model network configuration.""" model_map = _get_model_map(dataset.name) if model_name not in model_map: raise ValueError("Invalid model name \"%s\" for dataset \"%s\"" % (model_name, dataset.name)) else: return model_map[model_name]()
[ "def", "get_model_config", "(", "model_name", ",", "dataset", ")", ":", "model_map", "=", "_get_model_map", "(", "dataset", ".", "name", ")", "if", "model_name", "not", "in", "model_map", ":", "raise", "ValueError", "(", "\"Invalid model name \\\"%s\\\" for dataset \\\"%s\\\"\"", "%", "(", "model_name", ",", "dataset", ".", "name", ")", ")", "else", ":", "return", "model_map", "[", "model_name", "]", "(", ")" ]
Map model name to model network configuration.
[ "Map", "model", "name", "to", "model", "network", "configuration", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/sgd/tfbench/model_config.py#L41-L48
train
Map model name to model network configuration.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU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8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(0b110 + 0o151) + chr(0b110 + 0o54) + '\066' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101110 + 0o1) + chr(0b110011) + '\064' + '\062', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101100 + 0o5) + chr(0b11111 + 0o26) + chr(0b110101), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b101100 + 0o7) + chr(0b100001 + 0o17) + '\062', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + '\065' + chr(0b110111), 63200 - 63192), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000 + 0o147) + '\x33' + chr(0b110010 + 0o5) + '\x30', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b111100 + 0o63) + chr(937 - 887) + chr(1800 - 1752) + chr(989 - 934), ord("\x08")), ehT0Px3KOsy9('\060' + chr(6061 - 5950) + chr(0b100011 + 0o21) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(1310 - 1262) + chr(0b1101111) + '\061' + '\065' + chr(0b1000 + 0o57), 0o10), ehT0Px3KOsy9(chr(1506 - 1458) + chr(6356 - 6245) + '\062' + '\x33', 43492 - 43484), ehT0Px3KOsy9(chr(241 - 193) + chr(0b1010 + 0o145) + '\061' + chr(1133 - 1085) + chr(996 - 947), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x35' + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\063' + '\067', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(0b11100 + 0o31) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(3247 - 3136) + chr(0b110011) + chr(0b1 + 0o61) + '\062', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b100011 + 0o17) + '\x31' + chr(0b110011), 64398 - 64390), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(0b1000000 + 0o57) + '\062' + chr(1889 - 1835) + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(1796 - 1685) + '\x33' + chr(49) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\063' + '\x32' + chr(2678 - 2626), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(8325 - 8214) + chr(2083 - 2032) + chr(0b110111) + '\x34', 51408 - 51400), ehT0Px3KOsy9(chr(740 - 692) + chr(4315 - 4204) + '\x31' + chr(55) + chr(0b11100 + 0o31), ord("\x08")), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(0b101110 + 0o101) + chr(0b10101 + 0o37) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\x6f' + '\x33' + chr(1978 - 1925) + chr(1942 - 1892), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101110 + 0o1) + chr(0b110010) + chr(0b110110) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(55) + chr(0b10000 + 0o42), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b101011 + 0o104) + '\066' + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\157' + chr(0b101100 + 0o13) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b101100 + 0o6) + '\062' + '\x33', 57230 - 57222), ehT0Px3KOsy9('\x30' + chr(0b1000101 + 0o52) + chr(2012 - 1962) + chr(0b11111 + 0o22), 17595 - 17587), ehT0Px3KOsy9(chr(0b110000) + chr(8096 - 7985) + chr(0b1011 + 0o50) + chr(53) + chr(52), 48017 - 48009), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x31' + chr(0b110111) + '\x35', 8), ehT0Px3KOsy9(chr(748 - 700) + chr(111) + '\061' + '\062' + '\x32', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + chr(52) + chr(0b110011), 55833 - 55825), ehT0Px3KOsy9(chr(0b110000) + chr(6325 - 6214) + chr(386 - 335) + chr(0b110010) + chr(2310 - 2256), 0b1000), ehT0Px3KOsy9('\x30' + chr(8162 - 8051) + '\066' + '\064', 0b1000), ehT0Px3KOsy9('\x30' + chr(5976 - 5865) + chr(0b110010) + '\060' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + chr(51) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b111 + 0o51) + '\157' + chr(49) + chr(1420 - 1369) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(1254 - 1206) + '\x6f' + chr(0b110010) + chr(175 - 127) + chr(50), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110101) + chr(0b110000), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x98'), chr(0b1100100) + chr(0b110111 + 0o56) + '\143' + chr(111) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(0b10000 + 0o126) + '\x2d' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def OBdgPV_pTl17(yJFe33rl9i_r, xQt6gV9VfTO3): o0wNPhqPgDxJ = n0SL5NRtdV4Z(xQt6gV9VfTO3.AIvJRzLdDfgF) if yJFe33rl9i_r not in o0wNPhqPgDxJ: raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\xff\x8c\x1b\xa3\xc3\x91\xe3\x01\x02|%IsL\xbc\xeah\xd5\xec\xf6\xd9\x0e\x00\xca\xd2UA\x1f\xf7p\x98\x1c!\xc6\xa2\x14\xa1x(\xa0'), chr(0b1100100) + '\145' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(101))('\x75' + chr(116) + chr(102) + '\x2d' + '\x38') % (yJFe33rl9i_r, xafqLlk3kkUe(xQt6gV9VfTO3, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf7\xab\x1b\x88\xfd\x82\xcbE+u&j'), '\144' + '\x65' + chr(0b1100011) + chr(10367 - 10256) + chr(7438 - 7338) + chr(0b1100101))(chr(9952 - 9835) + chr(0b1111 + 0o145) + chr(102) + '\055' + chr(56))))) else: return o0wNPhqPgDxJ[yJFe33rl9i_r]()
ray-project/ray
python/ray/experimental/sgd/tfbench/model_config.py
register_model
def register_model(model_name, dataset_name, model_func): """Register a new model that can be obtained with `get_model_config`.""" model_map = _get_model_map(dataset_name) if model_name in model_map: raise ValueError("Model \"%s\" is already registered for dataset" "\"%s\"" % (model_name, dataset_name)) model_map[model_name] = model_func
python
def register_model(model_name, dataset_name, model_func): """Register a new model that can be obtained with `get_model_config`.""" model_map = _get_model_map(dataset_name) if model_name in model_map: raise ValueError("Model \"%s\" is already registered for dataset" "\"%s\"" % (model_name, dataset_name)) model_map[model_name] = model_func
[ "def", "register_model", "(", "model_name", ",", "dataset_name", ",", "model_func", ")", ":", "model_map", "=", "_get_model_map", "(", "dataset_name", ")", "if", "model_name", "in", "model_map", ":", "raise", "ValueError", "(", "\"Model \\\"%s\\\" is already registered for dataset\"", "\"\\\"%s\\\"\"", "%", "(", "model_name", ",", "dataset_name", ")", ")", "model_map", "[", "model_name", "]", "=", "model_func" ]
Register a new model that can be obtained with `get_model_config`.
[ "Register", "a", "new", "model", "that", "can", "be", "obtained", "with", "get_model_config", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/sgd/tfbench/model_config.py#L51-L57
train
Register a new model that can be obtained with get_model_config.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,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ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + chr(51) + chr(1471 - 1420), 50717 - 50709), ehT0Px3KOsy9(chr(48) + '\157' + chr(821 - 768) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\x6f' + chr(0b1001 + 0o51) + chr(0b110101) + '\061', 0o10), ehT0Px3KOsy9(chr(1080 - 1032) + '\157' + chr(400 - 351) + '\x33', 10686 - 10678), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + chr(0b110101) + chr(53), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11 + 0o57) + '\066' + chr(2300 - 2250), 59340 - 59332), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110000 + 0o4) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(4506 - 4395) + '\x31' + chr(1026 - 971), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\067' + chr(636 - 585), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + '\060', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(1038 - 986) + chr(48), 0o10), ehT0Px3KOsy9('\x30' + chr(4873 - 4762) + chr(49) + chr(0b110011) + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(94 - 46) + chr(0b1101011 + 0o4) + chr(0b101100 + 0o7) + chr(0b101011 + 0o7) + chr(0b110010), 45650 - 45642), ehT0Px3KOsy9('\060' + chr(1772 - 1661) + '\x32' + chr(48) + chr(2224 - 2174), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1010011 + 0o34) + chr(1712 - 1663) + chr(0b110001) + chr(0b10101 + 0o35), ord("\x08")), ehT0Px3KOsy9(chr(797 - 749) + '\x6f' + '\067' + chr(0b10101 + 0o34), 0b1000), ehT0Px3KOsy9('\x30' + chr(8986 - 8875) + '\x31' + chr(55) + chr(0b110011), 39930 - 39922), ehT0Px3KOsy9('\x30' + chr(0b111010 + 0o65) + '\061' + '\066' + '\x30', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + chr(0b110111) + '\061', 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x32' + chr(0b100001 + 0o22) + chr(0b1001 + 0o53), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(393 - 344) + '\061' + chr(0b11101 + 0o31), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1001011 + 0o44) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + '\x30' + chr(0b101000 + 0o10), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b100000 + 0o117) + chr(49) + chr(50) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x33' + chr(608 - 557), 0o10), ehT0Px3KOsy9('\060' + chr(9424 - 9313) + chr(51) + '\064' + chr(2726 - 2672), 36512 - 36504), ehT0Px3KOsy9('\x30' + '\x6f' + chr(267 - 217) + '\062' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(10585 - 10474) + chr(53) + chr(0b101100 + 0o12), ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\x6f' + '\x36' + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000 + 0o0) + '\x6f' + chr(0b0 + 0o63) + '\066' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(1546 - 1497) + chr(0b110011), 16170 - 16162), ehT0Px3KOsy9('\x30' + '\157' + chr(317 - 267) + '\062' + '\060', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b11010 + 0o125) + chr(997 - 946) + chr(50) + chr(0b110 + 0o55), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100101 + 0o12) + chr(1416 - 1365) + chr(0b110110) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b11010 + 0o30) + chr(0b110101) + chr(0b100000 + 0o26), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(55) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1010000 + 0o37) + '\062' + chr(0b110000) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11101 + 0o26) + chr(0b110100) + '\x30', 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(51) + chr(1250 - 1197), 0o10), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b1101111) + chr(0b1011 + 0o50) + chr(50) + chr(0b11010 + 0o35), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x35' + chr(1743 - 1695), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb5'), '\144' + chr(101) + chr(0b11000 + 0o113) + chr(111) + chr(0b110100 + 0o60) + '\145')(chr(0b1101010 + 0o13) + '\164' + chr(0b11000 + 0o116) + chr(0b10 + 0o53) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def v1KF6qJM3VhN(yJFe33rl9i_r, p_vJ076GqAjR, IhN9_60RaiO8): o0wNPhqPgDxJ = n0SL5NRtdV4Z(p_vJ076GqAjR) if yJFe33rl9i_r in o0wNPhqPgDxJ: raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6@\xcdn\x81\x92\x86*H*\xc00\xa1\xa2+U\t\x15\x98\xf87%20|\x8f\xe5ZR\x84\xae\xf4\xf3\x91\xc1\xca\xa1\x84\xbc\xa3\xfa\\\xcc\x7f\xcf\x97\xd7-'), chr(0b1010011 + 0o21) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + '\x65')('\165' + chr(116) + chr(0b110000 + 0o66) + '\x2d' + '\x38') % (yJFe33rl9i_r, p_vJ076GqAjR)) o0wNPhqPgDxJ[yJFe33rl9i_r] = IhN9_60RaiO8
ray-project/ray
python/ray/rllib/agents/ars/policies.py
rollout
def rollout(policy, env, timestep_limit=None, add_noise=False, offset=0): """Do a rollout. If add_noise is True, the rollout will take noisy actions with noise drawn from that stream. Otherwise, no action noise will be added. Parameters ---------- policy: tf object policy from which to draw actions env: GymEnv environment from which to draw rewards, done, and next state timestep_limit: int, optional steps after which to end the rollout add_noise: bool, optional indicates whether exploratory action noise should be added offset: int, optional value to subtract from the reward. For example, survival bonus from humanoid """ env_timestep_limit = env.spec.max_episode_steps timestep_limit = (env_timestep_limit if timestep_limit is None else min( timestep_limit, env_timestep_limit)) rews = [] t = 0 observation = env.reset() for _ in range(timestep_limit or 999999): ac = policy.compute(observation, add_noise=add_noise, update=True)[0] observation, rew, done, _ = env.step(ac) rew -= np.abs(offset) rews.append(rew) t += 1 if done: break rews = np.array(rews, dtype=np.float32) return rews, t
python
def rollout(policy, env, timestep_limit=None, add_noise=False, offset=0): """Do a rollout. If add_noise is True, the rollout will take noisy actions with noise drawn from that stream. Otherwise, no action noise will be added. Parameters ---------- policy: tf object policy from which to draw actions env: GymEnv environment from which to draw rewards, done, and next state timestep_limit: int, optional steps after which to end the rollout add_noise: bool, optional indicates whether exploratory action noise should be added offset: int, optional value to subtract from the reward. For example, survival bonus from humanoid """ env_timestep_limit = env.spec.max_episode_steps timestep_limit = (env_timestep_limit if timestep_limit is None else min( timestep_limit, env_timestep_limit)) rews = [] t = 0 observation = env.reset() for _ in range(timestep_limit or 999999): ac = policy.compute(observation, add_noise=add_noise, update=True)[0] observation, rew, done, _ = env.step(ac) rew -= np.abs(offset) rews.append(rew) t += 1 if done: break rews = np.array(rews, dtype=np.float32) return rews, t
[ "def", "rollout", "(", "policy", ",", "env", ",", "timestep_limit", "=", "None", ",", "add_noise", "=", "False", ",", "offset", "=", "0", ")", ":", "env_timestep_limit", "=", "env", ".", "spec", ".", "max_episode_steps", "timestep_limit", "=", "(", "env_timestep_limit", "if", "timestep_limit", "is", "None", "else", "min", "(", "timestep_limit", ",", "env_timestep_limit", ")", ")", "rews", "=", "[", "]", "t", "=", "0", "observation", "=", "env", ".", "reset", "(", ")", "for", "_", "in", "range", "(", "timestep_limit", "or", "999999", ")", ":", "ac", "=", "policy", ".", "compute", "(", "observation", ",", "add_noise", "=", "add_noise", ",", "update", "=", "True", ")", "[", "0", "]", "observation", ",", "rew", ",", "done", ",", "_", "=", "env", ".", "step", "(", "ac", ")", "rew", "-=", "np", ".", "abs", "(", "offset", ")", "rews", ".", "append", "(", "rew", ")", "t", "+=", "1", "if", "done", ":", "break", "rews", "=", "np", ".", "array", "(", "rews", ",", "dtype", "=", "np", ".", "float32", ")", "return", "rews", ",", "t" ]
Do a rollout. If add_noise is True, the rollout will take noisy actions with noise drawn from that stream. Otherwise, no action noise will be added. Parameters ---------- policy: tf object policy from which to draw actions env: GymEnv environment from which to draw rewards, done, and next state timestep_limit: int, optional steps after which to end the rollout add_noise: bool, optional indicates whether exploratory action noise should be added offset: int, optional value to subtract from the reward. For example, survival bonus from humanoid
[ "Do", "a", "rollout", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/ars/policies.py#L19-L54
train
Do a rollout of the object store.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1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HVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\x6f' + '\x33' + '\x34' + chr(52), 0b1000), ehT0Px3KOsy9(chr(1954 - 1906) + chr(0b1101000 + 0o7) + chr(49) + '\x32' + chr(0b11 + 0o57), 41196 - 41188), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + '\063' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(11557 - 11446) + chr(709 - 660) + '\x31' + '\x37', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x34' + chr(1186 - 1134), 0o10), ehT0Px3KOsy9(chr(607 - 559) + chr(111) + chr(0b1011 + 0o50) + chr(50) + '\060', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1010000 + 0o37) + chr(0b1011 + 0o47) + chr(48) + chr(0b11010 + 0o31), 0b1000), ehT0Px3KOsy9(chr(382 - 334) + chr(4848 - 4737) + chr(55) + chr(2613 - 2558), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + chr(2285 - 2233) + chr(0b100110 + 0o20), 20672 - 20664), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001) + chr(0b110000) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b110 + 0o54) + '\063', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + chr(0b110 + 0o57) + chr(0b101111 + 0o1), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110100) + '\060', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + chr(2509 - 2458) + chr(2297 - 2248), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(49) + chr(2149 - 2099) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + '\x32' + chr(0b1010 + 0o50) + '\x37', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b10000 + 0o42) + chr(0b110100) + chr(0b10100 + 0o40), 16028 - 16020), ehT0Px3KOsy9(chr(2104 - 2056) + chr(0b1101111) + chr(51) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001 + 0o6) + chr(549 - 499), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + '\064' + chr(49), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1011010 + 0o25) + chr(2214 - 2163) + chr(52) + '\x35', 0b1000), ehT0Px3KOsy9(chr(48) + chr(7101 - 6990) + chr(2151 - 2102) + '\062' + chr(0b10000 + 0o45), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\x6f' + chr(0b110011) + chr(700 - 649) + '\x37', 0o10), ehT0Px3KOsy9(chr(48) + chr(9756 - 9645) + '\x31' + chr(0b10100 + 0o36) + chr(0b110010), 8), ehT0Px3KOsy9(chr(562 - 514) + '\157' + '\x32' + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + chr(53) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1001011 + 0o44) + chr(0b11000 + 0o31) + '\x31' + chr(55), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(54) + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(1145 - 1096) + chr(0b11000 + 0o35) + '\x35', 36797 - 36789), ehT0Px3KOsy9(chr(48) + chr(388 - 277) + chr(50) + chr(50) + chr(0b110011), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10001 + 0o42) + chr(0b110110) + chr(49), 8), ehT0Px3KOsy9(chr(1992 - 1944) + chr(111) + '\x32' + '\062' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\065' + '\x30', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(358 - 309) + chr(0b1100 + 0o46) + chr(0b100111 + 0o17), 0b1000), ehT0Px3KOsy9('\x30' + chr(8256 - 8145) + chr(0b1110 + 0o44) + chr(2364 - 2314) + chr(53), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b100 + 0o153) + chr(50) + chr(0b11 + 0o63) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\157' + '\x31' + chr(51) + chr(0b110010), 11552 - 11544), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(55) + '\x31', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(51) + '\060', 54425 - 54417), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1101111) + '\064' + chr(0b1011 + 0o47), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b101000 + 0o107) + chr(53) + chr(0b110 + 0o52), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xca'), chr(0b1011100 + 0o10) + chr(101) + chr(0b111001 + 0o52) + chr(0b101110 + 0o101) + chr(0b1001011 + 0o31) + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def t5VWs_TV1khc(s617wIX8Hbiy, xzsHIGfR8Ip5, UYEne5d5yRxz=None, rC9aL_61RV_l=ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + chr(1983 - 1935), ord("\x08")), VRaYxwVeIO1g=ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(1774 - 1663) + chr(1552 - 1504), 8)): et5nSoeoTgjL = xzsHIGfR8Ip5.spec.max_episode_steps UYEne5d5yRxz = et5nSoeoTgjL if UYEne5d5yRxz is None else Dx22bkKPdt5d(UYEne5d5yRxz, et5nSoeoTgjL) ahihDDIfAFOA = [] YeT3l7JgTbWR = ehT0Px3KOsy9('\060' + chr(0b1011001 + 0o26) + '\060', 8) mKQm526a9xSD = xzsHIGfR8Ip5.reset() for VNGQdHSFPrso in vQr8gNKaIaWE(UYEne5d5yRxz or ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1953 - 1902) + '\x36' + chr(0b110100) + chr(0b1011 + 0o46) + chr(376 - 328) + chr(1203 - 1148) + '\x37', 0o10)): iDLgawWgKZud = s617wIX8Hbiy.compute(mKQm526a9xSD, add_noise=rC9aL_61RV_l, update=ehT0Px3KOsy9(chr(2068 - 2020) + chr(0b1101111) + chr(147 - 98), 0o10))[ehT0Px3KOsy9(chr(1541 - 1493) + '\157' + chr(0b11010 + 0o26), 8)] (mKQm526a9xSD, gqZ8R0FZdMvm, Ki86oC9WfglU, VNGQdHSFPrso) = xzsHIGfR8Ip5.kDuFsAhEatcU(iDLgawWgKZud) gqZ8R0FZdMvm -= WqUC3KWvYVup.abs(VRaYxwVeIO1g) xafqLlk3kkUe(ahihDDIfAFOA, xafqLlk3kkUe(SXOLrMavuUCe(b'\x85"\xad*J\xb4'), chr(0b1000000 + 0o44) + chr(101) + chr(5070 - 4971) + chr(0b1101 + 0o142) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(102) + chr(960 - 915) + chr(2609 - 2553)))(gqZ8R0FZdMvm) YeT3l7JgTbWR += ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\x6f' + chr(0b110001), 8) if Ki86oC9WfglU: break ahihDDIfAFOA = WqUC3KWvYVup.B0ePDhpqxN5n(ahihDDIfAFOA, dtype=WqUC3KWvYVup.float32) return (ahihDDIfAFOA, YeT3l7JgTbWR)
ray-project/ray
python/ray/tune/suggest/basic_variant.py
BasicVariantGenerator.next_trials
def next_trials(self): """Provides Trial objects to be queued into the TrialRunner. Returns: trials (list): Returns a list of trials. """ trials = list(self._trial_generator) if self._shuffle: random.shuffle(trials) self._finished = True return trials
python
def next_trials(self): """Provides Trial objects to be queued into the TrialRunner. Returns: trials (list): Returns a list of trials. """ trials = list(self._trial_generator) if self._shuffle: random.shuffle(trials) self._finished = True return trials
[ "def", "next_trials", "(", "self", ")", ":", "trials", "=", "list", "(", "self", ".", "_trial_generator", ")", "if", "self", ".", "_shuffle", ":", "random", ".", "shuffle", "(", "trials", ")", "self", ".", "_finished", "=", "True", "return", "trials" ]
Provides Trial objects to be queued into the TrialRunner. Returns: trials (list): Returns a list of trials.
[ "Provides", "Trial", "objects", "to", "be", "queued", "into", "the", "TrialRunner", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/suggest/basic_variant.py#L51-L61
train
Provides a list of Trial objects to be queued into the TrialRunner.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXw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9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b110011 + 0o74) + chr(49) + '\066' + '\x37', 0o10), ehT0Px3KOsy9(chr(374 - 326) + '\x6f' + chr(49) + chr(51) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(11810 - 11699) + chr(499 - 450) + chr(0b110 + 0o52) + chr(0b11100 + 0o30), 0b1000), ehT0Px3KOsy9(chr(807 - 759) + chr(0b1101111) + chr(0b110111) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(111) + chr(52) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b1011111 + 0o20) + '\062' + '\x34' + chr(0b1010 + 0o50), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(2153 - 2099) + chr(51), 33528 - 33520), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1353 - 1301) + chr(48), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(54) + chr(0b100111 + 0o14), 0o10), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(111) + chr(0b110100) + chr(0b0 + 0o67), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(202 - 151) + chr(565 - 517) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(111) + chr(0b1000 + 0o51) + chr(120 - 70) + chr(0b10101 + 0o40), 0b1000), ehT0Px3KOsy9('\060' + chr(0b10110 + 0o131) + chr(1873 - 1820) + chr(54), 0o10), ehT0Px3KOsy9(chr(510 - 462) + '\x6f' + chr(50) + '\x32' + chr(0b11 + 0o63), 0o10), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1010 + 0o145) + '\x32' + chr(2243 - 2188) + chr(0b101001 + 0o12), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b101010 + 0o14), 22565 - 22557), ehT0Px3KOsy9('\060' + chr(0b1011 + 0o144) + '\061' + chr(0b110011) + '\x34', 51579 - 51571), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1312 - 1263) + chr(0b110011) + '\x34', 8), ehT0Px3KOsy9(chr(0b110000) + chr(8385 - 8274) + '\061' + chr(0b101100 + 0o12) + chr(0b110101), 45202 - 45194), ehT0Px3KOsy9('\060' + chr(0b0 + 0o157) + chr(54) + chr(54), 0o10), ehT0Px3KOsy9(chr(2005 - 1957) + chr(3380 - 3269) + chr(0b11110 + 0o24) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110001) + '\064', 41984 - 41976), ehT0Px3KOsy9(chr(0b110000) + chr(2315 - 2204) + chr(49) + '\063' + '\x32', 8), ehT0Px3KOsy9('\060' + chr(111) + '\x34' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(1393 - 1282) + chr(1858 - 1807) + chr(52) + '\060', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + chr(51) + chr(48), 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(111) + chr(369 - 318) + chr(525 - 476) + chr(599 - 547), 64879 - 64871), ehT0Px3KOsy9('\x30' + chr(2451 - 2340) + '\x31' + chr(0b110000) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001111 + 0o40) + chr(1496 - 1446) + '\x32' + chr(0b110000), 27149 - 27141), ehT0Px3KOsy9(chr(0b100010 + 0o16) + '\157' + '\x35' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(1469 - 1421) + chr(0b11101 + 0o122) + '\061' + chr(634 - 580) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1865 - 1816) + '\x37' + chr(55), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + chr(0b110010) + '\067', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + '\x37' + '\061', 9765 - 9757), ehT0Px3KOsy9(chr(48) + chr(0b100010 + 0o115) + '\062' + '\x37' + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + '\061' + chr(0b110110), 47029 - 47021), ehT0Px3KOsy9(chr(0b110000) + chr(9697 - 9586) + chr(49) + chr(0b11111 + 0o27) + chr(0b10100 + 0o36), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10110 + 0o33) + '\x35', 35105 - 35097), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + '\x31' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(711 - 663) + chr(0b101111 + 0o1), 18414 - 18406)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + '\x6f' + chr(53) + '\060', 52963 - 52955)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'Y'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1001010 + 0o32) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(1058 - 1013) + chr(1893 - 1837)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def O8iH95Uw4Ow5(oVre8I6UXc3b): i1GKrIxxsZwp = YyaZ4tpXu4lf(oVre8I6UXc3b.x6nOl7XdZ15R) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'(),NC\xc4\x9fE'), chr(0b11110 + 0o106) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(2995 - 2878) + chr(116) + chr(0b101010 + 0o74) + chr(0b101101) + chr(0b111000))): xafqLlk3kkUe(drxw09AdRdci, xafqLlk3kkUe(SXOLrMavuUCe(b'\x0421]C\xce\x96'), chr(100) + '\145' + '\143' + '\x6f' + '\x64' + chr(2750 - 2649))(chr(117) + chr(0b1110100) + chr(102) + chr(45) + chr(56)))(i1GKrIxxsZwp) oVre8I6UXc3b.W41DoKKYJFTG = ehT0Px3KOsy9(chr(2110 - 2062) + '\157' + chr(0b110001), 0o10) return i1GKrIxxsZwp
ray-project/ray
python/ray/tune/suggest/basic_variant.py
BasicVariantGenerator._generate_trials
def _generate_trials(self, unresolved_spec, output_path=""): """Generates Trial objects with the variant generation process. Uses a fixed point iteration to resolve variants. All trials should be able to be generated at once. See also: `ray.tune.suggest.variant_generator`. Yields: Trial object """ if "run" not in unresolved_spec: raise TuneError("Must specify `run` in {}".format(unresolved_spec)) for _ in range(unresolved_spec.get("num_samples", 1)): for resolved_vars, spec in generate_variants(unresolved_spec): experiment_tag = str(self._counter) if resolved_vars: experiment_tag += "_{}".format(resolved_vars) self._counter += 1 yield create_trial_from_spec( spec, output_path, self._parser, experiment_tag=experiment_tag)
python
def _generate_trials(self, unresolved_spec, output_path=""): """Generates Trial objects with the variant generation process. Uses a fixed point iteration to resolve variants. All trials should be able to be generated at once. See also: `ray.tune.suggest.variant_generator`. Yields: Trial object """ if "run" not in unresolved_spec: raise TuneError("Must specify `run` in {}".format(unresolved_spec)) for _ in range(unresolved_spec.get("num_samples", 1)): for resolved_vars, spec in generate_variants(unresolved_spec): experiment_tag = str(self._counter) if resolved_vars: experiment_tag += "_{}".format(resolved_vars) self._counter += 1 yield create_trial_from_spec( spec, output_path, self._parser, experiment_tag=experiment_tag)
[ "def", "_generate_trials", "(", "self", ",", "unresolved_spec", ",", "output_path", "=", "\"\"", ")", ":", "if", "\"run\"", "not", "in", "unresolved_spec", ":", "raise", "TuneError", "(", "\"Must specify `run` in {}\"", ".", "format", "(", "unresolved_spec", ")", ")", "for", "_", "in", "range", "(", "unresolved_spec", ".", "get", "(", "\"num_samples\"", ",", "1", ")", ")", ":", "for", "resolved_vars", ",", "spec", "in", "generate_variants", "(", "unresolved_spec", ")", ":", "experiment_tag", "=", "str", "(", "self", ".", "_counter", ")", "if", "resolved_vars", ":", "experiment_tag", "+=", "\"_{}\"", ".", "format", "(", "resolved_vars", ")", "self", ".", "_counter", "+=", "1", "yield", "create_trial_from_spec", "(", "spec", ",", "output_path", ",", "self", ".", "_parser", ",", "experiment_tag", "=", "experiment_tag", ")" ]
Generates Trial objects with the variant generation process. Uses a fixed point iteration to resolve variants. All trials should be able to be generated at once. See also: `ray.tune.suggest.variant_generator`. Yields: Trial object
[ "Generates", "Trial", "objects", "with", "the", "variant", "generation", "process", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/suggest/basic_variant.py#L63-L87
train
Generates Trial objects with the variant generation process.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,V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YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(473 - 425) + '\157' + '\062' + '\x32' + chr(0b100101 + 0o21), 0o10), ehT0Px3KOsy9(chr(105 - 57) + chr(0b100010 + 0o115) + chr(2098 - 2048) + chr(0b110110) + chr(1093 - 1038), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b110100) + chr(0b110100 + 0o3), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + '\062' + '\060', 0b1000), ehT0Px3KOsy9(chr(1267 - 1219) + '\157' + '\062' + '\063' + chr(1231 - 1183), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b101111 + 0o2) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110011) + '\x35' + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(8776 - 8665) + '\066' + '\063', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b101000 + 0o107) + chr(472 - 422) + chr(0b101 + 0o57) + chr(0b101001 + 0o15), 0o10), ehT0Px3KOsy9(chr(1994 - 1946) + '\157' + chr(50) + chr(0b11001 + 0o31) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(1078 - 1030) + '\x6f' + chr(0b110001) + '\066' + chr(0b110010), 30020 - 30012), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1000010 + 0o55) + '\062' + '\062' + chr(1975 - 1927), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + '\063' + chr(1407 - 1355), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1010101 + 0o32) + chr(0b100011 + 0o16) + chr(0b110010) + '\065', 25535 - 25527), ehT0Px3KOsy9('\060' + chr(1646 - 1535) + '\061' + chr(1219 - 1167) + chr(48), 12390 - 12382), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(334 - 285) + chr(51) + chr(50), 58919 - 58911), ehT0Px3KOsy9(chr(1019 - 971) + '\x6f' + '\x32' + chr(1239 - 1191) + chr(49), 58213 - 58205), ehT0Px3KOsy9('\060' + chr(0b1010000 + 0o37) + '\x32' + '\x30', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10001 + 0o40) + chr(50), 8), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + '\x33' + '\x34' + '\x31', 0b1000), ehT0Px3KOsy9(chr(1627 - 1579) + chr(111) + chr(2165 - 2114) + chr(147 - 95) + '\x37', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b101111 + 0o2) + chr(51), 3598 - 3590), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x32' + chr(803 - 755) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\065' + chr(2559 - 2504), 54208 - 54200), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + chr(0b110001) + '\x37', 0o10), ehT0Px3KOsy9('\x30' + chr(3502 - 3391) + chr(51) + chr(0b110000) + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(0b10 + 0o60) + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\157' + chr(0b110011) + chr(0b110001) + chr(0b110 + 0o60), 0o10), ehT0Px3KOsy9(chr(734 - 686) + chr(111) + chr(0b110011) + '\065' + chr(2210 - 2157), ord("\x08")), ehT0Px3KOsy9(chr(1192 - 1144) + chr(0b11101 + 0o122) + chr(2163 - 2112) + '\065' + chr(53), 8), ehT0Px3KOsy9('\060' + chr(7751 - 7640) + chr(684 - 633) + '\x37' + chr(0b100001 + 0o24), ord("\x08")), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\157' + '\062' + chr(53) + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b1 + 0o60) + '\062' + chr(2144 - 2090), 16972 - 16964), ehT0Px3KOsy9(chr(0b110000) + chr(8050 - 7939) + chr(0b110001) + '\x32' + '\x35', 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(55) + chr(0b110000), 24568 - 24560), ehT0Px3KOsy9(chr(0b110000) + chr(10901 - 10790) + chr(51) + chr(0b110000) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + '\060' + chr(861 - 808), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(1473 - 1420) + '\x36', 8), ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\x6f' + chr(0b1110 + 0o43) + '\x37' + chr(814 - 760), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\066' + chr(2211 - 2163), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x35' + '\060', 17233 - 17225)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8'), chr(100) + '\x65' + chr(5538 - 5439) + chr(1670 - 1559) + chr(0b110001 + 0o63) + chr(101))(chr(0b10 + 0o163) + chr(0b1110100) + chr(0b10111 + 0o117) + chr(45) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def spOIzGhV3XlQ(oVre8I6UXc3b, p9KjjoWEm0RG, pybif4rGbt58=xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(0b1001111 + 0o25) + chr(101) + chr(0b1001000 + 0o33) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b1010 + 0o43) + chr(0b110110 + 0o2))): if xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4\xc2\xc9'), '\144' + '\x65' + '\143' + chr(0b1100000 + 0o17) + '\144' + '\145')(chr(0b1011100 + 0o31) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b10 + 0o66)) not in p9KjjoWEm0RG: raise HJKwRlaB772i(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xdb\xc2\xd4\xa4\xb8y\x99V\xc5\xf8\x14\xe9\xbc5\x12/\xefp*\x88\x89\xab\xfdR'), chr(100) + chr(2238 - 2137) + '\143' + chr(5172 - 5061) + chr(2468 - 2368) + '\145')(chr(0b1110101) + chr(8004 - 7888) + chr(0b100001 + 0o105) + chr(0b101101) + chr(1796 - 1740)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc0\x83\xd5\xbf\xd0k\xba\x00\xf6\xe1\x17\xfa'), '\x64' + chr(469 - 368) + chr(0b100001 + 0o102) + chr(0b1101111) + '\144' + chr(101))('\165' + chr(116) + chr(0b1000010 + 0o44) + chr(45) + chr(56)))(p9KjjoWEm0RG)) for VNGQdHSFPrso in vQr8gNKaIaWE(xafqLlk3kkUe(p9KjjoWEm0RG, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf1\xd2\xd3'), chr(0b11 + 0o141) + chr(101) + '\x63' + chr(4862 - 4751) + '\144' + chr(101))(chr(0b1010101 + 0o40) + '\x74' + '\x66' + chr(0b101101) + chr(2186 - 2130)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8\xc2\xca\x8f\xebk\x84C\xca\xf4\x01'), chr(4218 - 4118) + chr(0b10001 + 0o124) + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(962 - 906)), ehT0Px3KOsy9('\060' + '\157' + chr(49), 0o10))): for (BMLY91R8lBDY, IH4wfF5htxM9) in XLBMgSL7m8fL(p9KjjoWEm0RG): yXhJ85CUhxzl = M8_cKLkHVB2V(oVre8I6UXc3b.cDZJac0b8sY6) if BMLY91R8lBDY: yXhJ85CUhxzl += xafqLlk3kkUe(SXOLrMavuUCe(b'\xc9\xcc\xda'), '\144' + '\145' + chr(0b11011 + 0o110) + chr(7678 - 7567) + chr(9923 - 9823) + chr(755 - 654))('\165' + chr(2342 - 2226) + chr(0b1001001 + 0o35) + chr(0b101101) + chr(1793 - 1737)).V4roHaS3Ppej(BMLY91R8lBDY) oVre8I6UXc3b.cDZJac0b8sY6 += ehT0Px3KOsy9(chr(0b0 + 0o60) + '\157' + chr(0b10001 + 0o40), 8) yield oAlfjvN9IBcv(IH4wfF5htxM9, pybif4rGbt58, xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xc9\xc7\xc6\xa2\xebo\x9b'), chr(0b100000 + 0o104) + '\145' + chr(0b111011 + 0o50) + chr(0b1001101 + 0o42) + chr(100) + chr(8675 - 8574))(chr(0b100001 + 0o124) + chr(116) + chr(0b1100110) + '\055' + chr(356 - 300))), experiment_tag=yXhJ85CUhxzl)
ray-project/ray
python/ray/rllib/optimizers/segment_tree.py
SegmentTree.reduce
def reduce(self, start=0, end=None): """Returns result of applying `self.operation` to a contiguous subsequence of the array. self.operation( arr[start], operation(arr[start+1], operation(... arr[end]))) Parameters ---------- start: int beginning of the subsequence end: int end of the subsequences Returns ------- reduced: obj result of reducing self.operation over the specified range of array elements. """ if end is None: end = self._capacity - 1 if end < 0: end += self._capacity return self._reduce_helper(start, end, 1, 0, self._capacity - 1)
python
def reduce(self, start=0, end=None): """Returns result of applying `self.operation` to a contiguous subsequence of the array. self.operation( arr[start], operation(arr[start+1], operation(... arr[end]))) Parameters ---------- start: int beginning of the subsequence end: int end of the subsequences Returns ------- reduced: obj result of reducing self.operation over the specified range of array elements. """ if end is None: end = self._capacity - 1 if end < 0: end += self._capacity return self._reduce_helper(start, end, 1, 0, self._capacity - 1)
[ "def", "reduce", "(", "self", ",", "start", "=", "0", ",", "end", "=", "None", ")", ":", "if", "end", "is", "None", ":", "end", "=", "self", ".", "_capacity", "-", "1", "if", "end", "<", "0", ":", "end", "+=", "self", ".", "_capacity", "return", "self", ".", "_reduce_helper", "(", "start", ",", "end", ",", "1", ",", "0", ",", "self", ".", "_capacity", "-", "1", ")" ]
Returns result of applying `self.operation` to a contiguous subsequence of the array. self.operation( arr[start], operation(arr[start+1], operation(... arr[end]))) Parameters ---------- start: int beginning of the subsequence end: int end of the subsequences Returns ------- reduced: obj result of reducing self.operation over the specified range of array elements.
[ "Returns", "result", "of", "applying", "self", ".", "operation", "to", "a", "contiguous", "subsequence", "of", "the", "array", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/optimizers/segment_tree.py#L59-L83
train
Returns the result of applying self. operation to a contiguous subsequence of the array.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHH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ssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(403 - 355) + chr(0b1001 + 0o146) + '\061' + chr(51), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + '\x31' + chr(0b100100 + 0o15), 19882 - 19874), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b10001 + 0o43) + chr(0b1110 + 0o47), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + '\x33' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(1363 - 1315) + chr(111) + chr(1218 - 1168) + '\062' + '\062', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b10011 + 0o43) + chr(0b101110 + 0o11), ord("\x08")), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + '\062' + chr(0b10 + 0o65) + chr(0b110110), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100010 + 0o21) + chr(0b110011), 9198 - 9190), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(1509 - 1460) + '\066' + chr(907 - 856), 52683 - 52675), ehT0Px3KOsy9(chr(0b110000) + chr(6747 - 6636) + chr(0b110010) + '\062' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(55) + '\066', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(9823 - 9712) + '\063' + chr(55) + chr(0b110001 + 0o5), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(2294 - 2183) + chr(0b1000 + 0o53) + chr(51) + chr(0b1111 + 0o50), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100110 + 0o11) + chr(1799 - 1750) + '\x37' + chr(0b11101 + 0o23), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(0b110111) + chr(0b11010 + 0o35), 0b1000), ehT0Px3KOsy9('\060' + chr(845 - 734) + chr(54) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(6888 - 6777) + '\x33' + chr(0b110001) + chr(2357 - 2308), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b101010 + 0o11) + '\x31' + '\062', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1001110 + 0o41) + chr(492 - 442) + chr(0b110000) + chr(0b101111 + 0o3), ord("\x08")), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(0b100000 + 0o117) + chr(51) + '\x36' + chr(0b101111 + 0o7), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + chr(51) + chr(1535 - 1480), 13990 - 13982), ehT0Px3KOsy9(chr(856 - 808) + chr(111) + chr(49) + '\062' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1293 - 1244) + chr(0b101 + 0o62) + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + chr(10521 - 10410) + chr(0b110010) + chr(50) + chr(602 - 548), 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + '\x37' + chr(0b110000 + 0o3), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + '\063' + chr(55), 8), ehT0Px3KOsy9(chr(1538 - 1490) + chr(3761 - 3650) + '\063' + chr(0b10 + 0o65) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(2151 - 2103) + chr(10478 - 10367) + '\x31' + chr(0b100101 + 0o17) + chr(564 - 512), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + '\065' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b11000 + 0o127) + chr(0b10001 + 0o40) + '\066' + '\x31', 22425 - 22417), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(48) + chr(50), 4295 - 4287), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + '\x32' + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(5640 - 5529) + chr(1349 - 1300) + chr(54) + chr(0b10111 + 0o37), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1415 - 1361) + chr(0b1010 + 0o47), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110100) + chr(50), 62871 - 62863), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(2411 - 2361) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(2357 - 2246) + chr(0b101101 + 0o5) + chr(930 - 879) + chr(536 - 482), ord("\x08")), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b1101111) + chr(0b1100 + 0o46) + chr(0b10010 + 0o44) + chr(55), 0b1000), ehT0Px3KOsy9(chr(269 - 221) + chr(0b1101111) + chr(51) + chr(985 - 936) + chr(0b110100 + 0o0), 0o10), ehT0Px3KOsy9('\060' + chr(0b101110 + 0o101) + chr(0b10001 + 0o42) + chr(0b110111) + chr(1968 - 1919), 43940 - 43932)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(9739 - 9628) + chr(2804 - 2751) + '\x30', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'%'), chr(8988 - 8888) + chr(0b1100101) + chr(99) + chr(111) + '\144' + chr(0b1100101))('\x75' + '\164' + chr(0b1000010 + 0o44) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def RSYsB9TMxo_y(oVre8I6UXc3b, avRbFsnfJxQj=ehT0Px3KOsy9(chr(333 - 285) + chr(0b1101111) + chr(0b0 + 0o60), 0b1000), whWDZq5_lP01=None): if whWDZq5_lP01 is None: whWDZq5_lP01 = oVre8I6UXc3b._capacity - ehT0Px3KOsy9(chr(48) + chr(12027 - 11916) + '\x31', 0b1000) if whWDZq5_lP01 < ehT0Px3KOsy9(chr(442 - 394) + '\157' + chr(0b110000), 8): whWDZq5_lP01 += oVre8I6UXc3b._capacity return xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'T\xfb@\xbb\xe7\x14\xdbD\x1b\xf4R\x8e\xba\n'), chr(0b1100100) + chr(5104 - 5003) + chr(0b1100011) + '\157' + '\144' + chr(8989 - 8888))(chr(117) + '\x74' + chr(5665 - 5563) + chr(45) + '\x38'))(avRbFsnfJxQj, whWDZq5_lP01, ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49), 8), ehT0Px3KOsy9('\x30' + chr(7930 - 7819) + chr(48), 8), xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'T\xeaD\xaf\xf3\x14\xd7o\n'), chr(0b1010010 + 0o22) + '\x65' + chr(9148 - 9049) + chr(6096 - 5985) + chr(5854 - 5754) + chr(1833 - 1732))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101 + 0o0) + '\070')) - ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001), 8))
ray-project/ray
python/ray/experimental/gcs_flush_policy.py
set_flushing_policy
def set_flushing_policy(flushing_policy): """Serialize this policy for Monitor to pick up.""" if "RAY_USE_NEW_GCS" not in os.environ: raise Exception( "set_flushing_policy() is only available when environment " "variable RAY_USE_NEW_GCS is present at both compile and run time." ) ray.worker.global_worker.check_connected() redis_client = ray.worker.global_worker.redis_client serialized = pickle.dumps(flushing_policy) redis_client.set("gcs_flushing_policy", serialized)
python
def set_flushing_policy(flushing_policy): """Serialize this policy for Monitor to pick up.""" if "RAY_USE_NEW_GCS" not in os.environ: raise Exception( "set_flushing_policy() is only available when environment " "variable RAY_USE_NEW_GCS is present at both compile and run time." ) ray.worker.global_worker.check_connected() redis_client = ray.worker.global_worker.redis_client serialized = pickle.dumps(flushing_policy) redis_client.set("gcs_flushing_policy", serialized)
[ "def", "set_flushing_policy", "(", "flushing_policy", ")", ":", "if", "\"RAY_USE_NEW_GCS\"", "not", "in", "os", ".", "environ", ":", "raise", "Exception", "(", "\"set_flushing_policy() is only available when environment \"", "\"variable RAY_USE_NEW_GCS is present at both compile and run time.\"", ")", "ray", ".", "worker", ".", "global_worker", ".", "check_connected", "(", ")", "redis_client", "=", "ray", ".", "worker", ".", "global_worker", ".", "redis_client", "serialized", "=", "pickle", ".", "dumps", "(", "flushing_policy", ")", "redis_client", ".", "set", "(", "\"gcs_flushing_policy\"", ",", "serialized", ")" ]
Serialize this policy for Monitor to pick up.
[ "Serialize", "this", "policy", "for", "Monitor", "to", "pick", "up", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/gcs_flush_policy.py#L80-L91
train
Serialize this policy for Monitor to pick up.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9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GokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110110) + chr(190 - 136), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1000001 + 0o56) + chr(0b110010) + '\x35' + chr(2309 - 2256), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(388 - 335) + chr(0b100000 + 0o25), 8), ehT0Px3KOsy9(chr(0b100 + 0o54) + chr(0b1101111) + '\x33' + chr(0b110101) + '\x33', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110101) + '\063', 26931 - 26923), ehT0Px3KOsy9(chr(48) + chr(0b101010 + 0o105) + chr(50) + chr(0b110110) + chr(0b100000 + 0o20), 0b1000), ehT0Px3KOsy9(chr(48) + chr(6312 - 6201) + '\x33' + '\x35' + chr(381 - 331), 1937 - 1929), ehT0Px3KOsy9('\060' + chr(11745 - 11634) + chr(2333 - 2282) + '\x31' + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b110110 + 0o71) + '\066' + chr(0b110001), 42567 - 42559), ehT0Px3KOsy9('\x30' + chr(7939 - 7828) + chr(289 - 240) + chr(0b110101) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + '\x35' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(3103 - 2992) + chr(0b110011) + chr(1557 - 1508) + '\x33', 30419 - 30411), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b110110 + 0o1) + chr(54), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(50) + chr(0b110001), 10502 - 10494), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(807 - 753), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + '\066' + chr(0b110111), 63058 - 63050), ehT0Px3KOsy9(chr(1995 - 1947) + chr(0b101111 + 0o100) + chr(50) + '\x36' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(72 - 24) + chr(0b1101111) + chr(924 - 873) + chr(0b1100 + 0o45) + chr(0b11011 + 0o31), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + '\067' + chr(1189 - 1136), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(2036 - 1988), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(2185 - 2132), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b111010 + 0o65) + '\061' + chr(2475 - 2423) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000 + 0o147) + '\062' + '\067', 11747 - 11739), ehT0Px3KOsy9(chr(902 - 854) + chr(111) + chr(550 - 501) + '\x31' + chr(0b101001 + 0o13), 34579 - 34571), ehT0Px3KOsy9(chr(1976 - 1928) + chr(0b1100110 + 0o11) + chr(2077 - 2027) + '\x33' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(259 - 211) + '\157' + '\x31' + chr(0b1011 + 0o52) + chr(945 - 897), 5847 - 5839), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + '\064' + '\061', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110111) + chr(1373 - 1321), 0o10), ehT0Px3KOsy9('\060' + chr(0b10000 + 0o137) + '\x32' + chr(0b110101) + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1625 - 1574) + '\062' + chr(844 - 790), 18753 - 18745), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(10952 - 10841) + '\x35' + '\x33', 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(2165 - 2116), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010011 + 0o34) + '\x33' + '\066' + chr(1899 - 1845), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x34' + '\061', 49625 - 49617), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + chr(49) + chr(0b10010 + 0o44), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(1397 - 1348) + chr(244 - 196), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(10466 - 10355) + chr(935 - 885) + chr(891 - 837) + chr(52), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b11101 + 0o26) + chr(0b110011) + chr(0b101000 + 0o11), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b111 + 0o52) + chr(0b101111 + 0o2) + '\x37', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(52) + '\066', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b11111 + 0o26) + chr(0b10000 + 0o40), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'X'), '\144' + '\x65' + '\x63' + chr(0b1101111) + chr(4478 - 4378) + '\x65')('\165' + chr(116) + chr(0b1100110) + '\x2d' + chr(0b11111 + 0o31)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def EhkaSppj9y3u(LQIQSZvBHlUZ): if xafqLlk3kkUe(SXOLrMavuUCe(b'$\xec\xf4\xb4~\xe3\xaf\x91\x7f+{\x94\xf9\xd2U'), chr(0b1100100) + chr(101) + chr(0b110010 + 0o61) + chr(0b1101111) + chr(0b1100100) + chr(0b110001 + 0o64))('\165' + chr(0b1110100) + chr(102) + '\055' + chr(0b100101 + 0o23)) not in xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\x04\xe3\xe6\xdd\x1b\xfb\xb0\xf8\x06\x00t\x89'), chr(100) + chr(101) + chr(2192 - 2093) + '\157' + chr(0b111 + 0o135) + chr(0b111111 + 0o46))(chr(0b1110101) + chr(116) + chr(1800 - 1698) + '\x2d' + '\070')): raise jLmadlzMdunT(xafqLlk3kkUe(SXOLrMavuUCe(b'\x05\xc8\xd9\xb4M\xdc\x9f\xbdY\x07B\xac\xe1\xe1i\xdb\xdb\xaf\x84($F~?\xb9\x07\x0fP\xd3\xf6J\x7f\x97H"\xa9\xd6\xb5*\x06\x01\xc5\xc8\x85\x0b\xd5\x84\xb8X\x1cC\xa5\xd3\xf4h\xc3\x92\xba\x9crd\x07u \xfcH3}\xf3\x89~Z\xb3~\x00\x8d\xe3\x86\x08e%\x8d\xc4\x98\x0b\xc0\x98\xabB\x0bB\xbf\x9e\xf0r\x97\xd0\xa3\x89h-\x05x!\xe9\x01\rY\x8a\xb7Em\xd6S;\xa6\x94\xad&K\x13\x83'), '\144' + chr(0b100101 + 0o100) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1000010 + 0o43))(chr(3179 - 3062) + chr(0b1110100) + '\146' + chr(460 - 415) + '\070')) xafqLlk3kkUe(H9zaXRrGK6Cq.worker.global_worker, xafqLlk3kkUe(SXOLrMavuUCe(b'\x15\xc5\xc8\x88@\xef\x89\xa1_\x00I\xa8\xca\xf4b'), '\144' + chr(0b101000 + 0o75) + '\143' + chr(111) + chr(0b10111 + 0o115) + chr(0b1010011 + 0o22))(chr(9989 - 9872) + '\x74' + '\x66' + chr(45) + chr(56)))() znULerELFfBL = H9zaXRrGK6Cq.worker.global_worker.znULerELFfBL _8xRn8xo59Yl = b1Ng5DsPF9ZY.dumps(LQIQSZvBHlUZ) xafqLlk3kkUe(znULerELFfBL, xafqLlk3kkUe(SXOLrMavuUCe(b'\x05\xc8\xd9'), chr(0b1100100) + chr(0b100111 + 0o76) + chr(0b1100011) + '\157' + chr(4197 - 4097) + '\x65')('\165' + chr(0b1110100) + chr(3163 - 3061) + '\x2d' + chr(1343 - 1287)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x11\xce\xde\xb4M\xdc\x9f\xbdY\x07B\xac\xe1\xe1i\xdb\xdb\xaf\x84'), chr(1767 - 1667) + chr(0b1000010 + 0o43) + chr(0b1001101 + 0o26) + '\x6f' + chr(0b1000111 + 0o35) + chr(0b1100101))(chr(0b1011001 + 0o34) + chr(0b1110100) + chr(102) + chr(951 - 906) + '\x38'), _8xRn8xo59Yl)
ray-project/ray
python/ray/tune/cluster_info.py
get_ssh_key
def get_ssh_key(): """Returns ssh key to connecting to cluster workers. If the env var TUNE_CLUSTER_SSH_KEY is provided, then this key will be used for syncing across different nodes. """ path = os.environ.get("TUNE_CLUSTER_SSH_KEY", os.path.expanduser("~/ray_bootstrap_key.pem")) if os.path.exists(path): return path return None
python
def get_ssh_key(): """Returns ssh key to connecting to cluster workers. If the env var TUNE_CLUSTER_SSH_KEY is provided, then this key will be used for syncing across different nodes. """ path = os.environ.get("TUNE_CLUSTER_SSH_KEY", os.path.expanduser("~/ray_bootstrap_key.pem")) if os.path.exists(path): return path return None
[ "def", "get_ssh_key", "(", ")", ":", "path", "=", "os", ".", "environ", ".", "get", "(", "\"TUNE_CLUSTER_SSH_KEY\"", ",", "os", ".", "path", ".", "expanduser", "(", "\"~/ray_bootstrap_key.pem\"", ")", ")", "if", "os", ".", "path", ".", "exists", "(", "path", ")", ":", "return", "path", "return", "None" ]
Returns ssh key to connecting to cluster workers. If the env var TUNE_CLUSTER_SSH_KEY is provided, then this key will be used for syncing across different nodes.
[ "Returns", "ssh", "key", "to", "connecting", "to", "cluster", "workers", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/t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y8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(50) + chr(0b110011) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\x6f' + '\066' + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1100110 + 0o11) + chr(0b110001) + chr(0b11110 + 0o23) + chr(2455 - 2402), 0b1000), ehT0Px3KOsy9(chr(953 - 905) + chr(0b1101100 + 0o3) + chr(50) + '\x30' + chr(163 - 113), 0o10), ehT0Px3KOsy9(chr(0b101000 + 0o10) + chr(111) + chr(0b110000 + 0o1) + chr(0b100000 + 0o24) + chr(1456 - 1404), 0b1000), ehT0Px3KOsy9(chr(1227 - 1179) + chr(0b10011 + 0o134) + chr(233 - 182) + '\x32' + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(93 - 42) + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(10243 - 10132) + '\062' + '\061' + chr(2629 - 2577), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000 + 0o147) + '\062' + chr(49) + '\064', 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + chr(2275 - 2223) + chr(2305 - 2254), ord("\x08")), ehT0Px3KOsy9(chr(108 - 60) + chr(111) + chr(0b110010) + chr(1914 - 1865) + chr(0b10100 + 0o40), 8), ehT0Px3KOsy9(chr(324 - 276) + chr(0b1101111) + chr(0b101011 + 0o7) + chr(52), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + '\x31' + '\067', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(8300 - 8189) + '\x37' + '\x34', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b111 + 0o52) + chr(2586 - 2533) + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + '\x35' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b1100 + 0o143) + '\063' + chr(1104 - 1052) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(5844 - 5733) + chr(0b10000 + 0o42) + chr(0b110111) + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(111) + chr(0b110011) + chr(0b110010 + 0o0) + chr(300 - 245), 0o10), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + '\x33', 42239 - 42231), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b110100) + chr(0b110000 + 0o4), 0b1000), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1011 + 0o144) + chr(403 - 354) + '\x34' + chr(0b100011 + 0o21), 8), ehT0Px3KOsy9('\060' + chr(7059 - 6948) + chr(0b110001) + '\x30' + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110110) + chr(0b101100 + 0o10), 14372 - 14364), ehT0Px3KOsy9(chr(48) + chr(7354 - 7243) + chr(0b100 + 0o56) + chr(0b110011) + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111 + 0o0) + '\061' + '\x36' + chr(2390 - 2337), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + chr(1889 - 1835) + chr(0b100000 + 0o22), 0o10), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\x6f' + chr(51) + chr(0b110110) + chr(0b110 + 0o52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(874 - 825) + chr(51), 48568 - 48560), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + '\x37' + '\060', 0o10), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\x6f' + '\x37' + chr(628 - 579), ord("\x08")), ehT0Px3KOsy9(chr(0b101011 + 0o5) + '\x6f' + '\x32' + '\060' + '\067', 0b1000), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\157' + chr(0b101 + 0o62) + '\x33', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(0b110100) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(2810 - 2699) + '\061' + '\x36' + chr(245 - 195), 6622 - 6614), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b0 + 0o66) + chr(1199 - 1144), 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1000011 + 0o54) + chr(49) + chr(1826 - 1778) + '\065', 39230 - 39222), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + '\065' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(1963 - 1915) + chr(0b1101111) + '\x32' + chr(55) + chr(1038 - 987), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b1111 + 0o44) + '\061' + '\065', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(8084 - 7973) + '\065' + chr(1781 - 1733), 14834 - 14826)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb3'), chr(100) + chr(0b10111 + 0o116) + chr(6839 - 6740) + '\x6f' + chr(100) + chr(101))('\165' + chr(0b1110100) + '\146' + chr(1909 - 1864) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def AS7C9ntraExY(): EaCjyhZptSer = oqhJDdMJfuwx.environ.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\xc9g\x03\xc7;\x97\x90\xd9\xdf7\xc9F\x90o:\xa2\xbb\xf7\x92Z'), chr(2131 - 2031) + chr(101) + chr(0b1100011) + '\157' + chr(0b11111 + 0o105) + '\x65')(chr(0b10010 + 0o143) + chr(6590 - 6474) + chr(0b1011011 + 0o13) + chr(705 - 660) + '\070'), oqhJDdMJfuwx.path.expanduser(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3\x1d?\xe3\x1d\x8b\xbe\xe3\xe3\x17\xff`\xbd]\x19\xb5\x8f\xd9\xae-\xd4\x01)'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + chr(5502 - 5401))(chr(0b1110101) + '\164' + chr(0b1001010 + 0o34) + chr(0b11100 + 0o21) + chr(1864 - 1808)))) if xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8J$\xf1\x10\xa7'), '\x64' + chr(0b1001111 + 0o26) + '\143' + chr(111) + '\x64' + chr(0b1100101))(chr(947 - 830) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38'))(EaCjyhZptSer): return EaCjyhZptSer return None
ray-project/ray
python/ray/tune/suggest/hyperopt.py
HyperOptSearch.on_trial_complete
def on_trial_complete(self, trial_id, result=None, error=False, early_terminated=False): """Passes the result to HyperOpt unless early terminated or errored. The result is internally negated when interacting with HyperOpt so that HyperOpt can "maximize" this value, as it minimizes on default. """ ho_trial = self._get_hyperopt_trial(trial_id) if ho_trial is None: return ho_trial["refresh_time"] = hpo.utils.coarse_utcnow() if error: ho_trial["state"] = hpo.base.JOB_STATE_ERROR ho_trial["misc"]["error"] = (str(TuneError), "Tune Error") elif early_terminated: ho_trial["state"] = hpo.base.JOB_STATE_ERROR ho_trial["misc"]["error"] = (str(TuneError), "Tune Removed") else: ho_trial["state"] = hpo.base.JOB_STATE_DONE hp_result = self._to_hyperopt_result(result) ho_trial["result"] = hp_result self._hpopt_trials.refresh() del self._live_trial_mapping[trial_id]
python
def on_trial_complete(self, trial_id, result=None, error=False, early_terminated=False): """Passes the result to HyperOpt unless early terminated or errored. The result is internally negated when interacting with HyperOpt so that HyperOpt can "maximize" this value, as it minimizes on default. """ ho_trial = self._get_hyperopt_trial(trial_id) if ho_trial is None: return ho_trial["refresh_time"] = hpo.utils.coarse_utcnow() if error: ho_trial["state"] = hpo.base.JOB_STATE_ERROR ho_trial["misc"]["error"] = (str(TuneError), "Tune Error") elif early_terminated: ho_trial["state"] = hpo.base.JOB_STATE_ERROR ho_trial["misc"]["error"] = (str(TuneError), "Tune Removed") else: ho_trial["state"] = hpo.base.JOB_STATE_DONE hp_result = self._to_hyperopt_result(result) ho_trial["result"] = hp_result self._hpopt_trials.refresh() del self._live_trial_mapping[trial_id]
[ "def", "on_trial_complete", "(", "self", ",", "trial_id", ",", "result", "=", "None", ",", "error", "=", "False", ",", "early_terminated", "=", "False", ")", ":", "ho_trial", "=", "self", ".", "_get_hyperopt_trial", "(", "trial_id", ")", "if", "ho_trial", "is", "None", ":", "return", "ho_trial", "[", "\"refresh_time\"", "]", "=", "hpo", ".", "utils", ".", "coarse_utcnow", "(", ")", "if", "error", ":", "ho_trial", "[", "\"state\"", "]", "=", "hpo", ".", "base", ".", "JOB_STATE_ERROR", "ho_trial", "[", "\"misc\"", "]", "[", "\"error\"", "]", "=", "(", "str", "(", "TuneError", ")", ",", "\"Tune Error\"", ")", "elif", "early_terminated", ":", "ho_trial", "[", "\"state\"", "]", "=", "hpo", ".", "base", ".", "JOB_STATE_ERROR", "ho_trial", "[", "\"misc\"", "]", "[", "\"error\"", "]", "=", "(", "str", "(", "TuneError", ")", ",", "\"Tune Removed\"", ")", "else", ":", "ho_trial", "[", "\"state\"", "]", "=", "hpo", ".", "base", ".", "JOB_STATE_DONE", "hp_result", "=", "self", ".", "_to_hyperopt_result", "(", "result", ")", "ho_trial", "[", "\"result\"", "]", "=", "hp_result", "self", ".", "_hpopt_trials", ".", "refresh", "(", ")", "del", "self", ".", "_live_trial_mapping", "[", "trial_id", "]" ]
Passes the result to HyperOpt unless early terminated or errored. The result is internally negated when interacting with HyperOpt so that HyperOpt can "maximize" this value, as it minimizes on default.
[ "Passes", "the", "result", "to", "HyperOpt", "unless", "early", "terminated", "or", "errored", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/suggest/hyperopt.py#L126-L151
train
Passes the result to HyperOpt unless early terminated or errored.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWS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imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(2041 - 1993) + chr(0b1100111 + 0o10) + chr(1079 - 1029) + chr(49) + chr(0b1010 + 0o53), 0o10), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(10250 - 10139) + '\063' + '\066' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(0b1101111) + '\x33' + '\x31' + chr(97 - 42), 0o10), ehT0Px3KOsy9(chr(1749 - 1701) + '\157' + '\x37' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + '\060' + chr(0b100100 + 0o22), 23693 - 23685), ehT0Px3KOsy9('\060' + '\157' + chr(0b101010 + 0o10) + chr(343 - 289) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b11110 + 0o121) + chr(49) + chr(0b100011 + 0o24) + '\x36', 5281 - 5273), ehT0Px3KOsy9(chr(2104 - 2056) + '\x6f' + chr(607 - 557) + '\x36' + '\066', 55879 - 55871), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + '\061' + '\x30' + '\x37', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + '\x32' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(1855 - 1807) + '\x6f' + chr(0b110011) + chr(0b11000 + 0o32) + chr(53), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(1871 - 1821) + chr(0b0 + 0o60) + chr(0b11000 + 0o37), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1431 - 1382) + chr(0b110100) + '\x31', 0b1000), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(111) + chr(0b110010) + chr(0b10101 + 0o40) + chr(1568 - 1514), ord("\x08")), ehT0Px3KOsy9(chr(2171 - 2123) + chr(0b1101111) + chr(0b110011) + chr(55) + '\x33', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b11001 + 0o30), 57528 - 57520), ehT0Px3KOsy9(chr(1292 - 1244) + chr(0b1101111) + '\x32' + '\064' + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(916 - 861) + chr(0b10 + 0o56), 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b1110 + 0o51) + chr(0b100101 + 0o22), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x34' + '\x37', 41695 - 41687), ehT0Px3KOsy9(chr(0b110000) + chr(0b1 + 0o156) + chr(0b110001) + '\065' + chr(0b110000), 13115 - 13107), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b10010 + 0o37) + chr(595 - 547) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b11000 + 0o33) + chr(0b110101) + chr(0b1010 + 0o46), 0b1000), ehT0Px3KOsy9(chr(2230 - 2182) + chr(0b11010 + 0o125) + chr(0b110011) + '\065' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(3843 - 3732) + chr(0b110001) + chr(52) + chr(0b1011 + 0o45), 0o10), ehT0Px3KOsy9(chr(1609 - 1561) + '\x6f' + '\x32' + chr(53) + chr(0b11101 + 0o30), 26404 - 26396), ehT0Px3KOsy9(chr(48) + chr(111) + chr(53) + chr(366 - 316), 0o10), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b1101111) + '\062' + chr(1971 - 1921) + chr(0b11011 + 0o32), ord("\x08")), ehT0Px3KOsy9('\060' + chr(5795 - 5684) + chr(618 - 568) + '\x34' + chr(1601 - 1546), 35618 - 35610), ehT0Px3KOsy9(chr(48) + '\157' + '\x32' + '\x37', 39659 - 39651), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + '\x33' + chr(0b110000 + 0o6), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + '\062' + '\064', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10101 + 0o34) + chr(625 - 570) + chr(0b111 + 0o57), 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(1586 - 1534) + chr(0b110001), 8), ehT0Px3KOsy9(chr(1930 - 1882) + '\157' + chr(1513 - 1462) + chr(49), 17265 - 17257), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(800 - 748) + chr(54), 0b1000), ehT0Px3KOsy9(chr(1800 - 1752) + '\157' + chr(2883 - 2829) + chr(1317 - 1268), 0b1000), ehT0Px3KOsy9(chr(1364 - 1316) + chr(3785 - 3674) + chr(0b1001 + 0o52), 55595 - 55587), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b101010 + 0o10) + chr(0b11101 + 0o27) + chr(0b10111 + 0o35), 3047 - 3039), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110100) + chr(53), 19919 - 19911)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(511 - 458) + chr(48), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xa3'), chr(100) + chr(0b1100101) + chr(1354 - 1255) + '\x6f' + chr(0b1101 + 0o127) + chr(0b1010100 + 0o21))(chr(0b1100010 + 0o23) + chr(11890 - 11774) + chr(0b1100110) + '\055' + chr(0b1 + 0o67)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def PEbWpADNyHWF(oVre8I6UXc3b, rv8CNRYETQhs, ShZmEKfTkAOZ=None, EUdPatOS1wx0=ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(3627 - 3516) + chr(940 - 892), 0b1000), qE_wv_CxeOHk=ehT0Px3KOsy9(chr(48) + '\157' + chr(48), 8)): mYNELsheVoj4 = oVre8I6UXc3b._get_hyperopt_trial(rv8CNRYETQhs) if mYNELsheVoj4 is None: return mYNELsheVoj4[xafqLlk3kkUe(SXOLrMavuUCe(b'\xff\x96\xa9J\xa3\xc7\x16\xe93\xfd\xb8\xe2'), chr(3304 - 3204) + '\145' + '\143' + '\157' + '\144' + chr(0b100100 + 0o101))('\x75' + chr(7975 - 7859) + chr(0b1001000 + 0o36) + chr(1052 - 1007) + chr(2922 - 2866))] = QMSqGndf4aIO.utils.coarse_utcnow() if EUdPatOS1wx0: mYNELsheVoj4[xafqLlk3kkUe(SXOLrMavuUCe(b'\xfe\x87\xaeL\xa3'), '\144' + '\x65' + '\x63' + chr(111) + chr(0b1100100) + chr(0b1001 + 0o134))('\x75' + '\164' + '\146' + '\055' + '\x38')] = QMSqGndf4aIO.base.JOB_STATE_ERROR mYNELsheVoj4[xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\x9a\xbc['), chr(0b1010110 + 0o16) + chr(101) + '\x63' + '\157' + chr(0b100 + 0o140) + chr(9502 - 9401))(chr(1916 - 1799) + '\x74' + '\x66' + chr(1969 - 1924) + chr(56))][xafqLlk3kkUe(SXOLrMavuUCe(b'\xe8\x81\xbdW\xb4'), chr(0b1100100) + chr(4018 - 3917) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(56))] = (M8_cKLkHVB2V(HJKwRlaB772i), xafqLlk3kkUe(SXOLrMavuUCe(b'\xd9\x86\xa1]\xe6\xf1\x0c\xc4(\xe6'), chr(2926 - 2826) + chr(0b1100001 + 0o4) + chr(99) + '\157' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1101111 + 0o5) + '\146' + chr(0b101101) + chr(56))) elif qE_wv_CxeOHk: mYNELsheVoj4[xafqLlk3kkUe(SXOLrMavuUCe(b'\xfe\x87\xaeL\xa3'), '\x64' + chr(0b1100101) + chr(5784 - 5685) + chr(111) + chr(4612 - 4512) + '\x65')('\165' + chr(116) + '\x66' + chr(0b11 + 0o52) + chr(0b110000 + 0o10))] = QMSqGndf4aIO.base.JOB_STATE_ERROR mYNELsheVoj4[xafqLlk3kkUe(SXOLrMavuUCe(b'\xe0\x9a\xbc['), chr(0b1100100) + '\145' + '\x63' + chr(111) + '\144' + chr(0b110110 + 0o57))('\x75' + chr(0b100110 + 0o116) + '\x66' + '\055' + '\070')][xafqLlk3kkUe(SXOLrMavuUCe(b'\xe8\x81\xbdW\xb4'), '\x64' + chr(0b1100101) + chr(99) + chr(0b110111 + 0o70) + chr(0b1100100) + chr(8365 - 8264))(chr(1316 - 1199) + chr(0b1110100) + chr(102) + chr(913 - 868) + chr(0b111000))] = (M8_cKLkHVB2V(HJKwRlaB772i), xafqLlk3kkUe(SXOLrMavuUCe(b'\xd9\x86\xa1]\xe6\xe6\x1b\xdb(\xe2\xb0\xe3'), '\x64' + '\145' + chr(0b1100011) + chr(111) + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(0b101111 + 0o67) + '\055' + chr(290 - 234))) else: mYNELsheVoj4[xafqLlk3kkUe(SXOLrMavuUCe(b'\xfe\x87\xaeL\xa3'), chr(2077 - 1977) + chr(0b1010110 + 0o17) + chr(0b11001 + 0o112) + chr(111) + chr(100) + '\x65')('\x75' + chr(0b11100 + 0o130) + chr(0b1100110) + chr(45) + chr(0b111000))] = QMSqGndf4aIO.base.JOB_STATE_DONE cIk1cX7TbQ1B = oVre8I6UXc3b._to_hyperopt_result(ShZmEKfTkAOZ) mYNELsheVoj4[xafqLlk3kkUe(SXOLrMavuUCe(b'\xff\x96\xbcM\xaa\xc0'), chr(0b110001 + 0o63) + '\x65' + '\143' + chr(1034 - 923) + chr(100) + chr(101))(chr(117) + chr(7423 - 7307) + '\146' + chr(0b101010 + 0o3) + '\x38')] = cIk1cX7TbQ1B xafqLlk3kkUe(oVre8I6UXc3b._hpopt_trials, xafqLlk3kkUe(SXOLrMavuUCe(b'\xff\x96\xa9J\xa3\xc7\x16'), chr(8736 - 8636) + chr(3929 - 3828) + chr(99) + chr(0b101001 + 0o106) + '\x64' + chr(0b11101 + 0o110))(chr(0b101010 + 0o113) + chr(0b1110100) + chr(0b1100110) + chr(45) + '\x38'))() del xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd2\x9f\xa6N\xa3\xeb\n\xc4.\xf5\xb9\xd8\x0c\xcf\x8bq\xcbVX'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(56)))[rv8CNRYETQhs]
ray-project/ray
python/ray/experimental/streaming/batched_queue.py
plasma_prefetch
def plasma_prefetch(object_id): """Tells plasma to prefetch the given object_id.""" local_sched_client = ray.worker.global_worker.raylet_client ray_obj_id = ray.ObjectID(object_id) local_sched_client.fetch_or_reconstruct([ray_obj_id], True)
python
def plasma_prefetch(object_id): """Tells plasma to prefetch the given object_id.""" local_sched_client = ray.worker.global_worker.raylet_client ray_obj_id = ray.ObjectID(object_id) local_sched_client.fetch_or_reconstruct([ray_obj_id], True)
[ "def", "plasma_prefetch", "(", "object_id", ")", ":", "local_sched_client", "=", "ray", ".", "worker", ".", "global_worker", ".", "raylet_client", "ray_obj_id", "=", "ray", ".", "ObjectID", "(", "object_id", ")", "local_sched_client", ".", "fetch_or_reconstruct", "(", "[", "ray_obj_id", "]", ",", "True", ")" ]
Tells plasma to prefetch the given object_id.
[ "Tells", "plasma", "to", "prefetch", "the", "given", "object_id", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/streaming/batched_queue.py#L17-L21
train
Tells plasma to prefetch the given object_id.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zr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L,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(291 - 243) + '\x6f' + '\062' + chr(0b10001 + 0o42) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1101 + 0o46) + '\065' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011100 + 0o23) + chr(0b10 + 0o61) + '\x32' + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\062' + '\060' + chr(51), 4438 - 4430), ehT0Px3KOsy9(chr(48) + chr(12053 - 11942) + chr(0b110001) + '\066' + chr(280 - 225), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b110110) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(1631 - 1583) + chr(0b1011001 + 0o26) + '\x33' + chr(54) + chr(0b110110), 10043 - 10035), ehT0Px3KOsy9(chr(937 - 889) + chr(0b11001 + 0o126) + chr(0b110010) + chr(49) + chr(703 - 650), 0o10), ehT0Px3KOsy9('\x30' + chr(737 - 626) + chr(0b1 + 0o61) + chr(0b110010) + chr(53), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(49), 4009 - 4001), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + '\067' + chr(1447 - 1392), 0o10), ehT0Px3KOsy9(chr(193 - 145) + '\x6f' + chr(283 - 233) + '\x31' + '\065', 8), ehT0Px3KOsy9(chr(1664 - 1616) + chr(0b1101111) + '\x33' + chr(0b0 + 0o60) + '\x34', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(2782 - 2728) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(3068 - 2957) + chr(652 - 602) + chr(0b10011 + 0o36) + '\065', 8), ehT0Px3KOsy9(chr(583 - 535) + '\157' + '\x36' + '\065', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(53) + '\x34', 0b1000), ehT0Px3KOsy9(chr(1714 - 1666) + chr(0b1101111) + chr(1965 - 1914) + chr(55) + chr(0b110101), 16413 - 16405), ehT0Px3KOsy9('\060' + chr(0b1001110 + 0o41) + '\x35' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(55) + chr(1304 - 1256), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + chr(2077 - 2026) + '\x30', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(55) + '\065', 22451 - 22443), ehT0Px3KOsy9(chr(48) + chr(3442 - 3331) + chr(1507 - 1457) + chr(50) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(48) + chr(3364 - 3253) + chr(0b110001) + '\063' + chr(0b110100 + 0o0), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b111 + 0o53) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(52) + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + '\067' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101011 + 0o104) + chr(0b110010) + '\067' + chr(50), 0o10), ehT0Px3KOsy9(chr(58 - 10) + '\x6f' + chr(51) + '\x30' + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b101000 + 0o10) + '\157' + '\062' + '\x30' + chr(49), 14053 - 14045), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + '\060' + chr(52), 50338 - 50330), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b111011 + 0o64) + chr(0b1011 + 0o46) + '\063' + chr(55), 2310 - 2302), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\x6f' + chr(0b110011) + chr(0b110000) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(1689 - 1641) + chr(5489 - 5378) + chr(51) + chr(0b1001 + 0o54) + '\x37', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + chr(49) + chr(0b101001 + 0o16), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b10101 + 0o33) + chr(49), 0o10), ehT0Px3KOsy9(chr(2034 - 1986) + '\157' + chr(49) + chr(0b110010) + '\x34', 54746 - 54738), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + chr(0b10001 + 0o42) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(111) + '\062' + chr(0b110101 + 0o1) + chr(0b10100 + 0o35), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10111 + 0o34) + chr(0b1111 + 0o45) + chr(0b110111), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + chr(53) + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb1'), chr(0b10110 + 0o116) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')('\165' + chr(8935 - 8819) + chr(0b110011 + 0o63) + chr(45) + chr(0b101000 + 0o20)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def STCdSWxkJm9I(HTn3JlC1RoCF): jsQkiPe5rqLp = H9zaXRrGK6Cq.worker.global_worker.NPeqddmqygTv HEmfvgXAUPtF = H9zaXRrGK6Cq.ObjectID(HTn3JlC1RoCF) xafqLlk3kkUe(jsQkiPe5rqLp, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9\x8c\xa2\xe0\x1f)\x99\xff\xcas\xda\xee\xabY\xfeA^\x88ML'), chr(0b1010 + 0o132) + chr(10180 - 10079) + chr(7561 - 7462) + chr(9845 - 9734) + chr(100) + '\x65')(chr(0b100011 + 0o122) + chr(3662 - 3546) + chr(6162 - 6060) + '\055' + '\070'))([HEmfvgXAUPtF], ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b100101 + 0o112) + chr(1804 - 1755), 8))
ray-project/ray
python/ray/experimental/streaming/batched_queue.py
plasma_get
def plasma_get(object_id): """Get an object directly from plasma without going through object table. Precondition: plasma_prefetch(object_id) has been called before. """ client = ray.worker.global_worker.plasma_client plasma_id = ray.pyarrow.plasma.ObjectID(object_id) while not client.contains(plasma_id): pass return client.get(plasma_id)
python
def plasma_get(object_id): """Get an object directly from plasma without going through object table. Precondition: plasma_prefetch(object_id) has been called before. """ client = ray.worker.global_worker.plasma_client plasma_id = ray.pyarrow.plasma.ObjectID(object_id) while not client.contains(plasma_id): pass return client.get(plasma_id)
[ "def", "plasma_get", "(", "object_id", ")", ":", "client", "=", "ray", ".", "worker", ".", "global_worker", ".", "plasma_client", "plasma_id", "=", "ray", ".", "pyarrow", ".", "plasma", ".", "ObjectID", "(", "object_id", ")", "while", "not", "client", ".", "contains", "(", "plasma_id", ")", ":", "pass", "return", "client", ".", "get", "(", "plasma_id", ")" ]
Get an object directly from plasma without going through object table. Precondition: plasma_prefetch(object_id) has been called before.
[ "Get", "an", "object", "directly", "from", "plasma", "without", "going", "through", "object", "table", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/streaming/batched_queue.py#L24-L33
train
Get an object from plasma without going through object table.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,N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l9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\x6f' + chr(0b1100 + 0o52), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(55) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(2507 - 2396) + chr(0b110011) + chr(0b110000) + chr(0b1101 + 0o46), 62436 - 62428), ehT0Px3KOsy9(chr(48) + chr(0b1111 + 0o140) + '\061' + chr(154 - 104) + chr(751 - 700), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(0b101110 + 0o11) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\x6f' + chr(0b110011) + '\063' + chr(1823 - 1774), ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + '\157' + chr(0b10111 + 0o32) + chr(48) + chr(1053 - 1005), 32634 - 32626), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(53) + '\x31', 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\062' + chr(1019 - 964) + chr(50), 0o10), ehT0Px3KOsy9(chr(1420 - 1372) + '\157' + '\x33' + chr(638 - 590) + chr(2174 - 2123), 8), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(111) + chr(0b101111 + 0o2) + chr(1168 - 1116) + chr(49), 4557 - 4549), ehT0Px3KOsy9('\060' + chr(0b10101 + 0o132) + chr(0b110011) + chr(2262 - 2207) + chr(0b110111), 8), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1101111) + '\x32' + chr(0b110011) + chr(0b101011 + 0o14), 27976 - 27968), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + '\x31', 5535 - 5527), ehT0Px3KOsy9('\x30' + chr(661 - 550) + '\063' + chr(0b110000) + chr(2790 - 2736), 51053 - 51045), ehT0Px3KOsy9('\060' + '\157' + chr(1916 - 1867) + '\x35' + '\x35', 64359 - 64351), ehT0Px3KOsy9('\060' + '\157' + chr(49) + chr(53) + chr(1379 - 1330), 0o10), ehT0Px3KOsy9(chr(1224 - 1176) + chr(0b1001010 + 0o45) + chr(0b101100 + 0o5) + '\x34' + chr(50), 34122 - 34114), ehT0Px3KOsy9(chr(0b110000) + chr(0b111111 + 0o60) + chr(0b11010 + 0o35), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1000 + 0o51) + chr(0b110101) + '\x30', 42305 - 42297), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2030 - 1981) + '\x37' + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(10081 - 9970) + chr(0b1111 + 0o46) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(154 - 101) + chr(48), 0b1000), ehT0Px3KOsy9(chr(58 - 10) + chr(6754 - 6643) + '\061' + chr(0b110100) + chr(0b11001 + 0o36), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(1642 - 1591) + chr(50) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + '\065' + chr(55), 20376 - 20368), ehT0Px3KOsy9(chr(752 - 704) + chr(111) + '\062' + '\064' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b100 + 0o54) + '\x6f' + chr(2446 - 2396) + '\x33' + '\x36', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b11001 + 0o126) + '\x36' + chr(0b1101 + 0o43), ord("\x08")), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1101111) + '\062' + chr(694 - 640) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(953 - 905) + chr(0b110010 + 0o75) + chr(0b11 + 0o64) + '\x31', 61721 - 61713), ehT0Px3KOsy9(chr(0b110000) + chr(3644 - 3533) + chr(0b110001) + '\061' + '\066', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\062' + '\061' + chr(0b110101), 0o10), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(111) + chr(229 - 178) + '\060' + '\x33', 8), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1101110 + 0o1) + '\x33' + chr(48) + chr(1230 - 1182), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(0b101000 + 0o12) + chr(1026 - 977), 8), ehT0Px3KOsy9(chr(509 - 461) + chr(0b1101111) + chr(0b110001) + chr(0b1 + 0o64) + chr(0b11000 + 0o34), 0b1000), ehT0Px3KOsy9(chr(1469 - 1421) + chr(0b1101111) + chr(0b110011), 30614 - 30606), ehT0Px3KOsy9(chr(1834 - 1786) + '\157' + chr(0b110001) + '\x30' + chr(48), 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(517 - 464) + chr(0b10010 + 0o36), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'('), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\x64' + '\x65')('\x75' + chr(0b1110100) + '\146' + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Iu61ZiM1mFr_(HTn3JlC1RoCF): iBSv7CWmC2h1 = H9zaXRrGK6Cq.worker.global_worker.nElQlT1AjeaK GGRTPAYp3D3Z = H9zaXRrGK6Cq.pyarrow.plasma.ObjectID(HTn3JlC1RoCF) while not xafqLlk3kkUe(iBSv7CWmC2h1, xafqLlk3kkUe(SXOLrMavuUCe(b"eT\xad'\x9e\xb0.Z"), chr(770 - 670) + chr(0b1000101 + 0o40) + '\143' + chr(2190 - 2079) + chr(100) + chr(5810 - 5709))(chr(6896 - 6779) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000)))(GGRTPAYp3D3Z): pass return xafqLlk3kkUe(iBSv7CWmC2h1, xafqLlk3kkUe(SXOLrMavuUCe(b'a^\xb7'), '\144' + chr(0b1010100 + 0o21) + chr(0b110111 + 0o54) + '\157' + '\144' + '\145')(chr(117) + chr(4230 - 4114) + '\x66' + chr(45) + chr(0b100110 + 0o22)))(GGRTPAYp3D3Z)
ray-project/ray
python/ray/experimental/streaming/batched_queue.py
BatchedQueue.enable_writes
def enable_writes(self): """Restores the state of the batched queue for writing.""" self.write_buffer = [] self.flush_lock = threading.RLock() self.flush_thread = FlushThread(self.max_batch_time, self._flush_writes)
python
def enable_writes(self): """Restores the state of the batched queue for writing.""" self.write_buffer = [] self.flush_lock = threading.RLock() self.flush_thread = FlushThread(self.max_batch_time, self._flush_writes)
[ "def", "enable_writes", "(", "self", ")", ":", "self", ".", "write_buffer", "=", "[", "]", "self", ".", "flush_lock", "=", "threading", ".", "RLock", "(", ")", "self", ".", "flush_thread", "=", "FlushThread", "(", "self", ".", "max_batch_time", ",", "self", ".", "_flush_writes", ")" ]
Restores the state of the batched queue for writing.
[ "Restores", "the", "state", "of", "the", "batched", "queue", "for", "writing", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/streaming/batched_queue.py#L136-L141
train
Restores the state of the batched queue for writing.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S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VJsrp8,tzcpInYwBvYW,iDQ_gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b11 + 0o60) + chr(0b110110) + '\x36', 0o10), ehT0Px3KOsy9(chr(2181 - 2133) + '\x6f' + '\062' + '\067' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(2146 - 2098) + chr(0b1011000 + 0o27) + chr(74 - 22) + '\x32', ord("\x08")), ehT0Px3KOsy9('\060' + chr(8505 - 8394) + chr(50) + chr(49), 42874 - 42866), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + chr(89 - 41) + chr(1215 - 1160), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + chr(0b10011 + 0o41) + chr(988 - 937), 15096 - 15088), ehT0Px3KOsy9('\x30' + chr(0b11 + 0o154) + chr(1252 - 1202) + '\065', 18229 - 18221), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(0b100010 + 0o17) + chr(1958 - 1904), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111 + 0o0) + '\x32' + chr(0b110101) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + '\x32' + '\x36', 0o10), ehT0Px3KOsy9(chr(807 - 759) + '\x6f' + chr(0b1100 + 0o45) + chr(0b1000 + 0o56) + chr(49), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b10101 + 0o132) + chr(53), 24337 - 24329), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\x6f' + chr(51) + chr(922 - 867), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1306 - 1255) + chr(1399 - 1347), 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + '\x6f' + '\x33' + '\x32' + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101011 + 0o6) + chr(51) + '\x34', 0b1000), ehT0Px3KOsy9(chr(1718 - 1670) + chr(111) + '\061' + chr(55) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(54) + chr(927 - 879), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(11455 - 11344) + chr(0b100000 + 0o23) + chr(0b111 + 0o55), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + chr(55) + '\065', 22054 - 22046), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2455 - 2404) + chr(0b100001 + 0o17) + '\066', 63081 - 63073), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110001) + '\x35' + chr(0b110110), 5979 - 5971), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2227 - 2178) + '\067' + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + chr(1064 - 1016), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(0b11001 + 0o33) + chr(53), 62414 - 62406), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b1110 + 0o51) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b1010 + 0o50) + '\065' + '\x34', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(5479 - 5368) + '\061' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(164 - 116) + chr(0b1001011 + 0o44) + '\061' + chr(942 - 890) + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001010 + 0o45) + chr(0b110011) + chr(461 - 412) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b1101111) + '\065' + chr(0b11 + 0o60), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(2245 - 2196) + '\065' + chr(51), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x32' + chr(55) + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(1285 - 1174) + '\x32' + '\x36' + '\064', 60088 - 60080), ehT0Px3KOsy9('\060' + chr(0b1011001 + 0o26) + chr(1344 - 1293) + chr(0b10001 + 0o44) + '\067', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063', 0b1000), ehT0Px3KOsy9(chr(59 - 11) + chr(0b1101111) + chr(50) + chr(0b110010) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11000 + 0o33) + '\066' + '\x37', 54646 - 54638), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + '\x34' + chr(2672 - 2617), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + chr(53) + chr(0b10001 + 0o37), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8'), chr(0b1100100) + '\145' + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def dwHOj3zyJkQV(oVre8I6UXc3b): oVre8I6UXc3b.yJ5kD3G3IAFy = [] oVre8I6UXc3b.hK_VITIjLwdr = mitHeYQsEXej.RLock() oVre8I6UXc3b.jS3NTT7g22R2 = xpWQNg7n7NEV(oVre8I6UXc3b.max_batch_time, oVre8I6UXc3b._flush_writes)
ray-project/ray
python/ray/experimental/streaming/batched_queue.py
BatchedQueue._wait_for_reader
def _wait_for_reader(self): """Checks for backpressure by the downstream reader.""" if self.max_size <= 0: # Unlimited queue return if self.write_item_offset - self.cached_remote_offset <= self.max_size: return # Hasn't reached max size remote_offset = internal_kv._internal_kv_get(self.read_ack_key) if remote_offset is None: # logger.debug("[writer] Waiting for reader to start...") while remote_offset is None: time.sleep(0.01) remote_offset = internal_kv._internal_kv_get(self.read_ack_key) remote_offset = int(remote_offset) if self.write_item_offset - remote_offset > self.max_size: logger.debug( "[writer] Waiting for reader to catch up {} to {} - {}".format( remote_offset, self.write_item_offset, self.max_size)) while self.write_item_offset - remote_offset > self.max_size: time.sleep(0.01) remote_offset = int( internal_kv._internal_kv_get(self.read_ack_key)) self.cached_remote_offset = remote_offset
python
def _wait_for_reader(self): """Checks for backpressure by the downstream reader.""" if self.max_size <= 0: # Unlimited queue return if self.write_item_offset - self.cached_remote_offset <= self.max_size: return # Hasn't reached max size remote_offset = internal_kv._internal_kv_get(self.read_ack_key) if remote_offset is None: # logger.debug("[writer] Waiting for reader to start...") while remote_offset is None: time.sleep(0.01) remote_offset = internal_kv._internal_kv_get(self.read_ack_key) remote_offset = int(remote_offset) if self.write_item_offset - remote_offset > self.max_size: logger.debug( "[writer] Waiting for reader to catch up {} to {} - {}".format( remote_offset, self.write_item_offset, self.max_size)) while self.write_item_offset - remote_offset > self.max_size: time.sleep(0.01) remote_offset = int( internal_kv._internal_kv_get(self.read_ack_key)) self.cached_remote_offset = remote_offset
[ "def", "_wait_for_reader", "(", "self", ")", ":", "if", "self", ".", "max_size", "<=", "0", ":", "# Unlimited queue", "return", "if", "self", ".", "write_item_offset", "-", "self", ".", "cached_remote_offset", "<=", "self", ".", "max_size", ":", "return", "# Hasn't reached max size", "remote_offset", "=", "internal_kv", ".", "_internal_kv_get", "(", "self", ".", "read_ack_key", ")", "if", "remote_offset", "is", "None", ":", "# logger.debug(\"[writer] Waiting for reader to start...\")", "while", "remote_offset", "is", "None", ":", "time", ".", "sleep", "(", "0.01", ")", "remote_offset", "=", "internal_kv", ".", "_internal_kv_get", "(", "self", ".", "read_ack_key", ")", "remote_offset", "=", "int", "(", "remote_offset", ")", "if", "self", ".", "write_item_offset", "-", "remote_offset", ">", "self", ".", "max_size", ":", "logger", ".", "debug", "(", "\"[writer] Waiting for reader to catch up {} to {} - {}\"", ".", "format", "(", "remote_offset", ",", "self", ".", "write_item_offset", ",", "self", ".", "max_size", ")", ")", "while", "self", ".", "write_item_offset", "-", "remote_offset", ">", "self", ".", "max_size", ":", "time", ".", "sleep", "(", "0.01", ")", "remote_offset", "=", "int", "(", "internal_kv", ".", "_internal_kv_get", "(", "self", ".", "read_ack_key", ")", ")", "self", ".", "cached_remote_offset", "=", "remote_offset" ]
Checks for backpressure by the downstream reader.
[ "Checks", "for", "backpressure", "by", "the", "downstream", "reader", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/streaming/batched_queue.py#L166-L187
train
Checks for backpressure by the downstream reader.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,TLbJ60djyws0,rIcPej9ZqMqV,WTxpD_zsEOh2,LgE_IO_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v,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + chr(0b100011 + 0o17) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\063' + '\061' + '\061', 0b1000), ehT0Px3KOsy9(chr(1250 - 1202) + chr(3532 - 3421) + chr(210 - 160) + chr(55) + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + chr(0b1101 + 0o46) + chr(1168 - 1116), 65018 - 65010), ehT0Px3KOsy9(chr(272 - 224) + chr(0b1011011 + 0o24) + chr(0b101110 + 0o4) + chr(0b1010 + 0o53), 0o10), ehT0Px3KOsy9('\060' + chr(0b101101 + 0o102) + '\x35' + chr(1952 - 1898), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b10001 + 0o42) + '\x31' + chr(0b110 + 0o54), 41785 - 41777), ehT0Px3KOsy9(chr(804 - 756) + chr(0b1101010 + 0o5) + chr(1170 - 1119) + chr(0b110100) + chr(54), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(49) + '\x34' + chr(2701 - 2648), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b101010 + 0o7) + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1011010 + 0o25) + chr(49) + chr(1026 - 973) + chr(1457 - 1408), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + '\x34' + chr(0b110001), 0b1000), ehT0Px3KOsy9('\060' + chr(3546 - 3435) + chr(0b110101) + chr(402 - 348), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1440 - 1389) + chr(0b110110) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011 + 0o0) + '\x37' + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b100100 + 0o20) + chr(2196 - 2144), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1101111) + chr(2712 - 2657) + '\061', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b101010 + 0o12) + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b110000) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(6838 - 6727) + chr(850 - 800) + chr(1550 - 1500) + chr(0b110110 + 0o0), 0o10), ehT0Px3KOsy9(chr(2047 - 1999) + chr(111) + chr(50) + '\x34' + chr(52), 0o10), ehT0Px3KOsy9(chr(1307 - 1259) + chr(0b1001001 + 0o46) + '\x33' + chr(0b110110) + chr(86 - 35), 22057 - 22049), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(0b1010010 + 0o35) + chr(2285 - 2236) + chr(49), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\062' + chr(0b110100) + '\065', 62388 - 62380), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + chr(0b11101 + 0o27) + '\x35', 11605 - 11597), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b110011 + 0o74) + chr(0b110010) + chr(0b11 + 0o56) + chr(55), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1912 - 1863) + chr(2012 - 1963) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + chr(55) + chr(0b1001 + 0o51), 38410 - 38402), ehT0Px3KOsy9('\060' + chr(0b10010 + 0o135) + chr(51) + chr(1119 - 1071) + chr(50), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b11 + 0o154) + '\x33' + '\x36' + chr(557 - 508), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b11110 + 0o24) + '\x37' + chr(0b100111 + 0o16), 8), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\x6f' + chr(54) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(111) + chr(509 - 458) + chr(0b110011) + chr(0b100010 + 0o25), 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + '\062' + chr(0b110101), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(0b110111) + chr(0b1001 + 0o54), 5712 - 5704), ehT0Px3KOsy9(chr(48) + chr(0b1010110 + 0o31) + '\x33' + '\063' + chr(1356 - 1306), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + '\x30' + chr(1941 - 1893), 63025 - 63017), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(5576 - 5465) + chr(51) + chr(54) + chr(1945 - 1891), 17211 - 17203), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(596 - 546) + '\064' + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1010011 + 0o34) + chr(0b110011) + chr(0b110100 + 0o3) + chr(0b1011 + 0o52), 8740 - 8732)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + chr(0b110101) + '\060', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'z'), chr(0b1100100) + chr(0b1100101) + chr(0b1010101 + 0o16) + chr(12153 - 12042) + chr(0b1100100) + '\x65')(chr(317 - 200) + chr(116) + chr(0b1000111 + 0o37) + chr(45) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def JrKvF3R7z0Wg(oVre8I6UXc3b): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'9\xa8\xc5\xc3fG\xb0\x83'), chr(0b1100100) + chr(8647 - 8546) + chr(99) + chr(0b1101111) + chr(6204 - 6104) + chr(0b111110 + 0o47))('\165' + '\x74' + chr(102) + chr(0b101101) + '\x38')) <= ehT0Px3KOsy9(chr(0b11 + 0o55) + '\x6f' + '\x30', 0b1000): return if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'#\xbb\xd4\xe8pq\xa3\x92\x00\xe26\x0eH\x94\x8cAM'), chr(0b1100100 + 0o0) + '\x65' + '\x63' + '\157' + chr(6611 - 6511) + chr(2170 - 2069))('\x75' + chr(5759 - 5643) + chr(102) + chr(0b101101) + chr(56))) - xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'7\xa8\xde\xf4pJ\x95\x94\x00\xe2\x06\x15K\xad\x90B_V\xa7\xe2'), '\x64' + chr(3808 - 3707) + chr(4635 - 4536) + chr(0b1101111) + chr(0b1001101 + 0o27) + '\x65')(chr(5121 - 5004) + chr(116) + '\146' + chr(1025 - 980) + '\070')) <= xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'9\xa8\xc5\xc3fG\xb0\x83'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111 + 0o0) + chr(0b1001111 + 0o25) + chr(0b10110 + 0o117))(chr(0b1110101) + chr(0b1110011 + 0o1) + '\146' + chr(0b101101) + '\070')): return Z2lp4aU8Msmj = IZeuy8L4OpGT._internal_kv_get(oVre8I6UXc3b.read_ack_key) if Z2lp4aU8Msmj is None: while Z2lp4aU8Msmj is None: xafqLlk3kkUe(ltvhPP4VhXre, xafqLlk3kkUe(SXOLrMavuUCe(b"'\xa5\xd8\xf9e"), chr(0b1100100) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(569 - 467) + chr(0b101101) + '\070'))(0.01) Z2lp4aU8Msmj = IZeuy8L4OpGT._internal_kv_get(oVre8I6UXc3b.read_ack_key) Z2lp4aU8Msmj = ehT0Px3KOsy9(Z2lp4aU8Msmj) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'#\xbb\xd4\xe8pq\xa3\x92\x00\xe26\x0eH\x94\x8cAM'), '\144' + chr(2571 - 2470) + chr(0b100010 + 0o101) + chr(0b1101111) + '\x64' + '\x65')('\165' + chr(0b10000 + 0o144) + '\x66' + chr(45) + '\070')) - Z2lp4aU8Msmj > xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'9\xa8\xc5\xc3fG\xb0\x83'), chr(100) + chr(5251 - 5150) + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')('\x75' + '\x74' + chr(102) + chr(45) + '\x38')): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'0\xac\xdf\xe9r'), chr(100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b100001 + 0o103) + chr(0b1100101))(chr(0b11001 + 0o134) + chr(0b111 + 0o155) + '\x66' + '\x2d' + chr(56)))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x0f\xbe\xcf\xf5aK\xb8\xbbE\xd8\x08\x08Z\x9b\x91C\x19C\xad\xe4\x84\x81l\xc4\x81\xea<\xda\xb6\x9e\x9dS\xbe\xe1\x1e\xb2`\x83\xd0\xdd/\xb4\x9d\xe8z\x0e\xb1\x9bE\xa2I\x1aS'), chr(4286 - 4186) + '\145' + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(117) + chr(0b1011011 + 0o31) + chr(102) + '\x2d' + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x02\xfd\xcf\xf3]O\x99\xd55\xff\x0c\x0b'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1001111 + 0o46) + chr(116) + '\146' + chr(45) + chr(0b111000)))(Z2lp4aU8Msmj, xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'#\xbb\xd4\xe8pq\xa3\x92\x00\xe26\x0eH\x94\x8cAM'), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(100) + chr(101))('\165' + '\x74' + '\x66' + chr(0b101101) + chr(0b111000))), xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'9\xa8\xc5\xc3fG\xb0\x83'), chr(100) + chr(101) + '\x63' + '\157' + chr(0b1000111 + 0o35) + chr(0b1100101))(chr(0b11011 + 0o132) + '\x74' + chr(3698 - 3596) + chr(45) + chr(0b111000))))) while xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'#\xbb\xd4\xe8pq\xa3\x92\x00\xe26\x0eH\x94\x8cAM'), chr(100) + chr(0b101110 + 0o67) + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(4414 - 4297) + chr(116) + chr(0b1100110) + chr(0b101101) + '\070')) - Z2lp4aU8Msmj > xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'9\xa8\xc5\xc3fG\xb0\x83'), '\144' + chr(0b1001110 + 0o27) + chr(99) + '\157' + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(6409 - 6307) + chr(0b101101) + chr(0b111000))): xafqLlk3kkUe(ltvhPP4VhXre, xafqLlk3kkUe(SXOLrMavuUCe(b"'\xa5\xd8\xf9e"), '\x64' + chr(101) + chr(99) + '\x6f' + chr(0b100010 + 0o102) + chr(6751 - 6650))(chr(0b1110101) + '\164' + '\x66' + chr(0b1000 + 0o45) + '\070'))(0.01) Z2lp4aU8Msmj = ehT0Px3KOsy9(IZeuy8L4OpGT._internal_kv_get(oVre8I6UXc3b.read_ack_key)) oVre8I6UXc3b.ZASuniOFaqAR = Z2lp4aU8Msmj
ray-project/ray
python/ray/rllib/optimizers/rollout.py
collect_samples
def collect_samples(agents, sample_batch_size, num_envs_per_worker, train_batch_size): """Collects at least train_batch_size samples, never discarding any.""" num_timesteps_so_far = 0 trajectories = [] agent_dict = {} for agent in agents: fut_sample = agent.sample.remote() agent_dict[fut_sample] = agent while agent_dict: [fut_sample], _ = ray.wait(list(agent_dict)) agent = agent_dict.pop(fut_sample) next_sample = ray_get_and_free(fut_sample) assert next_sample.count >= sample_batch_size * num_envs_per_worker num_timesteps_so_far += next_sample.count trajectories.append(next_sample) # Only launch more tasks if we don't already have enough pending pending = len(agent_dict) * sample_batch_size * num_envs_per_worker if num_timesteps_so_far + pending < train_batch_size: fut_sample2 = agent.sample.remote() agent_dict[fut_sample2] = agent return SampleBatch.concat_samples(trajectories)
python
def collect_samples(agents, sample_batch_size, num_envs_per_worker, train_batch_size): """Collects at least train_batch_size samples, never discarding any.""" num_timesteps_so_far = 0 trajectories = [] agent_dict = {} for agent in agents: fut_sample = agent.sample.remote() agent_dict[fut_sample] = agent while agent_dict: [fut_sample], _ = ray.wait(list(agent_dict)) agent = agent_dict.pop(fut_sample) next_sample = ray_get_and_free(fut_sample) assert next_sample.count >= sample_batch_size * num_envs_per_worker num_timesteps_so_far += next_sample.count trajectories.append(next_sample) # Only launch more tasks if we don't already have enough pending pending = len(agent_dict) * sample_batch_size * num_envs_per_worker if num_timesteps_so_far + pending < train_batch_size: fut_sample2 = agent.sample.remote() agent_dict[fut_sample2] = agent return SampleBatch.concat_samples(trajectories)
[ "def", "collect_samples", "(", "agents", ",", "sample_batch_size", ",", "num_envs_per_worker", ",", "train_batch_size", ")", ":", "num_timesteps_so_far", "=", "0", "trajectories", "=", "[", "]", "agent_dict", "=", "{", "}", "for", "agent", "in", "agents", ":", "fut_sample", "=", "agent", ".", "sample", ".", "remote", "(", ")", "agent_dict", "[", "fut_sample", "]", "=", "agent", "while", "agent_dict", ":", "[", "fut_sample", "]", ",", "_", "=", "ray", ".", "wait", "(", "list", "(", "agent_dict", ")", ")", "agent", "=", "agent_dict", ".", "pop", "(", "fut_sample", ")", "next_sample", "=", "ray_get_and_free", "(", "fut_sample", ")", "assert", "next_sample", ".", "count", ">=", "sample_batch_size", "*", "num_envs_per_worker", "num_timesteps_so_far", "+=", "next_sample", ".", "count", "trajectories", ".", "append", "(", "next_sample", ")", "# Only launch more tasks if we don't already have enough pending", "pending", "=", "len", "(", "agent_dict", ")", "*", "sample_batch_size", "*", "num_envs_per_worker", "if", "num_timesteps_so_far", "+", "pending", "<", "train_batch_size", ":", "fut_sample2", "=", "agent", ".", "sample", ".", "remote", "(", ")", "agent_dict", "[", "fut_sample2", "]", "=", "agent", "return", "SampleBatch", ".", "concat_samples", "(", "trajectories", ")" ]
Collects at least train_batch_size samples, never discarding any.
[ "Collects", "at", "least", "train_batch_size", "samples", "never", "discarding", "any", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/optimizers/rollout.py#L14-L40
train
Collect samples from agents and return a SampleBatch.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,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sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + chr(0b110011) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(11975 - 11864) + chr(0b110010) + chr(48) + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + '\064' + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(963 - 915) + chr(111) + chr(49) + chr(1923 - 1870) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1101111) + chr(999 - 950) + chr(49), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\x31' + chr(0b1001 + 0o47) + chr(0b110001), 44577 - 44569), ehT0Px3KOsy9('\060' + '\157' + chr(1472 - 1423) + chr(0b101011 + 0o14) + chr(52), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(6876 - 6765) + chr(1829 - 1779) + '\x30', 45141 - 45133), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(1446 - 1396), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1 + 0o156) + chr(263 - 211) + chr(980 - 925), 11745 - 11737), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + '\x34' + chr(0b110100), 0o10), ehT0Px3KOsy9('\x30' + chr(8563 - 8452) + '\x31' + '\062' + chr(0b1111 + 0o41), 30023 - 30015), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + '\x37' + chr(0b110010 + 0o0), 0b1000), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + chr(837 - 788) + chr(54) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(49) + '\062' + chr(646 - 596), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + '\065' + chr(0b110001), 0b1000), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\157' + chr(0b100000 + 0o21) + chr(0b1111 + 0o50) + chr(0b110100), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + chr(321 - 270) + '\061', 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + '\157' + chr(0b0 + 0o63) + '\x31' + chr(0b1010 + 0o54), ord("\x08")), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1101111) + chr(1674 - 1623) + chr(0b1111 + 0o45) + chr(0b100001 + 0o21), 26651 - 26643), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + '\x31' + chr(1666 - 1613), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(52) + chr(0b1 + 0o62), 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\157' + '\x31' + chr(0b11111 + 0o21) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(958 - 910) + '\157' + chr(1370 - 1319) + chr(1703 - 1655) + '\x37', 48007 - 47999), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1787 - 1736) + chr(0b110000) + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + chr(0b110000 + 0o6), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1773 - 1721) + chr(465 - 415), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b1110 + 0o45) + '\x37' + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110010) + chr(2055 - 2004) + chr(0b110101), 26402 - 26394), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(0b1000 + 0o50) + chr(0b110111), 31543 - 31535), ehT0Px3KOsy9('\x30' + chr(0b111110 + 0o61) + chr(0b11001 + 0o31) + chr(1433 - 1383) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(0b101001 + 0o12) + '\x37', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x32' + chr(0b0 + 0o67) + chr(1107 - 1052), 60947 - 60939), ehT0Px3KOsy9('\060' + chr(0b11011 + 0o124) + chr(0b110011) + '\067' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b11100 + 0o123) + chr(52) + chr(0b1011 + 0o52), ord("\x08")), ehT0Px3KOsy9(chr(992 - 944) + '\x6f' + chr(0b1010 + 0o51) + chr(50), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + '\x37' + chr(1559 - 1506), 44869 - 44861), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100111 + 0o10) + '\066', 0o10), ehT0Px3KOsy9(chr(974 - 926) + '\157' + '\x37', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1010110 + 0o31) + '\x33' + chr(1465 - 1412) + '\061', 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\157' + '\x35' + chr(1049 - 1001), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'r'), chr(0b1000100 + 0o40) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b111011 + 0o51) + '\145')(chr(11059 - 10942) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b10 + 0o66)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def EtGiIUMzkOxK(DGFDHBgWLUl3, Z60tNE14W_7H, s8eHI7Mds_W8, dnj3FL1pkLSs): _zvQvusY1Pwr = ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100110 + 0o12), 0o10) EsM0Tb0l_6OT = [] PMnSuzGWXKBH = {} for PjFixOurfobW in DGFDHBgWLUl3: bNxnuWENeNS2 = PjFixOurfobW.sample.remote() PMnSuzGWXKBH[bNxnuWENeNS2] = PjFixOurfobW while PMnSuzGWXKBH: ([bNxnuWENeNS2], VNGQdHSFPrso) = H9zaXRrGK6Cq.iik9wfy8nMEV(YyaZ4tpXu4lf(PMnSuzGWXKBH)) PjFixOurfobW = PMnSuzGWXKBH.pop(bNxnuWENeNS2) rLx8RQupvoI3 = WQnTQp69SClL(bNxnuWENeNS2) assert xafqLlk3kkUe(rLx8RQupvoI3, xafqLlk3kkUe(SXOLrMavuUCe(b')\xe4\xca9m\x05\x19HXb\xe3\x1f'), chr(3631 - 3531) + chr(0b1100101) + chr(5893 - 5794) + chr(0b1101111) + chr(0b111001 + 0o53) + '\x65')('\x75' + chr(0b1110100) + chr(0b1000101 + 0o41) + chr(0b1001 + 0o44) + '\x38')) >= Z60tNE14W_7H * s8eHI7Mds_W8 _zvQvusY1Pwr += rLx8RQupvoI3.ualWdDeXJEGO xafqLlk3kkUe(EsM0Tb0l_6OT, xafqLlk3kkUe(SXOLrMavuUCe(b'=\xf5\xd6\x0bg%'), '\x64' + chr(101) + chr(2387 - 2288) + '\157' + chr(0b110000 + 0o64) + '\145')(chr(0b11100 + 0o131) + '\164' + '\x66' + chr(0b101101) + '\070'))(rLx8RQupvoI3) gF1nSwSD4r19 = c2A0yzQpDQB3(PMnSuzGWXKBH) * Z60tNE14W_7H * s8eHI7Mds_W8 if _zvQvusY1Pwr + gF1nSwSD4r19 < dnj3FL1pkLSs: _uufwmIgt569 = PjFixOurfobW.sample.remote() PMnSuzGWXKBH[_uufwmIgt569] = PjFixOurfobW return xafqLlk3kkUe(khCLnp9DeedL, xafqLlk3kkUe(SXOLrMavuUCe(b'?\xea\xc8\rh5#csJ\xd4<\x9f\x04'), chr(100) + chr(101) + chr(3577 - 3478) + chr(0b1101111) + chr(0b1110 + 0o126) + '\x65')(chr(0b101100 + 0o111) + chr(116) + chr(8199 - 8097) + chr(45) + '\x38'))(EsM0Tb0l_6OT)
ray-project/ray
python/ray/rllib/optimizers/rollout.py
collect_samples_straggler_mitigation
def collect_samples_straggler_mitigation(agents, train_batch_size): """Collects at least train_batch_size samples. This is the legacy behavior as of 0.6, and launches extra sample tasks to potentially improve performance but can result in many wasted samples. """ num_timesteps_so_far = 0 trajectories = [] agent_dict = {} for agent in agents: fut_sample = agent.sample.remote() agent_dict[fut_sample] = agent while num_timesteps_so_far < train_batch_size: # TODO(pcm): Make wait support arbitrary iterators and remove the # conversion to list here. [fut_sample], _ = ray.wait(list(agent_dict)) agent = agent_dict.pop(fut_sample) # Start task with next trajectory and record it in the dictionary. fut_sample2 = agent.sample.remote() agent_dict[fut_sample2] = agent next_sample = ray_get_and_free(fut_sample) num_timesteps_so_far += next_sample.count trajectories.append(next_sample) logger.info("Discarding {} sample tasks".format(len(agent_dict))) return SampleBatch.concat_samples(trajectories)
python
def collect_samples_straggler_mitigation(agents, train_batch_size): """Collects at least train_batch_size samples. This is the legacy behavior as of 0.6, and launches extra sample tasks to potentially improve performance but can result in many wasted samples. """ num_timesteps_so_far = 0 trajectories = [] agent_dict = {} for agent in agents: fut_sample = agent.sample.remote() agent_dict[fut_sample] = agent while num_timesteps_so_far < train_batch_size: # TODO(pcm): Make wait support arbitrary iterators and remove the # conversion to list here. [fut_sample], _ = ray.wait(list(agent_dict)) agent = agent_dict.pop(fut_sample) # Start task with next trajectory and record it in the dictionary. fut_sample2 = agent.sample.remote() agent_dict[fut_sample2] = agent next_sample = ray_get_and_free(fut_sample) num_timesteps_so_far += next_sample.count trajectories.append(next_sample) logger.info("Discarding {} sample tasks".format(len(agent_dict))) return SampleBatch.concat_samples(trajectories)
[ "def", "collect_samples_straggler_mitigation", "(", "agents", ",", "train_batch_size", ")", ":", "num_timesteps_so_far", "=", "0", "trajectories", "=", "[", "]", "agent_dict", "=", "{", "}", "for", "agent", "in", "agents", ":", "fut_sample", "=", "agent", ".", "sample", ".", "remote", "(", ")", "agent_dict", "[", "fut_sample", "]", "=", "agent", "while", "num_timesteps_so_far", "<", "train_batch_size", ":", "# TODO(pcm): Make wait support arbitrary iterators and remove the", "# conversion to list here.", "[", "fut_sample", "]", ",", "_", "=", "ray", ".", "wait", "(", "list", "(", "agent_dict", ")", ")", "agent", "=", "agent_dict", ".", "pop", "(", "fut_sample", ")", "# Start task with next trajectory and record it in the dictionary.", "fut_sample2", "=", "agent", ".", "sample", ".", "remote", "(", ")", "agent_dict", "[", "fut_sample2", "]", "=", "agent", "next_sample", "=", "ray_get_and_free", "(", "fut_sample", ")", "num_timesteps_so_far", "+=", "next_sample", ".", "count", "trajectories", ".", "append", "(", "next_sample", ")", "logger", ".", "info", "(", "\"Discarding {} sample tasks\"", ".", "format", "(", "len", "(", "agent_dict", ")", ")", ")", "return", "SampleBatch", ".", "concat_samples", "(", "trajectories", ")" ]
Collects at least train_batch_size samples. This is the legacy behavior as of 0.6, and launches extra sample tasks to potentially improve performance but can result in many wasted samples.
[ "Collects", "at", "least", "train_batch_size", "samples", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/optimizers/rollout.py#L43-L72
train
Collect samples from agents and return a new sample batch.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,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,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\062' + chr(1773 - 1719) + chr(50), 0o10), ehT0Px3KOsy9(chr(1849 - 1801) + chr(111) + '\062' + chr(50) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1744 - 1692) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\x6f' + chr(0b110011) + '\x36' + '\x30', 13656 - 13648), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110 + 0o55) + '\x31' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\x33' + chr(51) + chr(49), 0o10), ehT0Px3KOsy9('\x30' + chr(11768 - 11657) + chr(54) + chr(54), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + '\063' + '\064', 0b1000), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b1101111) + '\x32' + chr(732 - 681) + chr(48), 0o10), ehT0Px3KOsy9('\060' + chr(0b11011 + 0o124) + chr(0b110001) + '\x35' + '\x36', 0b1000), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(6356 - 6245) + chr(0b110011) + '\062' + chr(0b101110 + 0o7), 44998 - 44990), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110001) + '\064' + chr(0b110111), 16486 - 16478), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\x6f' + chr(0b110010) + chr(54) + chr(53), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x31' + '\060' + '\x36', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + '\x35' + chr(0b10 + 0o64), 0b1000), ehT0Px3KOsy9('\060' + chr(1029 - 918) + chr(0b101010 + 0o7) + chr(0b110110) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(915 - 865) + chr(1260 - 1205) + chr(1215 - 1164), 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(111) + '\061' + chr(0b100000 + 0o22), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + '\062' + chr(54), 0o10), ehT0Px3KOsy9(chr(256 - 208) + '\157' + chr(51) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1000111 + 0o50) + chr(0b10011 + 0o36) + '\066' + '\061', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b100011 + 0o114) + '\061' + chr(2412 - 2359) + '\064', 3024 - 3016), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + '\062' + chr(675 - 625), 50650 - 50642), ehT0Px3KOsy9(chr(0b110000) + chr(0b111100 + 0o63) + '\065', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110110) + '\x35', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(1035 - 983) + '\062', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\061' + '\060' + chr(2185 - 2137), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + '\x37' + '\062', 0o10), ehT0Px3KOsy9('\x30' + chr(0b110000 + 0o77) + chr(0b101011 + 0o10) + chr(294 - 243) + chr(0b1101 + 0o46), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(52) + '\x36', 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1101111) + chr(601 - 546) + chr(288 - 237), 0o10), ehT0Px3KOsy9(chr(1658 - 1610) + '\157' + chr(0b0 + 0o61) + chr(52) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + '\x30' + chr(51), 56853 - 56845), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + '\061' + '\x34', 45638 - 45630), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x34' + chr(55), 8), ehT0Px3KOsy9(chr(77 - 29) + chr(0b1101 + 0o142) + '\x31' + chr(55) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(111) + '\x34' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(1283 - 1172) + chr(0b100110 + 0o13) + '\x32' + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + '\157' + chr(0b110011) + chr(0b1010 + 0o47) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b101001 + 0o106) + '\x34' + chr(0b110010), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(1591 - 1480) + chr(53) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x9c'), chr(0b1100100) + chr(101) + chr(967 - 868) + '\157' + chr(100) + chr(8659 - 8558))(chr(0b1110101) + chr(0b1110100) + chr(7570 - 7468) + '\x2d' + chr(1532 - 1476)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def wrkItzcKUKVh(DGFDHBgWLUl3, dnj3FL1pkLSs): _zvQvusY1Pwr = ehT0Px3KOsy9(chr(2160 - 2112) + chr(7943 - 7832) + chr(48), 52311 - 52303) EsM0Tb0l_6OT = [] PMnSuzGWXKBH = {} for PjFixOurfobW in DGFDHBgWLUl3: bNxnuWENeNS2 = PjFixOurfobW.sample.remote() PMnSuzGWXKBH[bNxnuWENeNS2] = PjFixOurfobW while _zvQvusY1Pwr < dnj3FL1pkLSs: ([bNxnuWENeNS2], VNGQdHSFPrso) = H9zaXRrGK6Cq.iik9wfy8nMEV(YyaZ4tpXu4lf(PMnSuzGWXKBH)) PjFixOurfobW = PMnSuzGWXKBH.pop(bNxnuWENeNS2) _uufwmIgt569 = PjFixOurfobW.sample.remote() PMnSuzGWXKBH[_uufwmIgt569] = PjFixOurfobW rLx8RQupvoI3 = WQnTQp69SClL(bNxnuWENeNS2) _zvQvusY1Pwr += rLx8RQupvoI3.ualWdDeXJEGO xafqLlk3kkUe(EsM0Tb0l_6OT, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3\xe6W\x95\xa3\xbd'), '\x64' + chr(0b1000010 + 0o43) + chr(0b1100011) + chr(0b111110 + 0o61) + chr(0b1100010 + 0o2) + chr(0b1001101 + 0o30))(chr(5481 - 5364) + '\x74' + chr(0b110001 + 0o65) + chr(0b100111 + 0o6) + '\x38'))(rLx8RQupvoI3) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe1\xa1o\x88\xb8\xbaQk\xf2\x02\x8f\x0c'), chr(0b1100100) + '\x65' + chr(7693 - 7594) + '\157' + '\144' + chr(101))(chr(0b1110101) + '\x74' + '\146' + chr(302 - 257) + chr(2978 - 2922)))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6\xffT\x93\xac\xabR5\xf6\t\xf5\x1c\xc8f\xdd\x15\xd6z\xba\x7fQ\x183v^\x11'), chr(2536 - 2436) + '\x65' + chr(99) + chr(0b101111 + 0o100) + chr(0b101101 + 0o67) + chr(0b1100101))(chr(0b1101111 + 0o6) + chr(3547 - 3431) + chr(102) + chr(0b101001 + 0o4) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4\xa2U\x9f\x85\xb8eo\xc8\x1e\xb0\r'), '\x64' + '\145' + '\143' + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + '\164' + '\146' + '\x2d' + '\x38'))(c2A0yzQpDQB3(PMnSuzGWXKBH))) return xafqLlk3kkUe(khCLnp9DeedL, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd1\xf9I\x93\xac\xadi/\xf9\x03\xa5\x0b\xd05'), '\x64' + chr(0b1001111 + 0o26) + chr(0b10000 + 0o123) + '\x6f' + chr(0b1100100) + chr(101))('\x75' + chr(0b110101 + 0o77) + chr(102) + chr(45) + '\x38'))(EsM0Tb0l_6OT)
ray-project/ray
python/ray/utils.py
format_error_message
def format_error_message(exception_message, task_exception=False): """Improve the formatting of an exception thrown by a remote function. This method takes a traceback from an exception and makes it nicer by removing a few uninformative lines and adding some space to indent the remaining lines nicely. Args: exception_message (str): A message generated by traceback.format_exc(). Returns: A string of the formatted exception message. """ lines = exception_message.split("\n") if task_exception: # For errors that occur inside of tasks, remove lines 1 and 2 which are # always the same, they just contain information about the worker code. lines = lines[0:1] + lines[3:] pass return "\n".join(lines)
python
def format_error_message(exception_message, task_exception=False): """Improve the formatting of an exception thrown by a remote function. This method takes a traceback from an exception and makes it nicer by removing a few uninformative lines and adding some space to indent the remaining lines nicely. Args: exception_message (str): A message generated by traceback.format_exc(). Returns: A string of the formatted exception message. """ lines = exception_message.split("\n") if task_exception: # For errors that occur inside of tasks, remove lines 1 and 2 which are # always the same, they just contain information about the worker code. lines = lines[0:1] + lines[3:] pass return "\n".join(lines)
[ "def", "format_error_message", "(", "exception_message", ",", "task_exception", "=", "False", ")", ":", "lines", "=", "exception_message", ".", "split", "(", "\"\\n\"", ")", "if", "task_exception", ":", "# For errors that occur inside of tasks, remove lines 1 and 2 which are", "# always the same, they just contain information about the worker code.", "lines", "=", "lines", "[", "0", ":", "1", "]", "+", "lines", "[", "3", ":", "]", "pass", "return", "\"\\n\"", ".", "join", "(", "lines", ")" ]
Improve the formatting of an exception thrown by a remote function. This method takes a traceback from an exception and makes it nicer by removing a few uninformative lines and adding some space to indent the remaining lines nicely. Args: exception_message (str): A message generated by traceback.format_exc(). Returns: A string of the formatted exception message.
[ "Improve", "the", "formatting", "of", "an", "exception", "thrown", "by", "a", "remote", "function", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L32-L51
train
Improve the formatting of an exception thrown by a remote function.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSR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EEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1295 - 1247) + chr(0b10001 + 0o136) + chr(488 - 437) + chr(0b110011) + chr(53), 46862 - 46854), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100111 + 0o12) + chr(1472 - 1423) + '\x37', 20312 - 20304), ehT0Px3KOsy9('\060' + chr(0b1011111 + 0o20) + '\x32' + chr(49) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\157' + chr(1670 - 1620) + '\062' + chr(52), 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(1044 - 996), 0b1000), ehT0Px3KOsy9(chr(349 - 301) + '\x6f' + chr(1257 - 1206) + chr(1456 - 1407) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1101 + 0o46) + '\x31' + chr(0b110001), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x32' + chr(182 - 130) + chr(0b110100), 44359 - 44351), ehT0Px3KOsy9(chr(48) + '\157' + '\x35' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b100000 + 0o117) + '\067' + chr(0b110000), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(1503 - 1452) + chr(1281 - 1227) + chr(154 - 104), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(574 - 523) + chr(48) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(736 - 681) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2025 - 1975) + chr(0b110000 + 0o4) + chr(0b110000), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(1966 - 1913) + '\x35', 0b1000), ehT0Px3KOsy9(chr(467 - 419) + chr(0b1101111) + chr(0b110010) + chr(51) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(0b101110 + 0o7) + '\065', 8), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b100110 + 0o111) + chr(0b1001 + 0o51), 0b1000), ehT0Px3KOsy9('\x30' + chr(9642 - 9531) + '\063' + chr(0b110111) + chr(51), 0o10), ehT0Px3KOsy9(chr(1668 - 1620) + chr(0b110 + 0o151) + chr(0b110010) + '\067' + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b1010 + 0o50) + chr(1694 - 1646) + chr(53), 0b1000), ehT0Px3KOsy9(chr(1641 - 1593) + chr(111) + '\x32' + chr(901 - 846) + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + chr(0b1000 + 0o147) + chr(0b11101 + 0o24) + '\x31' + chr(0b100110 + 0o20), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + chr(946 - 891) + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(1021 - 968) + chr(2185 - 2135), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + '\x35' + '\064', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + chr(0b110110) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100000 + 0o23) + '\x36' + '\x33', 36099 - 36091), ehT0Px3KOsy9(chr(2004 - 1956) + '\x6f' + chr(1826 - 1776) + '\065' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1100001 + 0o16) + '\x32' + chr(0b110101), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(51) + chr(49) + chr(55), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + chr(50), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(951 - 900) + chr(0b110010 + 0o4), 0o10), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + chr(1918 - 1869) + chr(50) + '\060', 3077 - 3069), ehT0Px3KOsy9('\060' + '\x6f' + chr(2320 - 2271) + chr(0b100101 + 0o17) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(631 - 580) + '\x37' + chr(109 - 57), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x31' + chr(428 - 378) + chr(1960 - 1910), 17850 - 17842), ehT0Px3KOsy9(chr(2040 - 1992) + '\157' + '\063' + chr(2461 - 2411) + chr(0b110000), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b100101 + 0o22), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\157' + chr(0b110010 + 0o3) + '\060', 36478 - 36470)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3'), '\x64' + chr(1502 - 1401) + '\x63' + '\x6f' + chr(0b1011101 + 0o7) + chr(0b1001 + 0o134))('\x75' + chr(6420 - 6304) + '\146' + chr(0b101101) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def ynRSjBGbzKwv(pzqugoSs9gkC, Paqf4UHlmfUz=ehT0Px3KOsy9(chr(2028 - 1980) + chr(111) + chr(1034 - 986), 0b1000)): izUh4XSf7tJY = pzqugoSs9gkC.split(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd7'), chr(3444 - 3344) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b11111 + 0o105) + '\145')(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(1586 - 1530))) if Paqf4UHlmfUz: izUh4XSf7tJY = izUh4XSf7tJY[ehT0Px3KOsy9('\x30' + '\157' + '\060', 8):ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b101 + 0o54), ord("\x08"))] + izUh4XSf7tJY[ehT0Px3KOsy9(chr(48) + chr(0b101100 + 0o103) + '\063', ord("\x08")):] pass return xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd7'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1010000 + 0o37) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(10051 - 9949) + chr(45) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x82 \xdf\xccj\xbb\x9f\xeaCI\xba\x84'), chr(100) + chr(101) + chr(99) + chr(7167 - 7056) + '\x64' + chr(0b1100101))(chr(2552 - 2435) + chr(0b11111 + 0o125) + chr(6115 - 6013) + chr(1823 - 1778) + '\070'))(izUh4XSf7tJY)
ray-project/ray
python/ray/utils.py
push_error_to_driver
def push_error_to_driver(worker, error_type, message, driver_id=None): """Push an error message to the driver to be printed in the background. Args: worker: The worker to use. error_type (str): The type of the error. message (str): The message that will be printed in the background on the driver. driver_id: The ID of the driver to push the error message to. If this is None, then the message will be pushed to all drivers. """ if driver_id is None: driver_id = ray.DriverID.nil() worker.raylet_client.push_error(driver_id, error_type, message, time.time())
python
def push_error_to_driver(worker, error_type, message, driver_id=None): """Push an error message to the driver to be printed in the background. Args: worker: The worker to use. error_type (str): The type of the error. message (str): The message that will be printed in the background on the driver. driver_id: The ID of the driver to push the error message to. If this is None, then the message will be pushed to all drivers. """ if driver_id is None: driver_id = ray.DriverID.nil() worker.raylet_client.push_error(driver_id, error_type, message, time.time())
[ "def", "push_error_to_driver", "(", "worker", ",", "error_type", ",", "message", ",", "driver_id", "=", "None", ")", ":", "if", "driver_id", "is", "None", ":", "driver_id", "=", "ray", ".", "DriverID", ".", "nil", "(", ")", "worker", ".", "raylet_client", ".", "push_error", "(", "driver_id", ",", "error_type", ",", "message", ",", "time", ".", "time", "(", ")", ")" ]
Push an error message to the driver to be printed in the background. Args: worker: The worker to use. error_type (str): The type of the error. message (str): The message that will be printed in the background on the driver. driver_id: The ID of the driver to push the error message to. If this is None, then the message will be pushed to all drivers.
[ "Push", "an", "error", "message", "to", "the", "driver", "to", "be", "printed", "in", "the", "background", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L54-L68
train
Push an error message to the background of the specified driver.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9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0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(1128 - 1017) + chr(1387 - 1338) + '\x31', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b101110 + 0o101) + chr(0b11110 + 0o25) + chr(0b110111) + '\x30', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(0b101111 + 0o3) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b100100 + 0o113) + '\x32' + '\x35' + '\065', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(2497 - 2442) + chr(0b110010), 8872 - 8864), ehT0Px3KOsy9('\060' + chr(111) + chr(1217 - 1168) + chr(0b110110), 5958 - 5950), ehT0Px3KOsy9(chr(48) + chr(3873 - 3762) + chr(0b110010) + chr(0b110001) + chr(0b11111 + 0o27), 0o10), ehT0Px3KOsy9(chr(737 - 689) + '\x6f' + chr(2357 - 2307) + '\066' + chr(0b110001 + 0o5), 0o10), ehT0Px3KOsy9(chr(222 - 174) + '\x6f' + chr(50) + '\x30' + chr(1586 - 1533), 0o10), ehT0Px3KOsy9('\060' + chr(0b111010 + 0o65) + chr(0b110010 + 0o1) + chr(0b11111 + 0o26) + '\061', 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + '\x30' + chr(0b101101 + 0o4), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b101100 + 0o103) + '\x32' + chr(51) + chr(1824 - 1774), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x31' + chr(52), 50635 - 50627), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + '\060' + chr(51), 21079 - 21071), ehT0Px3KOsy9(chr(620 - 572) + chr(0b1101111) + chr(0b101011 + 0o10) + chr(0b10000 + 0o47) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\x6f' + chr(424 - 375) + '\065' + chr(0b11 + 0o61), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + '\060', 62920 - 62912), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(10055 - 9944) + chr(2397 - 2346) + chr(1988 - 1939) + chr(0b100101 + 0o17), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + chr(1264 - 1209) + '\060', ord("\x08")), ehT0Px3KOsy9('\060' + chr(2722 - 2611) + chr(1611 - 1562) + '\x36' + chr(0b110011 + 0o3), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x31' + chr(614 - 564), 0o10), ehT0Px3KOsy9(chr(48) + chr(4274 - 4163) + '\063' + '\067' + '\063', 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(0b110001 + 0o4) + chr(53), 8), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + chr(1722 - 1671) + '\065', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(85 - 32) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(111) + '\x36' + '\067', 0b1000), ehT0Px3KOsy9(chr(1844 - 1796) + chr(9331 - 9220) + chr(51) + '\066' + chr(53), 11422 - 11414), ehT0Px3KOsy9('\060' + chr(0b1101000 + 0o7) + '\x31' + chr(790 - 738), 8), ehT0Px3KOsy9(chr(48) + chr(7084 - 6973) + chr(0b110001) + '\061', 8), ehT0Px3KOsy9(chr(1820 - 1772) + '\157' + '\x35' + '\x32', 8), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + '\064' + '\x36', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(66 - 18) + '\157' + chr(1550 - 1499) + chr(0b110110) + chr(0b1 + 0o66), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\x6f' + chr(50) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(1386 - 1335) + chr(0b110010) + chr(0b1 + 0o60), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1010010 + 0o35) + chr(2297 - 2246) + chr(1187 - 1139) + chr(1652 - 1601), 0b1000), ehT0Px3KOsy9('\x30' + chr(321 - 210) + chr(0b110001) + chr(283 - 234) + chr(1473 - 1424), 2130 - 2122), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(111) + '\062' + '\x33' + chr(563 - 511), 0o10), ehT0Px3KOsy9(chr(1234 - 1186) + chr(111) + chr(0b110001) + chr(49) + chr(0b101111 + 0o1), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(754 - 706) + '\157' + '\065' + chr(792 - 744), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b"'"), '\144' + chr(0b1011010 + 0o13) + '\143' + '\x6f' + '\144' + chr(6451 - 6350))(chr(4198 - 4081) + '\164' + chr(102) + '\x2d' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def U7inP4FvjmBA(sijXcSaDomT1, WFi5hEXUIPZm, R2mbIkZzeu1B, xrb3JXGvKq_I=None): if xrb3JXGvKq_I is None: xrb3JXGvKq_I = H9zaXRrGK6Cq.DriverID.nil() xafqLlk3kkUe(sijXcSaDomT1.raylet_client, xafqLlk3kkUe(SXOLrMavuUCe(b'y\x8d\xa5\xc5ek\xfc\xc4\xea\x9b'), '\144' + chr(101) + chr(0b1100000 + 0o3) + '\157' + chr(0b101101 + 0o67) + '\x65')(chr(206 - 89) + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38'))(xrb3JXGvKq_I, WFi5hEXUIPZm, R2mbIkZzeu1B, xafqLlk3kkUe(ltvhPP4VhXre, xafqLlk3kkUe(SXOLrMavuUCe(b'}\x91\xbb\xc8'), chr(3014 - 2914) + chr(6686 - 6585) + chr(99) + chr(0b10000 + 0o137) + chr(0b1001100 + 0o30) + chr(101))(chr(4863 - 4746) + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)))())
ray-project/ray
python/ray/utils.py
push_error_to_driver_through_redis
def push_error_to_driver_through_redis(redis_client, error_type, message, driver_id=None): """Push an error message to the driver to be printed in the background. Normally the push_error_to_driver function should be used. However, in some instances, the raylet client is not available, e.g., because the error happens in Python before the driver or worker has connected to the backend processes. Args: redis_client: The redis client to use. error_type (str): The type of the error. message (str): The message that will be printed in the background on the driver. driver_id: The ID of the driver to push the error message to. If this is None, then the message will be pushed to all drivers. """ if driver_id is None: driver_id = ray.DriverID.nil() # Do everything in Python and through the Python Redis client instead # of through the raylet. error_data = ray.gcs_utils.construct_error_message(driver_id, error_type, message, time.time()) redis_client.execute_command("RAY.TABLE_APPEND", ray.gcs_utils.TablePrefix.ERROR_INFO, ray.gcs_utils.TablePubsub.ERROR_INFO, driver_id.binary(), error_data)
python
def push_error_to_driver_through_redis(redis_client, error_type, message, driver_id=None): """Push an error message to the driver to be printed in the background. Normally the push_error_to_driver function should be used. However, in some instances, the raylet client is not available, e.g., because the error happens in Python before the driver or worker has connected to the backend processes. Args: redis_client: The redis client to use. error_type (str): The type of the error. message (str): The message that will be printed in the background on the driver. driver_id: The ID of the driver to push the error message to. If this is None, then the message will be pushed to all drivers. """ if driver_id is None: driver_id = ray.DriverID.nil() # Do everything in Python and through the Python Redis client instead # of through the raylet. error_data = ray.gcs_utils.construct_error_message(driver_id, error_type, message, time.time()) redis_client.execute_command("RAY.TABLE_APPEND", ray.gcs_utils.TablePrefix.ERROR_INFO, ray.gcs_utils.TablePubsub.ERROR_INFO, driver_id.binary(), error_data)
[ "def", "push_error_to_driver_through_redis", "(", "redis_client", ",", "error_type", ",", "message", ",", "driver_id", "=", "None", ")", ":", "if", "driver_id", "is", "None", ":", "driver_id", "=", "ray", ".", "DriverID", ".", "nil", "(", ")", "# Do everything in Python and through the Python Redis client instead", "# of through the raylet.", "error_data", "=", "ray", ".", "gcs_utils", ".", "construct_error_message", "(", "driver_id", ",", "error_type", ",", "message", ",", "time", ".", "time", "(", ")", ")", "redis_client", ".", "execute_command", "(", "\"RAY.TABLE_APPEND\"", ",", "ray", ".", "gcs_utils", ".", "TablePrefix", ".", "ERROR_INFO", ",", "ray", ".", "gcs_utils", ".", "TablePubsub", ".", "ERROR_INFO", ",", "driver_id", ".", "binary", "(", ")", ",", "error_data", ")" ]
Push an error message to the driver to be printed in the background. Normally the push_error_to_driver function should be used. However, in some instances, the raylet client is not available, e.g., because the error happens in Python before the driver or worker has connected to the backend processes. Args: redis_client: The redis client to use. error_type (str): The type of the error. message (str): The message that will be printed in the background on the driver. driver_id: The ID of the driver to push the error message to. If this is None, then the message will be pushed to all drivers.
[ "Push", "an", "error", "message", "to", "the", "driver", "to", "be", "printed", "in", "the", "background", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L71-L99
train
Push an error message to the driver through Redis.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,TLbJ60djyws0,rIcPej9ZqMqV,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Ty8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(0b1001010 + 0o45) + '\062' + chr(0b100000 + 0o22) + chr(0b110110), 57166 - 57158), ehT0Px3KOsy9(chr(1336 - 1288) + chr(3363 - 3252) + chr(721 - 672) + chr(0b110101) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b1101111) + '\x33' + chr(0b110110 + 0o0) + chr(2085 - 2037), 32989 - 32981), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(942 - 887) + chr(0b110111 + 0o0), 0o10), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b110011) + '\x30' + '\065', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + '\067' + chr(54), 31379 - 31371), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000001 + 0o56) + '\x31' + chr(1875 - 1822) + '\x36', 30123 - 30115), ehT0Px3KOsy9(chr(486 - 438) + chr(0b10000 + 0o137) + chr(0b110010) + chr(51) + chr(0b11001 + 0o35), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2117 - 2066) + '\063' + chr(457 - 406), 0b1000), ehT0Px3KOsy9('\060' + chr(10929 - 10818) + chr(49) + '\x33' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(1754 - 1704) + '\x34' + chr(51), 31753 - 31745), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + chr(0b110110) + chr(53), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\062' + chr(0b110010) + '\065', 27676 - 27668), ehT0Px3KOsy9(chr(1283 - 1235) + '\157' + chr(50) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + '\157' + chr(51) + chr(0b1110 + 0o47) + chr(2045 - 1992), 0b1000), ehT0Px3KOsy9(chr(1004 - 956) + '\x6f' + '\x31' + chr(0b100000 + 0o21) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(283 - 235) + chr(111) + chr(0b10 + 0o61) + chr(0b110111) + '\064', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + '\062' + chr(1764 - 1710), 26248 - 26240), ehT0Px3KOsy9(chr(2059 - 2011) + '\x6f' + chr(0b10100 + 0o35) + '\066' + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x34' + chr(1041 - 987), 0b1000), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1101111) + chr(50) + chr(0b10010 + 0o43) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(744 - 696) + chr(0b110010 + 0o75) + '\x33' + '\x32' + chr(0b110001 + 0o2), ord("\x08")), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b1101111) + chr(0b110010) + '\066' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + chr(55) + chr(0b110000), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(0b110110) + '\066', 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110010) + chr(0b110000) + '\x37', 0b1000), ehT0Px3KOsy9(chr(878 - 830) + chr(111) + '\x31' + '\x36' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(354 - 306) + '\x6f' + chr(0b110011) + '\060' + '\x34', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(0b110001) + '\x35', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(54) + chr(52), 57775 - 57767), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2800 - 2746) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11110 + 0o25) + chr(817 - 766), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010001 + 0o36) + '\063' + '\x31' + chr(49), 17939 - 17931), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + chr(50) + '\x35', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b101111 + 0o5) + '\x35', 0o10), ehT0Px3KOsy9('\x30' + chr(0b110001 + 0o76) + chr(0b110 + 0o55) + chr(2539 - 2487) + chr(1634 - 1585), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x35' + chr(0b110110 + 0o1), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110110) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(649 - 601) + chr(0b1100010 + 0o15) + '\x31' + chr(55) + chr(1838 - 1788), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(0b1101 + 0o45) + chr(55), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(0b101000 + 0o107) + '\x35' + chr(0b100101 + 0o13), 53524 - 53516)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + '\x64' + '\145')('\165' + '\164' + chr(8569 - 8467) + '\055' + chr(0b1001 + 0o57)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def h6bkdgQPgT1v(znULerELFfBL, WFi5hEXUIPZm, R2mbIkZzeu1B, xrb3JXGvKq_I=None): if xrb3JXGvKq_I is None: xrb3JXGvKq_I = H9zaXRrGK6Cq.DriverID.nil() nQdI1xYu1xrO = H9zaXRrGK6Cq.gcs_utils.construct_error_message(xrb3JXGvKq_I, WFi5hEXUIPZm, R2mbIkZzeu1B, ltvhPP4VhXre.time()) xafqLlk3kkUe(znULerELFfBL, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\x17\x95\xdc\xb0\x8a\x0b\xc1\xb87\xce\xd8\xf4|\x89'), '\x64' + chr(0b111110 + 0o47) + chr(0b1100011) + '\157' + '\x64' + chr(0b1100101))('\x75' + '\164' + '\146' + '\x2d' + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xc4.\xa9\x91\x91\xbf,\xd2\x9e\x07\xe2\xe5\xc5W\xa3\r'), chr(0b111000 + 0o54) + chr(1850 - 1749) + '\143' + chr(111) + chr(0b1000111 + 0o35) + '\x65')(chr(12964 - 12847) + chr(0b1010000 + 0o44) + chr(102) + chr(198 - 153) + '\070'), xafqLlk3kkUe(H9zaXRrGK6Cq.gcs_utils.TablePrefix, xafqLlk3kkUe(SXOLrMavuUCe(b"\xd3=\xa2\xf0\x97\xa1'\xd0\x9d\x17"), chr(100) + '\145' + '\143' + '\157' + '\144' + chr(0b1100101))(chr(117) + '\164' + '\146' + '\x2d' + chr(0b100 + 0o64))), xafqLlk3kkUe(H9zaXRrGK6Cq.gcs_utils.TablePubsub, xafqLlk3kkUe(SXOLrMavuUCe(b"\xd3=\xa2\xf0\x97\xa1'\xd0\x9d\x17"), chr(0b1100100) + chr(0b10011 + 0o122) + chr(0b1100011) + chr(5287 - 5176) + '\x64' + chr(5535 - 5434))(chr(5503 - 5386) + '\x74' + chr(4628 - 4526) + '\x2d' + chr(0b1111 + 0o51))), xafqLlk3kkUe(xrb3JXGvKq_I, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4\x06\x9e\xde\xb7\x87'), chr(100) + chr(101) + '\143' + '\157' + chr(100) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + chr(56)))(), nQdI1xYu1xrO)
ray-project/ray
python/ray/utils.py
is_cython
def is_cython(obj): """Check if an object is a Cython function or method""" # TODO(suo): We could split these into two functions, one for Cython # functions and another for Cython methods. # TODO(suo): There doesn't appear to be a Cython function 'type' we can # check against via isinstance. Please correct me if I'm wrong. def check_cython(x): return type(x).__name__ == "cython_function_or_method" # Check if function or method, respectively return check_cython(obj) or \ (hasattr(obj, "__func__") and check_cython(obj.__func__))
python
def is_cython(obj): """Check if an object is a Cython function or method""" # TODO(suo): We could split these into two functions, one for Cython # functions and another for Cython methods. # TODO(suo): There doesn't appear to be a Cython function 'type' we can # check against via isinstance. Please correct me if I'm wrong. def check_cython(x): return type(x).__name__ == "cython_function_or_method" # Check if function or method, respectively return check_cython(obj) or \ (hasattr(obj, "__func__") and check_cython(obj.__func__))
[ "def", "is_cython", "(", "obj", ")", ":", "# TODO(suo): We could split these into two functions, one for Cython", "# functions and another for Cython methods.", "# TODO(suo): There doesn't appear to be a Cython function 'type' we can", "# check against via isinstance. Please correct me if I'm wrong.", "def", "check_cython", "(", "x", ")", ":", "return", "type", "(", "x", ")", ".", "__name__", "==", "\"cython_function_or_method\"", "# Check if function or method, respectively", "return", "check_cython", "(", "obj", ")", "or", "(", "hasattr", "(", "obj", ",", "\"__func__\"", ")", "and", "check_cython", "(", "obj", ".", "__func__", ")", ")" ]
Check if an object is a Cython function or method
[ "Check", "if", "an", "object", "is", "a", "Cython", "function", "or", "method" ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L102-L114
train
Check if an object is a Cython function or method.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSR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EEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + chr(0b110010) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1110 + 0o141) + '\062' + chr(1780 - 1730) + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1000011 + 0o54) + '\x31' + chr(49) + chr(0b100000 + 0o27), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110010) + chr(49) + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101011 + 0o4) + chr(0b1110 + 0o45) + chr(0b110100) + '\x32', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + chr(0b110001) + '\067', 6246 - 6238), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2190 - 2141) + chr(0b110100) + '\062', 5054 - 5046), ehT0Px3KOsy9('\060' + chr(4777 - 4666) + '\x32' + chr(821 - 769) + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(11025 - 10914) + chr(50) + chr(0b110101) + '\064', 4777 - 4769), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(2316 - 2267) + '\063' + '\066', 17535 - 17527), ehT0Px3KOsy9(chr(0b11110 + 0o22) + chr(0b1001111 + 0o40) + chr(49) + chr(0b1000 + 0o57) + chr(0b11110 + 0o25), 9021 - 9013), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(7146 - 7035) + chr(581 - 532) + '\067' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b11010 + 0o125) + '\062' + chr(54) + '\x37', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + '\062' + chr(0b11100 + 0o32), 27995 - 27987), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(741 - 692), 0o10), ehT0Px3KOsy9(chr(1768 - 1720) + chr(5504 - 5393) + chr(0b101 + 0o55) + '\x31' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\067' + chr(0b11110 + 0o22), 0o10), ehT0Px3KOsy9(chr(48) + chr(7182 - 7071) + chr(49) + chr(2196 - 2144) + '\060', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(50) + chr(179 - 130) + chr(0b1011 + 0o50), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(0b110011) + chr(0b1 + 0o60), 0b1000), ehT0Px3KOsy9(chr(1845 - 1797) + chr(2299 - 2188) + '\x32' + chr(1175 - 1124) + '\060', 9655 - 9647), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + '\067' + chr(246 - 195), 8), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(0b101100 + 0o103) + '\063' + '\x33' + '\x32', 30457 - 30449), ehT0Px3KOsy9('\060' + chr(0b1010110 + 0o31) + '\x31' + '\062' + chr(0b11011 + 0o31), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(50) + '\x32', 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x35' + chr(0b110000), 0b1000), ehT0Px3KOsy9('\x30' + chr(6776 - 6665) + chr(0b1010 + 0o51) + '\x37' + chr(2390 - 2336), ord("\x08")), ehT0Px3KOsy9(chr(1617 - 1569) + '\157' + chr(49) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b10110 + 0o36) + chr(0b10011 + 0o43), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1010001 + 0o36) + '\061' + chr(50) + '\061', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + '\062' + chr(0b110011), 8), ehT0Px3KOsy9(chr(62 - 14) + '\157' + '\063' + chr(50) + chr(53), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110000) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + '\x37' + chr(755 - 700), ord("\x08")), ehT0Px3KOsy9(chr(1806 - 1758) + '\157' + '\x32' + chr(0b110100), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b101 + 0o54) + chr(486 - 438) + chr(2061 - 2011), 15811 - 15803), ehT0Px3KOsy9('\060' + chr(111) + chr(367 - 316) + chr(0b11110 + 0o23) + chr(479 - 428), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(1941 - 1830) + chr(0b110101) + chr(536 - 484), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100 + 0o55) + chr(0b110010) + chr(54), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(111) + chr(53) + '\x30', 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'='), chr(0b1110 + 0o126) + '\145' + '\x63' + '\x6f' + '\x64' + chr(6783 - 6682))('\x75' + '\164' + chr(102) + '\x2d' + chr(594 - 538)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Y1FYvObGsfyT(mDuDykdz0pcm): def oj_YIp_ian1k(OeWW0F1dBPRQ): return xafqLlk3kkUe(wmQmyeWBmUpv(OeWW0F1dBPRQ), xafqLlk3kkUe(SXOLrMavuUCe(b'T\xf4*f\xbd\x8d\x95\x13\xeb\xe0\x1fM'), chr(0b1100100) + chr(4577 - 4476) + chr(6589 - 6490) + chr(0b1101111) + chr(0b101100 + 0o70) + chr(0b111101 + 0o50))(chr(117) + chr(0b101101 + 0o107) + chr(0b1000 + 0o136) + chr(574 - 529) + chr(0b101000 + 0o20))) == xafqLlk3kkUe(SXOLrMavuUCe(b'p\xef;d\xe6\x8c\x90\x04\xd5\xc2=\x0f\x11\xd8\xb8N\xe7J?\xe6\xfc\xec\x13\xb50'), '\144' + '\145' + '\x63' + chr(111) + '\x64' + '\x65')(chr(0b1101000 + 0o15) + '\x74' + '\x66' + '\x2d' + chr(56)) return oj_YIp_ian1k(mDuDykdz0pcm) or (lot1PSoAwYhj(mDuDykdz0pcm, xafqLlk3kkUe(SXOLrMavuUCe(b'L\xc9)y\xe7\x81\x90='), '\x64' + chr(0b111011 + 0o52) + chr(99) + '\x6f' + chr(100) + '\145')('\165' + chr(0b1011110 + 0o26) + chr(102) + chr(1627 - 1582) + chr(2683 - 2627))) and oj_YIp_ian1k(xafqLlk3kkUe(mDuDykdz0pcm, xafqLlk3kkUe(SXOLrMavuUCe(b'L\xc9)y\xe7\x81\x90='), '\x64' + '\x65' + chr(0b1000001 + 0o42) + '\157' + chr(9799 - 9699) + '\x65')('\x75' + chr(0b1110100) + '\146' + '\055' + '\070'))))
ray-project/ray
python/ray/utils.py
is_function_or_method
def is_function_or_method(obj): """Check if an object is a function or method. Args: obj: The Python object in question. Returns: True if the object is an function or method. """ return inspect.isfunction(obj) or inspect.ismethod(obj) or is_cython(obj)
python
def is_function_or_method(obj): """Check if an object is a function or method. Args: obj: The Python object in question. Returns: True if the object is an function or method. """ return inspect.isfunction(obj) or inspect.ismethod(obj) or is_cython(obj)
[ "def", "is_function_or_method", "(", "obj", ")", ":", "return", "inspect", ".", "isfunction", "(", "obj", ")", "or", "inspect", ".", "ismethod", "(", "obj", ")", "or", "is_cython", "(", "obj", ")" ]
Check if an object is a function or method. Args: obj: The Python object in question. Returns: True if the object is an function or method.
[ "Check", "if", "an", "object", "is", "a", "function", "or", "method", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L117-L126
train
Check if an object is a function or method.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnD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_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(990 - 942) + '\x6f' + chr(49) + chr(0b10000 + 0o46) + chr(0b110001), 13841 - 13833), ehT0Px3KOsy9('\x30' + '\x6f' + chr(2269 - 2219) + chr(0b110001) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1101111) + '\062' + chr(0b110011) + '\x32', 0o10), ehT0Px3KOsy9(chr(518 - 470) + chr(111) + '\x37' + chr(772 - 724), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011 + 0o144) + '\x35' + chr(0b100011 + 0o17), 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(111) + '\062' + chr(261 - 208) + '\x30', 0o10), ehT0Px3KOsy9(chr(48) + chr(6845 - 6734) + '\062' + '\x31' + chr(0b10100 + 0o40), 0o10), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + '\061' + chr(48) + chr(1858 - 1808), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(1439 - 1389) + '\x31' + chr(397 - 349), 8), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + chr(0b1101 + 0o44) + '\x31' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1 + 0o61) + chr(0b100000 + 0o22) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(111) + chr(49) + chr(2286 - 2236) + chr(1522 - 1468), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110111) + chr(555 - 507), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + '\x31' + chr(0b110100), 8), ehT0Px3KOsy9(chr(476 - 428) + chr(111) + '\x32' + chr(0b110001) + chr(0b110000), 8), ehT0Px3KOsy9(chr(524 - 476) + chr(0b11010 + 0o125) + chr(2276 - 2226) + '\062' + chr(0b10111 + 0o37), 0o10), ehT0Px3KOsy9(chr(374 - 326) + chr(111) + '\067', 0b1000), ehT0Px3KOsy9(chr(1877 - 1829) + '\x6f' + '\061' + chr(906 - 853) + chr(49), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(1602 - 1552) + chr(50), 62791 - 62783), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(1336 - 1288) + chr(55), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(156 - 108) + '\x30', 63795 - 63787), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(111) + '\x36' + chr(54), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + '\x36' + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + '\063' + chr(0b10000 + 0o45), 57562 - 57554), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b101001 + 0o14) + '\063', 18259 - 18251), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1611 - 1561) + chr(0b110111) + '\x30', 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1101 + 0o46), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(1232 - 1183) + chr(52) + chr(1347 - 1292), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b111100 + 0o63) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(2873 - 2762) + '\x33' + '\x33', 45957 - 45949), ehT0Px3KOsy9('\x30' + chr(6217 - 6106) + chr(2349 - 2300) + chr(135 - 84) + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + chr(2237 - 2126) + '\061' + chr(702 - 652) + chr(0b1110 + 0o42), 16637 - 16629), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000 + 0o147) + chr(0b110011) + chr(55) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b1000 + 0o52) + chr(0b110100) + chr(49), 0o10), ehT0Px3KOsy9('\x30' + chr(0b11110 + 0o121) + chr(458 - 409) + chr(1572 - 1524) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\x34' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(438 - 390) + chr(0b1101111) + '\x33' + chr(0b110000) + chr(0b101110 + 0o10), 27178 - 27170), ehT0Px3KOsy9(chr(48) + chr(11826 - 11715) + chr(0b11010 + 0o31) + '\x32' + '\x31', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + chr(0b110001) + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11100 + 0o25) + chr(0b110010) + chr(871 - 822), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(111) + chr(0b11001 + 0o34) + chr(2156 - 2108), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'_'), chr(1653 - 1553) + '\145' + chr(0b1001001 + 0o32) + chr(0b1101111) + chr(0b1110 + 0o126) + chr(3781 - 3680))(chr(0b1110101) + chr(8378 - 8262) + chr(0b1100110) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def zukidpomZhWX(mDuDykdz0pcm): return xafqLlk3kkUe(kzXqv8ZZwm75, xafqLlk3kkUe(SXOLrMavuUCe(b'\x18\xfb\xfcMD\xcb\xf8+\xe7 '), '\144' + '\145' + chr(0b1001000 + 0o33) + '\x6f' + '\144' + chr(1860 - 1759))('\x75' + '\164' + '\146' + chr(45) + '\070'))(mDuDykdz0pcm) or xafqLlk3kkUe(kzXqv8ZZwm75, xafqLlk3kkUe(SXOLrMavuUCe(b'\x18\xfb\xf7]^\xc0\xe3&'), chr(8473 - 8373) + chr(101) + chr(2303 - 2204) + '\157' + chr(100) + '\145')(chr(6950 - 6833) + '\164' + '\146' + chr(0b101101) + '\x38'))(mDuDykdz0pcm) or Y1FYvObGsfyT(mDuDykdz0pcm)
ray-project/ray
python/ray/utils.py
random_string
def random_string(): """Generate a random string to use as an ID. Note that users may seed numpy, which could cause this function to generate duplicate IDs. Therefore, we need to seed numpy ourselves, but we can't interfere with the state of the user's random number generator, so we extract the state of the random number generator and reset it after we are done. TODO(rkn): If we want to later guarantee that these are generated in a deterministic manner, then we will need to make some changes here. Returns: A random byte string of length ray_constants.ID_SIZE. """ # Get the state of the numpy random number generator. numpy_state = np.random.get_state() # Try to use true randomness. np.random.seed(None) # Generate the random ID. random_id = np.random.bytes(ray_constants.ID_SIZE) # Reset the state of the numpy random number generator. np.random.set_state(numpy_state) return random_id
python
def random_string(): """Generate a random string to use as an ID. Note that users may seed numpy, which could cause this function to generate duplicate IDs. Therefore, we need to seed numpy ourselves, but we can't interfere with the state of the user's random number generator, so we extract the state of the random number generator and reset it after we are done. TODO(rkn): If we want to later guarantee that these are generated in a deterministic manner, then we will need to make some changes here. Returns: A random byte string of length ray_constants.ID_SIZE. """ # Get the state of the numpy random number generator. numpy_state = np.random.get_state() # Try to use true randomness. np.random.seed(None) # Generate the random ID. random_id = np.random.bytes(ray_constants.ID_SIZE) # Reset the state of the numpy random number generator. np.random.set_state(numpy_state) return random_id
[ "def", "random_string", "(", ")", ":", "# Get the state of the numpy random number generator.", "numpy_state", "=", "np", ".", "random", ".", "get_state", "(", ")", "# Try to use true randomness.", "np", ".", "random", ".", "seed", "(", "None", ")", "# Generate the random ID.", "random_id", "=", "np", ".", "random", ".", "bytes", "(", "ray_constants", ".", "ID_SIZE", ")", "# Reset the state of the numpy random number generator.", "np", ".", "random", ".", "set_state", "(", "numpy_state", ")", "return", "random_id" ]
Generate a random string to use as an ID. Note that users may seed numpy, which could cause this function to generate duplicate IDs. Therefore, we need to seed numpy ourselves, but we can't interfere with the state of the user's random number generator, so we extract the state of the random number generator and reset it after we are done. TODO(rkn): If we want to later guarantee that these are generated in a deterministic manner, then we will need to make some changes here. Returns: A random byte string of length ray_constants.ID_SIZE.
[ "Generate", "a", "random", "string", "to", "use", "as", "an", "ID", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L134-L157
train
Generate a random string to use as an ID.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_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,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(830 - 782) + '\157' + '\x31' + chr(1566 - 1518) + chr(1705 - 1657), 6111 - 6103), ehT0Px3KOsy9('\060' + '\157' + chr(49) + '\x35' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001 + 0o0) + '\x31', 50917 - 50909), ehT0Px3KOsy9('\060' + chr(111) + '\062' + chr(49) + chr(53), 8381 - 8373), ehT0Px3KOsy9(chr(558 - 510) + chr(0b1101111) + chr(1148 - 1099) + '\x31' + '\063', 0o10), ehT0Px3KOsy9(chr(940 - 892) + '\x6f' + '\x32' + '\x30' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\063' + '\061' + '\062', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(0b110001) + '\066', 0o10), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(111) + chr(52) + chr(1604 - 1556), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + chr(0b110111) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\x6f' + '\x33' + chr(0b11010 + 0o33) + '\x33', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(704 - 654) + '\x37' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + chr(53) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(136 - 25) + chr(0b110010) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(1759 - 1711) + chr(0b10011 + 0o134) + chr(1471 - 1422) + '\x34' + '\x32', 0o10), ehT0Px3KOsy9(chr(1655 - 1607) + chr(0b1101111) + chr(1408 - 1357) + chr(876 - 821) + chr(0b100 + 0o55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + '\x35' + chr(1462 - 1412), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b1100 + 0o46) + chr(0b11100 + 0o32) + '\062', 9706 - 9698), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + chr(1124 - 1072) + '\060', 8143 - 8135), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b100101 + 0o112) + '\062' + '\066' + chr(0b101100 + 0o10), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + chr(0b110011) + '\x31' + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(111) + '\x32' + '\062' + chr(2459 - 2409), ord("\x08")), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(111) + chr(0b110001) + chr(53) + chr(53), 8), ehT0Px3KOsy9(chr(2192 - 2144) + '\157' + chr(1503 - 1452) + '\062' + chr(0b110111), 55806 - 55798), ehT0Px3KOsy9(chr(48) + chr(10382 - 10271) + chr(0b101101 + 0o5) + chr(0b110111) + chr(0b11110 + 0o30), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(236 - 186) + chr(0b110110) + chr(0b11101 + 0o24), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1110 + 0o51) + chr(0b110111), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\062' + chr(54) + chr(577 - 523), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + '\x35' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(48) + chr(50), 41272 - 41264), ehT0Px3KOsy9('\060' + '\157' + chr(50) + '\x33' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(67 - 19) + '\x6f' + chr(51) + '\061' + chr(158 - 104), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + chr(910 - 857) + '\066', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110011) + '\067' + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b111 + 0o150) + chr(50) + chr(1635 - 1583) + chr(0b101000 + 0o12), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(963 - 914) + chr(0b10010 + 0o43) + chr(53), 8), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b1101 + 0o45) + '\x37' + chr(0b101111 + 0o2), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + '\066' + chr(1593 - 1542), 133 - 125), ehT0Px3KOsy9('\060' + chr(0b110111 + 0o70) + chr(50) + '\x35' + chr(50), 12594 - 12586), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + '\065' + chr(1086 - 1037), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1010 + 0o53) + chr(48), 437 - 429)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'n'), '\x64' + chr(0b1100101) + '\143' + chr(0b1100000 + 0o17) + '\144' + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def e51OQa_ZNRVN(): c6IvjA9recj5 = WqUC3KWvYVup.random.get_state() xafqLlk3kkUe(WqUC3KWvYVup.random, xafqLlk3kkUe(SXOLrMavuUCe(b'3\x0fl\xe9'), chr(0b11001 + 0o113) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1110 + 0o127))(chr(0b1101101 + 0o10) + '\164' + chr(0b1100110) + '\055' + '\x38'))(None) utFkZRLWRRxp = WqUC3KWvYVup.random.bytes(NAlxrfaLQgar.ID_SIZE) xafqLlk3kkUe(WqUC3KWvYVup.random, xafqLlk3kkUe(SXOLrMavuUCe(b'3\x0f}\xd28\xf7\xab\xfaE'), '\144' + chr(6879 - 6778) + '\143' + '\157' + chr(0b11010 + 0o112) + chr(0b1100101))(chr(0b1110101) + chr(0b100 + 0o160) + chr(0b1010110 + 0o20) + chr(1858 - 1813) + '\070'))(c6IvjA9recj5) return utFkZRLWRRxp
ray-project/ray
python/ray/utils.py
decode
def decode(byte_str, allow_none=False): """Make this unicode in Python 3, otherwise leave it as bytes. Args: byte_str: The byte string to decode. allow_none: If true, then we will allow byte_str to be None in which case we will return an empty string. TODO(rkn): Remove this flag. This is only here to simplify upgrading to flatbuffers 1.10.0. Returns: A byte string in Python 2 and a unicode string in Python 3. """ if byte_str is None and allow_none: return "" if not isinstance(byte_str, bytes): raise ValueError( "The argument {} must be a bytes object.".format(byte_str)) if sys.version_info >= (3, 0): return byte_str.decode("ascii") else: return byte_str
python
def decode(byte_str, allow_none=False): """Make this unicode in Python 3, otherwise leave it as bytes. Args: byte_str: The byte string to decode. allow_none: If true, then we will allow byte_str to be None in which case we will return an empty string. TODO(rkn): Remove this flag. This is only here to simplify upgrading to flatbuffers 1.10.0. Returns: A byte string in Python 2 and a unicode string in Python 3. """ if byte_str is None and allow_none: return "" if not isinstance(byte_str, bytes): raise ValueError( "The argument {} must be a bytes object.".format(byte_str)) if sys.version_info >= (3, 0): return byte_str.decode("ascii") else: return byte_str
[ "def", "decode", "(", "byte_str", ",", "allow_none", "=", "False", ")", ":", "if", "byte_str", "is", "None", "and", "allow_none", ":", "return", "\"\"", "if", "not", "isinstance", "(", "byte_str", ",", "bytes", ")", ":", "raise", "ValueError", "(", "\"The argument {} must be a bytes object.\"", ".", "format", "(", "byte_str", ")", ")", "if", "sys", ".", "version_info", ">=", "(", "3", ",", "0", ")", ":", "return", "byte_str", ".", "decode", "(", "\"ascii\"", ")", "else", ":", "return", "byte_str" ]
Make this unicode in Python 3, otherwise leave it as bytes. Args: byte_str: The byte string to decode. allow_none: If true, then we will allow byte_str to be None in which case we will return an empty string. TODO(rkn): Remove this flag. This is only here to simplify upgrading to flatbuffers 1.10.0. Returns: A byte string in Python 2 and a unicode string in Python 3.
[ "Make", "this", "unicode", "in", "Python", "3", "otherwise", "leave", "it", "as", "bytes", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L160-L181
train
Make this unicode in Python 2 otherwise leave it as bytes.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9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BOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + '\062' + chr(0b110010) + chr(49), 13739 - 13731), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\157' + chr(1533 - 1483) + chr(0b110000) + chr(0b10100 + 0o43), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b0 + 0o157) + chr(0b101111 + 0o4) + '\061' + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x36' + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + '\x31' + chr(1031 - 980), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(0b110000) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(887 - 839) + '\x6f' + chr(0b110011) + chr(0b110100) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(48) + chr(4705 - 4594) + '\061' + chr(48) + chr(49), 58224 - 58216), ehT0Px3KOsy9('\x30' + chr(0b1001010 + 0o45) + '\x31' + chr(0b110010) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b100 + 0o55) + chr(48) + '\x32', 63214 - 63206), ehT0Px3KOsy9('\060' + chr(0b1010100 + 0o33) + chr(51 - 1) + '\x30' + '\067', 8), ehT0Px3KOsy9('\x30' + '\157' + chr(668 - 619) + '\066' + '\x32', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(51) + '\065', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1010001 + 0o36) + chr(51) + chr(51) + '\062', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1618 - 1568) + chr(55) + chr(1513 - 1462), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2301 - 2252) + chr(0b110 + 0o56) + chr(51), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(151 - 40) + chr(0b110110) + '\064', 8), ehT0Px3KOsy9(chr(48) + '\157' + chr(2220 - 2169) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b101011 + 0o5) + '\157' + chr(49) + chr(0b110111) + '\x37', 62496 - 62488), ehT0Px3KOsy9('\060' + chr(111) + chr(2500 - 2447) + '\x35', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b10100 + 0o37) + '\062' + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(1508 - 1460) + '\x6f' + '\063' + '\x37' + '\x32', 63015 - 63007), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\x6f' + chr(0b11 + 0o57) + chr(773 - 723) + '\x35', ord("\x08")), ehT0Px3KOsy9('\060' + chr(10053 - 9942) + chr(0b110011) + '\062' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b100010 + 0o21) + chr(1050 - 997), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(1454 - 1402) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(1381 - 1327) + chr(1885 - 1837), 1761 - 1753), ehT0Px3KOsy9(chr(632 - 584) + chr(0b1101111) + '\x33' + '\x34' + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b110001 + 0o76) + chr(0b10001 + 0o40) + '\063' + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(52) + chr(54), 53256 - 53248), ehT0Px3KOsy9('\x30' + chr(0b1000011 + 0o54) + chr(0b100100 + 0o15) + chr(0b110001) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + '\x32' + chr(0b110011), 8), ehT0Px3KOsy9(chr(0b110000) + chr(3918 - 3807) + chr(0b1100 + 0o45) + chr(0b1000 + 0o53) + chr(0b10001 + 0o37), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + '\064' + '\064', 23618 - 23610), ehT0Px3KOsy9(chr(48) + chr(6738 - 6627) + chr(0b101010 + 0o13) + chr(2289 - 2240), 41264 - 41256), ehT0Px3KOsy9(chr(1617 - 1569) + chr(111) + chr(0b110100) + chr(51), 19319 - 19311), ehT0Px3KOsy9(chr(866 - 818) + chr(0b111 + 0o150) + chr(0b100 + 0o57) + '\064' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\x6f' + '\x31' + chr(1669 - 1617) + chr(48), 0o10), ehT0Px3KOsy9(chr(540 - 492) + '\x6f' + '\x31' + '\061' + chr(0b10001 + 0o41), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + chr(0b11001 + 0o30) + chr(391 - 342), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1 + 0o156) + '\x35' + chr(48), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xbf'), chr(0b111110 + 0o46) + '\x65' + chr(9346 - 9247) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1010001 + 0o44) + '\164' + '\146' + chr(1862 - 1817) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def RSziqSuj39r9(ivKL3OIGGU8m, Elfy88HiiI0a=ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b1011 + 0o45), 0o10)): if ivKL3OIGGU8m is None and Elfy88HiiI0a: return xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(3808 - 3708) + chr(0b10110 + 0o117) + chr(1895 - 1796) + '\157' + '\144' + '\145')('\x75' + chr(11848 - 11732) + chr(102) + '\055' + '\x38') if not PlSM16l2KDPD(ivKL3OIGGU8m, QOfmzcVJsrp8): raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b"\xc5\xef\xaf\x14*\xb0\x834;'\xe9\x06\xfd\xa1\xc6CYi\x0cY\xf2\x98\xf0\xf3|G\x92\x9c/C;\xf37\x06CF\x80\x14d"), '\144' + '\145' + chr(5128 - 5029) + chr(956 - 845) + chr(100) + chr(0b1010111 + 0o16))(chr(117) + chr(0b1101101 + 0o7) + chr(0b1100110) + chr(0b101010 + 0o3) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc7\xb3\xb8[\x03\xa3\xb7r\x062\xe2\x18'), chr(0b100010 + 0o102) + chr(101) + '\x63' + chr(4174 - 4063) + '\144' + chr(0b10111 + 0o116))(chr(117) + chr(4713 - 4597) + '\146' + '\x2d' + '\070'))(ivKL3OIGGU8m)) if xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7\xe2\xb8G"\xad\x8a\x1e?,\xe1\x1d'), '\x64' + chr(9926 - 9825) + chr(0b11011 + 0o110) + '\x6f' + '\x64' + chr(101))('\165' + chr(0b101011 + 0o111) + '\146' + chr(149 - 104) + chr(0b100100 + 0o24))) >= (ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b1011 + 0o50), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110000), 8)): return xafqLlk3kkUe(ivKL3OIGGU8m, '\x64' + chr(0b111010 + 0o53) + chr(0b1100011) + chr(0b11100 + 0o123) + chr(100) + '\x65')(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0\xf4\xa9]"'), '\144' + '\145' + chr(99) + '\157' + chr(100) + chr(101))('\x75' + '\164' + chr(0b1111 + 0o127) + chr(0b101101) + chr(0b110001 + 0o7))) else: return ivKL3OIGGU8m
ray-project/ray
python/ray/utils.py
ensure_str
def ensure_str(s, encoding="utf-8", errors="strict"): """Coerce *s* to `str`. To keep six with lower version, see Issue 4169, we copy this function from six == 1.12.0. TODO(yuhguo): remove this function when six >= 1.12.0. For Python 2: - `unicode` -> encoded to `str` - `str` -> `str` For Python 3: - `str` -> `str` - `bytes` -> decoded to `str` """ if six.PY3: text_type = str binary_type = bytes else: text_type = unicode # noqa: F821 binary_type = str if not isinstance(s, (text_type, binary_type)): raise TypeError("not expecting type '%s'" % type(s)) if six.PY2 and isinstance(s, text_type): s = s.encode(encoding, errors) elif six.PY3 and isinstance(s, binary_type): s = s.decode(encoding, errors) return s
python
def ensure_str(s, encoding="utf-8", errors="strict"): """Coerce *s* to `str`. To keep six with lower version, see Issue 4169, we copy this function from six == 1.12.0. TODO(yuhguo): remove this function when six >= 1.12.0. For Python 2: - `unicode` -> encoded to `str` - `str` -> `str` For Python 3: - `str` -> `str` - `bytes` -> decoded to `str` """ if six.PY3: text_type = str binary_type = bytes else: text_type = unicode # noqa: F821 binary_type = str if not isinstance(s, (text_type, binary_type)): raise TypeError("not expecting type '%s'" % type(s)) if six.PY2 and isinstance(s, text_type): s = s.encode(encoding, errors) elif six.PY3 and isinstance(s, binary_type): s = s.decode(encoding, errors) return s
[ "def", "ensure_str", "(", "s", ",", "encoding", "=", "\"utf-8\"", ",", "errors", "=", "\"strict\"", ")", ":", "if", "six", ".", "PY3", ":", "text_type", "=", "str", "binary_type", "=", "bytes", "else", ":", "text_type", "=", "unicode", "# noqa: F821", "binary_type", "=", "str", "if", "not", "isinstance", "(", "s", ",", "(", "text_type", ",", "binary_type", ")", ")", ":", "raise", "TypeError", "(", "\"not expecting type '%s'\"", "%", "type", "(", "s", ")", ")", "if", "six", ".", "PY2", "and", "isinstance", "(", "s", ",", "text_type", ")", ":", "s", "=", "s", ".", "encode", "(", "encoding", ",", "errors", ")", "elif", "six", ".", "PY3", "and", "isinstance", "(", "s", ",", "binary_type", ")", ":", "s", "=", "s", ".", "decode", "(", "encoding", ",", "errors", ")", "return", "s" ]
Coerce *s* to `str`. To keep six with lower version, see Issue 4169, we copy this function from six == 1.12.0. TODO(yuhguo): remove this function when six >= 1.12.0. For Python 2: - `unicode` -> encoded to `str` - `str` -> `str` For Python 3: - `str` -> `str` - `bytes` -> decoded to `str`
[ "Coerce", "*", "s", "*", "to", "str", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L184-L212
train
Coerce *s* to str.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CS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EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b111100 + 0o63) + '\x32' + chr(0b110101 + 0o2) + chr(49), 0b1000), ehT0Px3KOsy9(chr(101 - 53) + chr(4017 - 3906) + '\066' + chr(49), 14296 - 14288), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(52) + '\x32', 21591 - 21583), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(1219 - 1168) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010011 + 0o34) + chr(0b110010) + chr(2428 - 2373) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(111) + chr(0b110000 + 0o1) + '\062' + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1100 + 0o143) + '\x32' + chr(0b100101 + 0o20) + chr(51), 63709 - 63701), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + chr(0b110011) + '\x34' + chr(0b10101 + 0o33), 0b1000), ehT0Px3KOsy9('\x30' + chr(4905 - 4794) + chr(1038 - 989) + chr(0b1011 + 0o50) + chr(0b11100 + 0o24), 37972 - 37964), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(716 - 661) + chr(54), 0o10), ehT0Px3KOsy9(chr(479 - 431) + chr(0b1001010 + 0o45) + chr(940 - 887) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + '\x34' + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b110110 + 0o71) + '\x31' + chr(0b11001 + 0o36) + chr(2236 - 2183), ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1372 - 1321) + '\066' + chr(523 - 473), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(2130 - 2080) + '\066' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + chr(51) + chr(53), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + '\065', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(1246 - 1196), 0o10), ehT0Px3KOsy9(chr(493 - 445) + chr(0b100100 + 0o113) + '\x33' + '\x36' + chr(0b10011 + 0o42), 0o10), ehT0Px3KOsy9(chr(1059 - 1011) + '\x6f' + '\x33' + '\065', 8), ehT0Px3KOsy9(chr(2138 - 2090) + chr(0b10110 + 0o131) + chr(657 - 607) + chr(938 - 890) + chr(50), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b101100 + 0o103) + chr(0b110011 + 0o0) + chr(1628 - 1576) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(1968 - 1920) + chr(0b101111 + 0o100) + chr(0b110010) + chr(53) + '\x31', 0o10), ehT0Px3KOsy9('\x30' + chr(2774 - 2663) + chr(0b100001 + 0o22) + '\x36' + chr(0b11110 + 0o30), ord("\x08")), ehT0Px3KOsy9(chr(0b1 + 0o57) + '\157' + chr(0b1111 + 0o43) + chr(0b110011) + '\x30', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b10 + 0o57), ord("\x08")), ehT0Px3KOsy9('\060' + chr(5023 - 4912) + chr(0b110011) + chr(55) + '\066', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + '\062' + chr(1648 - 1596), 29806 - 29798), ehT0Px3KOsy9('\060' + chr(9172 - 9061) + chr(49) + chr(0b110111) + chr(51), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + '\x30' + chr(49), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + chr(0b1011 + 0o54) + '\x36', 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b1100 + 0o44) + '\x35', 0b1000), ehT0Px3KOsy9(chr(1163 - 1115) + chr(0b1101111) + chr(0b100100 + 0o15) + chr(53) + '\x37', 0b1000), ehT0Px3KOsy9(chr(767 - 719) + chr(0b1101111) + chr(929 - 876), 12469 - 12461), ehT0Px3KOsy9(chr(48) + '\157' + chr(867 - 817) + '\x31' + chr(1081 - 1033), 29877 - 29869), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011), 8), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(10946 - 10835) + chr(55) + chr(54), 0b1000), ehT0Px3KOsy9(chr(1559 - 1511) + '\x6f' + '\x31' + '\063' + '\x33', 3311 - 3303), ehT0Px3KOsy9('\x30' + chr(11304 - 11193) + chr(0b10100 + 0o37) + chr(74 - 20) + chr(940 - 886), 8)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x35' + chr(1503 - 1455), 8856 - 8848)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'-'), '\144' + chr(101) + '\x63' + '\x6f' + chr(0b1000000 + 0o44) + '\145')('\x75' + '\164' + chr(9973 - 9871) + '\055' + chr(2673 - 2617)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def NCxs8XDEeRos(vGrByMSYMp9h, _pPd9lb_XZ4K=xafqLlk3kkUe(SXOLrMavuUCe(b'v\xcdW\xcf!'), chr(0b1100100) + '\x65' + '\x63' + chr(5942 - 5831) + chr(0b1011001 + 0o13) + chr(101))(chr(419 - 302) + chr(116) + '\x66' + '\x2d' + '\070'), vrC59GzZXTIL=xafqLlk3kkUe(SXOLrMavuUCe(b'p\xcdC\x8bz\xcb'), '\x64' + '\145' + '\143' + chr(12076 - 11965) + '\x64' + '\x65')(chr(0b110100 + 0o101) + chr(116) + '\x66' + chr(1605 - 1560) + '\x38')): if xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe0\x02'), chr(0b1100100) + '\x65' + chr(99) + chr(4150 - 4039) + chr(4741 - 4641) + '\145')(chr(0b10010 + 0o143) + '\x74' + chr(1029 - 927) + chr(45) + chr(2570 - 2514))): q1MiJcALIjIZ = M8_cKLkHVB2V JOJRih9TkqpY = QOfmzcVJsrp8 else: q1MiJcALIjIZ = QHM8Bw_ytELU JOJRih9TkqpY = M8_cKLkHVB2V if not PlSM16l2KDPD(vGrByMSYMp9h, (q1MiJcALIjIZ, JOJRih9TkqpY)): raise sznFqDbNBHlx(xafqLlk3kkUe(SXOLrMavuUCe(b'm\xd6E\xc2|\xc7$\xce\x83,\x17E\x83]\x86\xc9-x"\xd28\xf1\xc4'), '\x64' + '\x65' + chr(99) + '\x6f' + chr(100) + chr(0b1100101))('\165' + chr(0b100000 + 0o124) + chr(243 - 141) + chr(0b101101) + '\x38') % wmQmyeWBmUpv(vGrByMSYMp9h)) if xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe0\x03'), chr(0b11110 + 0o106) + chr(2987 - 2886) + chr(0b1100011) + '\157' + chr(0b10100 + 0o120) + chr(918 - 817))('\x75' + '\164' + '\x66' + '\x2d' + chr(1937 - 1881))) and PlSM16l2KDPD(vGrByMSYMp9h, q1MiJcALIjIZ): vGrByMSYMp9h = vGrByMSYMp9h.encode(_pPd9lb_XZ4K, vrC59GzZXTIL) elif xafqLlk3kkUe(sYby0kpfssd4, xafqLlk3kkUe(SXOLrMavuUCe(b'S\xe0\x02'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b111010 + 0o53))(chr(2673 - 2556) + chr(0b1110100) + chr(0b10111 + 0o117) + chr(0b10 + 0o53) + '\070')) and PlSM16l2KDPD(vGrByMSYMp9h, JOJRih9TkqpY): vGrByMSYMp9h = vGrByMSYMp9h.decode(_pPd9lb_XZ4K, vrC59GzZXTIL) return vGrByMSYMp9h
ray-project/ray
python/ray/utils.py
get_cuda_visible_devices
def get_cuda_visible_devices(): """Get the device IDs in the CUDA_VISIBLE_DEVICES environment variable. Returns: if CUDA_VISIBLE_DEVICES is set, this returns a list of integers with the IDs of the GPUs. If it is not set, this returns None. """ gpu_ids_str = os.environ.get("CUDA_VISIBLE_DEVICES", None) if gpu_ids_str is None: return None if gpu_ids_str == "": return [] return [int(i) for i in gpu_ids_str.split(",")]
python
def get_cuda_visible_devices(): """Get the device IDs in the CUDA_VISIBLE_DEVICES environment variable. Returns: if CUDA_VISIBLE_DEVICES is set, this returns a list of integers with the IDs of the GPUs. If it is not set, this returns None. """ gpu_ids_str = os.environ.get("CUDA_VISIBLE_DEVICES", None) if gpu_ids_str is None: return None if gpu_ids_str == "": return [] return [int(i) for i in gpu_ids_str.split(",")]
[ "def", "get_cuda_visible_devices", "(", ")", ":", "gpu_ids_str", "=", "os", ".", "environ", ".", "get", "(", "\"CUDA_VISIBLE_DEVICES\"", ",", "None", ")", "if", "gpu_ids_str", "is", "None", ":", "return", "None", "if", "gpu_ids_str", "==", "\"\"", ":", "return", "[", "]", "return", "[", "int", "(", "i", ")", "for", "i", "in", "gpu_ids_str", ".", "split", "(", "\",\"", ")", "]" ]
Get the device IDs in the CUDA_VISIBLE_DEVICES environment variable. Returns: if CUDA_VISIBLE_DEVICES is set, this returns a list of integers with the IDs of the GPUs. If it is not set, this returns None.
[ "Get", "the", "device", "IDs", "in", "the", "CUDA_VISIBLE_DEVICES", "environment", "variable", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L230-L245
train
Get the device IDs in the CUDA_VISIBLE_DEVICES environment variable.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2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riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x32' + chr(501 - 452), 0b1000), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1101111) + chr(55) + '\x31', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(52) + '\x36', 6717 - 6709), ehT0Px3KOsy9(chr(48) + chr(10773 - 10662) + '\x34' + '\x33', 1721 - 1713), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + '\067' + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + chr(48) + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b10 + 0o61) + chr(0b10001 + 0o42) + chr(0b101 + 0o53), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(106 - 55) + chr(0b101101 + 0o7) + chr(48), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b100 + 0o54) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(51) + chr(0b100000 + 0o27), 10411 - 10403), ehT0Px3KOsy9('\060' + '\157' + chr(0b101010 + 0o12) + chr(0b110011), 8), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(3566 - 3455) + chr(49) + '\060' + '\062', 0o10), ehT0Px3KOsy9(chr(121 - 73) + '\157' + chr(1627 - 1576) + '\x30' + chr(857 - 806), 41617 - 41609), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1101111) + '\x31' + chr(55) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b100000 + 0o117) + '\061' + '\x37' + '\x37', 0o10), ehT0Px3KOsy9(chr(127 - 79) + '\157' + chr(0b110111) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(2834 - 2723) + chr(1080 - 1029) + chr(0b110100) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(111) + '\x31' + '\060' + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063' + chr(1571 - 1519) + '\062', 2457 - 2449), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(424 - 375) + chr(0b11011 + 0o25) + chr(0b110110), 43687 - 43679), ehT0Px3KOsy9(chr(2235 - 2187) + chr(0b111010 + 0o65) + '\x37' + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(48) + chr(11163 - 11052) + chr(0b100110 + 0o13) + chr(2056 - 2008) + chr(48), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b100111 + 0o13) + '\063' + chr(2290 - 2237), 0o10), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b11010 + 0o125) + chr(0b110 + 0o55) + '\x30' + '\061', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + '\x35' + chr(0b101000 + 0o10), 0b1000), ehT0Px3KOsy9(chr(0b11000 + 0o30) + '\x6f' + '\064' + '\x33', 8), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(0b101100 + 0o103) + '\x32' + '\x37' + chr(0b110010), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1000001 + 0o56) + chr(49) + chr(0b110001 + 0o6) + '\x31', 7114 - 7106), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\157' + '\x32' + '\x34' + '\067', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(427 - 374) + chr(0b110001), 25765 - 25757), ehT0Px3KOsy9(chr(1652 - 1604) + chr(5642 - 5531) + chr(0b101101 + 0o4) + '\067', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b1111 + 0o47) + '\x34', 35222 - 35214), ehT0Px3KOsy9(chr(0b1100 + 0o44) + chr(0b11101 + 0o122) + chr(0b101000 + 0o13) + '\063' + '\066', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1 + 0o156) + '\063' + chr(1911 - 1859) + chr(51), 0b1000), ehT0Px3KOsy9(chr(48) + chr(8577 - 8466) + '\063' + chr(0b11001 + 0o31) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + '\066' + '\x32', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110001) + '\060' + chr(51), 8), ehT0Px3KOsy9(chr(0b101101 + 0o3) + '\x6f' + '\063' + chr(0b11000 + 0o35) + chr(2236 - 2182), ord("\x08")), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b10111 + 0o130) + chr(0b110110) + chr(1990 - 1942), 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + chr(1228 - 1177) + chr(54) + chr(0b10010 + 0o43), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10111 + 0o36) + '\x30', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xff'), '\144' + chr(0b1100101) + chr(8173 - 8074) + chr(0b1101111) + chr(1998 - 1898) + '\145')('\165' + '\x74' + chr(0b10110 + 0o120) + chr(180 - 135) + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def ms_vFwNuFIjg(): iPgn65EQ3zry = oqhJDdMJfuwx.environ.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\x92lbb\xa2\xd7\x91\xb3\x8b\x9do\x07\x9c::k\xad\x00\xa7\x15'), chr(0b1001110 + 0o26) + chr(4815 - 4714) + '\143' + chr(0b1001100 + 0o43) + chr(100) + chr(0b1100101))('\165' + '\x74' + chr(6443 - 6341) + chr(0b101101) + '\x38'), None) if iPgn65EQ3zry is None: return None if iPgn65EQ3zry == xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(100) + chr(2734 - 2633) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(101))('\x75' + chr(0b1101001 + 0o13) + chr(102) + chr(45) + chr(56)): return [] return [ehT0Px3KOsy9(WVxHKyX45z_L) for WVxHKyX45z_L in xafqLlk3kkUe(iPgn65EQ3zry, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2IJJ\x89'), chr(0b101110 + 0o66) + chr(0b1100011 + 0o2) + '\x63' + chr(0b10001 + 0o136) + chr(0b1100100) + chr(101))('\165' + '\x74' + '\x66' + chr(45) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xfd'), chr(1727 - 1627) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(5082 - 4982) + chr(5043 - 4942))(chr(0b1110101) + '\x74' + chr(102) + chr(0b1111 + 0o36) + chr(56)))]
ray-project/ray
python/ray/utils.py
resources_from_resource_arguments
def resources_from_resource_arguments(default_num_cpus, default_num_gpus, default_resources, runtime_num_cpus, runtime_num_gpus, runtime_resources): """Determine a task's resource requirements. Args: default_num_cpus: The default number of CPUs required by this function or actor method. default_num_gpus: The default number of GPUs required by this function or actor method. default_resources: The default custom resources required by this function or actor method. runtime_num_cpus: The number of CPUs requested when the task was invoked. runtime_num_gpus: The number of GPUs requested when the task was invoked. runtime_resources: The custom resources requested when the task was invoked. Returns: A dictionary of the resource requirements for the task. """ if runtime_resources is not None: resources = runtime_resources.copy() elif default_resources is not None: resources = default_resources.copy() else: resources = {} if "CPU" in resources or "GPU" in resources: raise ValueError("The resources dictionary must not " "contain the key 'CPU' or 'GPU'") assert default_num_cpus is not None resources["CPU"] = (default_num_cpus if runtime_num_cpus is None else runtime_num_cpus) if runtime_num_gpus is not None: resources["GPU"] = runtime_num_gpus elif default_num_gpus is not None: resources["GPU"] = default_num_gpus return resources
python
def resources_from_resource_arguments(default_num_cpus, default_num_gpus, default_resources, runtime_num_cpus, runtime_num_gpus, runtime_resources): """Determine a task's resource requirements. Args: default_num_cpus: The default number of CPUs required by this function or actor method. default_num_gpus: The default number of GPUs required by this function or actor method. default_resources: The default custom resources required by this function or actor method. runtime_num_cpus: The number of CPUs requested when the task was invoked. runtime_num_gpus: The number of GPUs requested when the task was invoked. runtime_resources: The custom resources requested when the task was invoked. Returns: A dictionary of the resource requirements for the task. """ if runtime_resources is not None: resources = runtime_resources.copy() elif default_resources is not None: resources = default_resources.copy() else: resources = {} if "CPU" in resources or "GPU" in resources: raise ValueError("The resources dictionary must not " "contain the key 'CPU' or 'GPU'") assert default_num_cpus is not None resources["CPU"] = (default_num_cpus if runtime_num_cpus is None else runtime_num_cpus) if runtime_num_gpus is not None: resources["GPU"] = runtime_num_gpus elif default_num_gpus is not None: resources["GPU"] = default_num_gpus return resources
[ "def", "resources_from_resource_arguments", "(", "default_num_cpus", ",", "default_num_gpus", ",", "default_resources", ",", "runtime_num_cpus", ",", "runtime_num_gpus", ",", "runtime_resources", ")", ":", "if", "runtime_resources", "is", "not", "None", ":", "resources", "=", "runtime_resources", ".", "copy", "(", ")", "elif", "default_resources", "is", "not", "None", ":", "resources", "=", "default_resources", ".", "copy", "(", ")", "else", ":", "resources", "=", "{", "}", "if", "\"CPU\"", "in", "resources", "or", "\"GPU\"", "in", "resources", ":", "raise", "ValueError", "(", "\"The resources dictionary must not \"", "\"contain the key 'CPU' or 'GPU'\"", ")", "assert", "default_num_cpus", "is", "not", "None", "resources", "[", "\"CPU\"", "]", "=", "(", "default_num_cpus", "if", "runtime_num_cpus", "is", "None", "else", "runtime_num_cpus", ")", "if", "runtime_num_gpus", "is", "not", "None", ":", "resources", "[", "\"GPU\"", "]", "=", "runtime_num_gpus", "elif", "default_num_gpus", "is", "not", "None", ":", "resources", "[", "\"GPU\"", "]", "=", "default_num_gpus", "return", "resources" ]
Determine a task's resource requirements. Args: default_num_cpus: The default number of CPUs required by this function or actor method. default_num_gpus: The default number of GPUs required by this function or actor method. default_resources: The default custom resources required by this function or actor method. runtime_num_cpus: The number of CPUs requested when the task was invoked. runtime_num_gpus: The number of GPUs requested when the task was invoked. runtime_resources: The custom resources requested when the task was invoked. Returns: A dictionary of the resource requirements for the task.
[ "Determine", "a", "task", "s", "resource", "requirements", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L257-L299
train
Determine a task s resource requirements from the given arguments.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ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b,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(2675 - 2564) + chr(0b10111 + 0o33) + chr(871 - 818) + '\061', 0b1000), ehT0Px3KOsy9(chr(575 - 527) + chr(0b1 + 0o156) + chr(0b110010) + '\062' + chr(1624 - 1572), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\062' + chr(2398 - 2344) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(0b1101111) + '\x32' + chr(210 - 155) + '\067', 2285 - 2277), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(111) + chr(49) + chr(0b11010 + 0o35) + chr(0b11 + 0o55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001100 + 0o43) + chr(0b11100 + 0o27), 24006 - 23998), ehT0Px3KOsy9(chr(1052 - 1004) + chr(111) + chr(0b100011 + 0o17) + chr(0b110101) + chr(0b11 + 0o57), ord("\x08")), ehT0Px3KOsy9(chr(0b10010 + 0o36) + '\157' + chr(0b110110) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110111) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b111011 + 0o64) + chr(695 - 646) + chr(0b110101) + chr(1062 - 1008), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000111 + 0o50) + chr(55) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\063' + chr(2134 - 2079) + chr(53), ord("\x08")), ehT0Px3KOsy9('\060' + chr(8981 - 8870) + chr(0b101111 + 0o5) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2140 - 2089) + '\062' + chr(53), 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110011) + chr(0b1001 + 0o54) + chr(0b101011 + 0o10), 40438 - 40430), ehT0Px3KOsy9(chr(1135 - 1087) + chr(111) + chr(0b110010) + chr(917 - 863) + chr(0b110110), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110110) + '\x37', 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b101000 + 0o13) + '\x37' + chr(2302 - 2252), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101 + 0o142) + chr(0b110001) + chr(50) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(51) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(724 - 676) + chr(0b111110 + 0o61) + chr(2048 - 1994) + '\063', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1 + 0o156) + chr(0b110000 + 0o2) + chr(0b110000) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(2093 - 2045) + '\x6f' + '\063' + chr(0b111 + 0o57) + '\x30', 35228 - 35220), ehT0Px3KOsy9('\060' + chr(111) + chr(574 - 524) + chr(460 - 411) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + chr(0b100011 + 0o15) + '\x32', 45114 - 45106), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110000), 22090 - 22082), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b11011 + 0o124) + '\063' + chr(50) + '\x30', 0o10), ehT0Px3KOsy9('\x30' + chr(7103 - 6992) + chr(0b100 + 0o56) + chr(53) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + '\x34' + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b110100) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b1101111) + chr(2383 - 2334) + chr(0b110011) + chr(0b100011 + 0o16), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011100 + 0o23) + chr(0b100010 + 0o24) + '\x37', 8), ehT0Px3KOsy9('\060' + chr(0b1010 + 0o145) + chr(0b110100) + chr(0b100110 + 0o16), 8), ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(111) + chr(0b11101 + 0o24) + chr(0b11010 + 0o27) + chr(0b101 + 0o56), 3857 - 3849), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + '\063' + chr(732 - 682) + chr(51), 0o10), ehT0Px3KOsy9('\060' + chr(0b111101 + 0o62) + chr(0b110001) + chr(0b110010) + chr(0b101110 + 0o4), ord("\x08")), ehT0Px3KOsy9('\060' + chr(6442 - 6331) + chr(0b100011 + 0o16) + '\x33' + chr(0b110100), 61596 - 61588), ehT0Px3KOsy9('\x30' + '\157' + chr(0b10100 + 0o35) + chr(2537 - 2484) + chr(0b110000 + 0o3), 41440 - 41432), ehT0Px3KOsy9('\x30' + chr(0b111011 + 0o64) + chr(0b1101 + 0o45) + chr(49) + chr(0b110011), 8030 - 8022), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(49) + chr(588 - 539), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(53) + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x87'), chr(7610 - 7510) + '\145' + chr(0b100 + 0o137) + chr(111) + chr(0b1011001 + 0o13) + chr(7461 - 7360))(chr(117) + chr(0b1110100) + chr(0b1101 + 0o131) + '\055' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def F8DQkQDTdDrt(pz6j7B2356i9, z5amlISD0XfM, fAgAcvN6SMCC, SjbEKdpPYSZ_, vvs9sYJiu4gD, n3E4_r32GPCe): if n3E4_r32GPCe is not None: z4Xs9XhDbg00 = n3E4_r32GPCe.igThHS4jwVsa() elif fAgAcvN6SMCC is not None: z4Xs9XhDbg00 = fAgAcvN6SMCC.igThHS4jwVsa() else: z4Xs9XhDbg00 = {} if xafqLlk3kkUe(SXOLrMavuUCe(b'\xea\xc4\xe7'), '\x64' + chr(9848 - 9747) + '\143' + chr(10872 - 10761) + chr(100) + chr(101))(chr(11711 - 11594) + '\x74' + '\x66' + '\x2d' + '\070') in z4Xs9XhDbg00 or xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\xc4\xe7'), chr(100) + chr(101) + chr(0b1011111 + 0o4) + '\x6f' + '\x64' + '\145')(chr(117) + chr(0b1110100) + '\146' + '\055' + '\070') in z4Xs9XhDbg00: raise q1QCh3W88sgk(xafqLlk3kkUe(SXOLrMavuUCe(b'\xfd\xfc\xd7\x9f\nf\xd9X\x89\x1c_\x98W\xf5\x8f\xdfT\x8e<0]\xe5\x82\xf4bm\xa5\xde\x91A7XPk\xb0=2\x1f\xea`\xc7\xb4\xc6\xd7\x1d#\xc1R\x85N\x1b\xbet\x80\xcc\x96X\x88uxt\xd4\xa5\xaa'), '\x64' + chr(8064 - 7963) + chr(7865 - 7766) + '\x6f' + chr(0b111100 + 0o50) + chr(4833 - 4732))('\165' + chr(0b1110100) + chr(5712 - 5610) + '\055' + chr(0b11111 + 0o31))) assert pz6j7B2356i9 is not None z4Xs9XhDbg00[xafqLlk3kkUe(SXOLrMavuUCe(b'\xea\xc4\xe7'), '\144' + chr(5666 - 5565) + '\x63' + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38')] = pz6j7B2356i9 if SjbEKdpPYSZ_ is None else SjbEKdpPYSZ_ if vvs9sYJiu4gD is not None: z4Xs9XhDbg00[xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\xc4\xe7'), chr(0b100 + 0o140) + '\x65' + chr(0b1100011) + chr(0b1100011 + 0o14) + '\x64' + chr(4944 - 4843))(chr(3766 - 3649) + chr(0b11101 + 0o127) + chr(0b1100110) + chr(45) + chr(1257 - 1201))] = vvs9sYJiu4gD elif z5amlISD0XfM is not None: z4Xs9XhDbg00[xafqLlk3kkUe(SXOLrMavuUCe(b'\xee\xc4\xe7'), chr(1936 - 1836) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(101))('\165' + '\164' + '\146' + chr(0b101101) + chr(56))] = z5amlISD0XfM return z4Xs9XhDbg00
ray-project/ray
python/ray/utils.py
setup_logger
def setup_logger(logging_level, logging_format): """Setup default logging for ray.""" logger = logging.getLogger("ray") if type(logging_level) is str: logging_level = logging.getLevelName(logging_level.upper()) logger.setLevel(logging_level) global _default_handler if _default_handler is None: _default_handler = logging.StreamHandler() logger.addHandler(_default_handler) _default_handler.setFormatter(logging.Formatter(logging_format)) logger.propagate = False
python
def setup_logger(logging_level, logging_format): """Setup default logging for ray.""" logger = logging.getLogger("ray") if type(logging_level) is str: logging_level = logging.getLevelName(logging_level.upper()) logger.setLevel(logging_level) global _default_handler if _default_handler is None: _default_handler = logging.StreamHandler() logger.addHandler(_default_handler) _default_handler.setFormatter(logging.Formatter(logging_format)) logger.propagate = False
[ "def", "setup_logger", "(", "logging_level", ",", "logging_format", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "\"ray\"", ")", "if", "type", "(", "logging_level", ")", "is", "str", ":", "logging_level", "=", "logging", ".", "getLevelName", "(", "logging_level", ".", "upper", "(", ")", ")", "logger", ".", "setLevel", "(", "logging_level", ")", "global", "_default_handler", "if", "_default_handler", "is", "None", ":", "_default_handler", "=", "logging", ".", "StreamHandler", "(", ")", "logger", ".", "addHandler", "(", "_default_handler", ")", "_default_handler", ".", "setFormatter", "(", "logging", ".", "Formatter", "(", "logging_format", ")", ")", "logger", ".", "propagate", "=", "False" ]
Setup default logging for ray.
[ "Setup", "default", "logging", "for", "ray", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L305-L316
train
Setup default logging for ray.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qf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p8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2205 - 2154) + chr(0b110110) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + '\x34' + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(963 - 915) + '\x6f' + chr(0b110011) + '\067' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(99 - 51) + chr(0b1101111) + '\063' + chr(0b11000 + 0o34) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(111) + chr(0b110010 + 0o1) + '\065' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\x6f' + chr(0b110001) + chr(54) + chr(50), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b10001 + 0o136) + '\062' + chr(51), 19565 - 19557), ehT0Px3KOsy9(chr(833 - 785) + '\157' + chr(0b110010) + '\065' + chr(0b101011 + 0o10), 6689 - 6681), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(111) + chr(0b110001) + chr(1553 - 1504) + '\x37', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b100 + 0o55) + '\x36' + chr(0b110001), 26362 - 26354), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1786 - 1736) + chr(237 - 187) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1101111) + '\x31' + chr(0b110110) + chr(0b11000 + 0o33), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(1615 - 1504) + chr(0b110011) + chr(2361 - 2309) + '\062', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(52) + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(4005 - 3894) + chr(728 - 679) + chr(0b110000) + chr(0b11101 + 0o31), 21045 - 21037), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b1111 + 0o43) + '\x37' + chr(688 - 639), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b0 + 0o157) + chr(990 - 941) + chr(0b100110 + 0o14) + '\067', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1111 + 0o140) + chr(0b11110 + 0o23) + chr(0b101011 + 0o7) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1101111) + chr(903 - 853) + '\067' + chr(1290 - 1240), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1000000 + 0o57) + '\061' + chr(0b101011 + 0o13) + chr(1266 - 1213), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b100 + 0o153) + chr(0b110001) + chr(0b110111) + '\063', 0o10), ehT0Px3KOsy9(chr(48) + chr(5702 - 5591) + chr(0b110010) + '\x37' + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(2105 - 2057) + chr(111) + '\x35' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1311 - 1258) + '\063', 0b1000), ehT0Px3KOsy9('\060' + chr(10484 - 10373) + '\x32' + '\060' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(1467 - 1415) + '\x32', 8), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b111100 + 0o63) + chr(0b110001 + 0o0) + '\x32' + '\x32', 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b110010 + 0o75) + chr(0b110001) + chr(0b100111 + 0o20), 0b1000), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(111) + chr(0b11010 + 0o26), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(50), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(225 - 175) + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(10708 - 10597) + chr(0b101100 + 0o11) + chr(51), 8), ehT0Px3KOsy9(chr(48) + chr(6864 - 6753) + '\061' + chr(0b110010) + chr(0b110010 + 0o3), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + chr(0b101100 + 0o10) + chr(2483 - 2431), 36147 - 36139), ehT0Px3KOsy9(chr(1362 - 1314) + '\x6f' + chr(0b101000 + 0o12) + chr(0b10001 + 0o44) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b101 + 0o54) + chr(0b110010) + chr(0b101010 + 0o10), 8), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + '\060' + '\065', 0b1000), ehT0Px3KOsy9(chr(671 - 623) + chr(9977 - 9866) + chr(49) + chr(0b110000) + '\064', 31010 - 31002)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(11644 - 11533) + chr(0b10110 + 0o37) + chr(0b100001 + 0o17), 37430 - 37422)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8'), chr(0b1100100 + 0o0) + '\145' + '\x63' + chr(0b1101111) + chr(3615 - 3515) + '\145')(chr(0b110001 + 0o104) + chr(13260 - 13144) + chr(5073 - 4971) + '\055' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def xYEsfI81duqz(YyKhALLbeI_I, VpkxQz_OkIYj): hdK8qOUhR6Or = UeotCCWOPSQS.getLogger(xafqLlk3kkUe(SXOLrMavuUCe(b'\x84\x05\x82'), chr(0b1100100) + '\x65' + '\x63' + chr(0b111110 + 0o61) + '\x64' + chr(101))(chr(0b1110101) + '\x74' + '\146' + chr(0b10011 + 0o32) + '\070')) if PlSM16l2KDPD(YyKhALLbeI_I, M8_cKLkHVB2V): YyKhALLbeI_I = UeotCCWOPSQS.getLevelName(YyKhALLbeI_I.upper()) xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x85\x01\x8f\xad\x8a\x04v\xc7'), chr(100) + '\145' + chr(0b10100 + 0o117) + chr(111) + '\x64' + '\145')('\165' + chr(0b1101111 + 0o5) + chr(0b1100110) + chr(1259 - 1214) + chr(56)))(YyKhALLbeI_I) global i14rHooO0JEE if i14rHooO0JEE is None: i14rHooO0JEE = UeotCCWOPSQS.StreamHandler() xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x97\x00\x9f\xa9\x8e\x1cw\xc7*\x03'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + '\x64' + '\x65')('\165' + chr(116) + chr(0b1000110 + 0o40) + chr(0b101001 + 0o4) + chr(0b111 + 0o61)))(i14rHooO0JEE) xafqLlk3kkUe(i14rHooO0JEE, xafqLlk3kkUe(SXOLrMavuUCe(b'\x85\x01\x8f\xa7\x80\x00~\xca;\x05\xf7\x01'), chr(100) + '\x65' + '\143' + chr(111) + chr(0b1100100) + '\x65')(chr(117) + chr(0b1 + 0o163) + '\x66' + chr(45) + chr(0b111000)))(xafqLlk3kkUe(UeotCCWOPSQS, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb0\x0b\x89\x8c\x8e\x06g\xce='), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1110010 + 0o3) + chr(0b1110100) + '\146' + chr(0b11000 + 0o25) + chr(0b111000)))(VpkxQz_OkIYj)) hdK8qOUhR6Or.cZ_lLDyXSRyK = ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(48), 8)
ray-project/ray
python/ray/utils.py
vmstat
def vmstat(stat): """Run vmstat and get a particular statistic. Args: stat: The statistic that we are interested in retrieving. Returns: The parsed output. """ out = subprocess.check_output(["vmstat", "-s"]) stat = stat.encode("ascii") for line in out.split(b"\n"): line = line.strip() if stat in line: return int(line.split(b" ")[0]) raise ValueError("Can't find {} in 'vmstat' output.".format(stat))
python
def vmstat(stat): """Run vmstat and get a particular statistic. Args: stat: The statistic that we are interested in retrieving. Returns: The parsed output. """ out = subprocess.check_output(["vmstat", "-s"]) stat = stat.encode("ascii") for line in out.split(b"\n"): line = line.strip() if stat in line: return int(line.split(b" ")[0]) raise ValueError("Can't find {} in 'vmstat' output.".format(stat))
[ "def", "vmstat", "(", "stat", ")", ":", "out", "=", "subprocess", ".", "check_output", "(", "[", "\"vmstat\"", ",", "\"-s\"", "]", ")", "stat", "=", "stat", ".", "encode", "(", "\"ascii\"", ")", "for", "line", "in", "out", ".", "split", "(", "b\"\\n\"", ")", ":", "line", "=", "line", ".", "strip", "(", ")", "if", "stat", "in", "line", ":", "return", "int", "(", "line", ".", "split", "(", "b\" \"", ")", "[", "0", "]", ")", "raise", "ValueError", "(", "\"Can't find {} in 'vmstat' output.\"", ".", "format", "(", "stat", ")", ")" ]
Run vmstat and get a particular statistic. Args: stat: The statistic that we are interested in retrieving. Returns: The parsed output.
[ "Run", "vmstat", "and", "get", "a", "particular", "statistic", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L321-L336
train
Run vmstat and get a particular statistic.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6r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,QC9iu2kLpS8s,QOfmzcVJsrp8,tzcpInYwBvYW,iDQ_gSK8V7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1363 - 1315) + chr(0b1101111) + chr(0b101001 + 0o11) + chr(0b1010 + 0o50) + chr(48), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1100010 + 0o15) + '\x37' + chr(55), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b111 + 0o150) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(251 - 203) + chr(0b110010 + 0o75) + '\061' + chr(52) + chr(2400 - 2351), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1010101 + 0o32) + '\x31' + chr(0b110001) + chr(0b10001 + 0o45), 13483 - 13475), ehT0Px3KOsy9(chr(0b110000) + chr(0b111100 + 0o63) + '\065', 8), ehT0Px3KOsy9('\060' + '\157' + '\x34' + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\067' + '\x33', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + '\x34' + chr(0b11110 + 0o25), 6528 - 6520), ehT0Px3KOsy9(chr(1050 - 1002) + chr(7680 - 7569) + '\062' + chr(0b110010 + 0o2) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(0b1101111) + '\064' + chr(50), 21643 - 21635), ehT0Px3KOsy9(chr(0b110000) + chr(8316 - 8205) + '\x33' + chr(0b110010) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(121 - 73) + '\x6f' + chr(2321 - 2271) + chr(1556 - 1503) + '\x33', 0o10), ehT0Px3KOsy9('\060' + chr(2104 - 1993) + chr(0b110010) + chr(51) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + '\x36' + chr(0b111 + 0o53), 0o10), ehT0Px3KOsy9(chr(1224 - 1176) + chr(111) + '\063' + chr(0b110010) + '\x34', 58287 - 58279), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\157' + chr(0b110010) + chr(54), 21239 - 21231), ehT0Px3KOsy9(chr(48) + chr(121 - 10) + chr(0b110111) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(1573 - 1525) + chr(111) + chr(0b110101 + 0o2) + '\061', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(1010 - 961) + '\061' + '\061', 0b1000), ehT0Px3KOsy9(chr(1822 - 1774) + chr(1638 - 1527) + '\x31' + chr(0b110011) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + chr(0b11000 + 0o34) + chr(0b0 + 0o65), 0o10), ehT0Px3KOsy9('\x30' + chr(5886 - 5775) + chr(49) + chr(745 - 696), 0o10), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\157' + chr(0b110010) + chr(0b101001 + 0o11) + chr(2125 - 2074), 0b1000), ehT0Px3KOsy9('\x30' + chr(1709 - 1598) + '\x32' + chr(1840 - 1785) + chr(0b111 + 0o60), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + '\x36' + chr(0b0 + 0o61), 52206 - 52198), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b11001 + 0o36) + chr(0b11 + 0o62), 0o10), ehT0Px3KOsy9('\060' + chr(6646 - 6535) + chr(1127 - 1078) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + '\064' + chr(0b110010), 8), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(5630 - 5519) + '\062' + chr(0b110100) + '\063', 0o10), ehT0Px3KOsy9(chr(2151 - 2103) + chr(0b110101 + 0o72) + chr(0b110001) + '\060' + '\x35', 0o10), ehT0Px3KOsy9(chr(314 - 266) + chr(0b1000111 + 0o50) + '\063' + '\062', 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(51) + chr(1363 - 1308) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(2105 - 2057) + chr(111) + chr(270 - 220) + '\065' + chr(630 - 581), ord("\x08")), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(0b1101111) + chr(0b1110 + 0o47) + chr(1761 - 1713), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101011 + 0o4) + '\x32' + chr(0b1111 + 0o42) + '\x31', 8373 - 8365), ehT0Px3KOsy9('\x30' + chr(0b1011001 + 0o26) + chr(49) + chr(0b110000) + chr(0b110000), 40380 - 40372), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(0b1101111) + chr(2580 - 2525) + '\064', 8), ehT0Px3KOsy9('\060' + '\157' + chr(0b101010 + 0o10) + '\066' + chr(1677 - 1626), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(0b110010) + '\064', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(313 - 265) + chr(0b1101111) + chr(0b110101 + 0o0) + chr(547 - 499), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe'), chr(8730 - 8630) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + '\145')('\165' + '\x74' + chr(9978 - 9876) + '\055' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def wS9ieCGVS8F5(KDNtFi7Uc6bo): UkrMp_I0RDmo = SorA9b5x63bd.check_output([xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6Rv\x15/q'), chr(0b1100100) + chr(8352 - 8251) + chr(99) + '\x6f' + '\x64' + '\x65')('\165' + '\164' + chr(8739 - 8637) + '\x2d' + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xbdL'), '\144' + '\145' + '\x63' + '\x6f' + chr(0b1011100 + 0o10) + chr(0b1101 + 0o130))('\x75' + '\x74' + chr(7522 - 7420) + chr(0b10100 + 0o31) + chr(1186 - 1130))]) KDNtFi7Uc6bo = KDNtFi7Uc6bo.encode(xafqLlk3kkUe(SXOLrMavuUCe(b"\xf1Lf\x08'"), '\144' + chr(101) + chr(99) + '\157' + chr(0b1010010 + 0o22) + '\145')('\x75' + chr(0b1110100) + chr(102) + chr(1569 - 1524) + chr(1429 - 1373))) for LycYkDpyelF6 in xafqLlk3kkUe(UkrMp_I0RDmo, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3Oi\x08:'), chr(100) + chr(101) + '\x63' + '\x6f' + '\144' + '\145')(chr(0b1110000 + 0o5) + '\x74' + '\146' + '\x2d' + '\070'))(SXOLrMavuUCe(b'\x9a')): LycYkDpyelF6 = LycYkDpyelF6.VmIJF6Fy6LrX() if KDNtFi7Uc6bo in LycYkDpyelF6: return ehT0Px3KOsy9(xafqLlk3kkUe(LycYkDpyelF6, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3Oi\x08:'), chr(7078 - 6978) + chr(0b1001101 + 0o30) + '\143' + chr(609 - 498) + '\x64' + chr(0b1000101 + 0o40))(chr(0b1110101) + chr(4541 - 4425) + chr(8249 - 8147) + '\x2d' + chr(0b1001 + 0o57)))(SXOLrMavuUCe(b'\xb0'))[ehT0Px3KOsy9(chr(48) + '\157' + chr(48), 55122 - 55114)]) raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3^kF:%ER\r\xc5\x02\xaa\xd6\xbe\x9b\xba6\x1bO$,\x91h\xe7\x98\x91\xd2~V\xd30n\xd0'), chr(8649 - 8549) + chr(101) + chr(0b11101 + 0o106) + chr(0b1000110 + 0o51) + '\x64' + chr(10044 - 9943))(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xc6\x0bw\x0e\x06dp\x083\xd1G\xbb'), '\144' + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(1808 - 1707))(chr(0b1110101) + chr(0b1100000 + 0o24) + '\x66' + '\055' + chr(0b10110 + 0o42)))(KDNtFi7Uc6bo))
ray-project/ray
python/ray/utils.py
sysctl
def sysctl(command): """Run a sysctl command and parse the output. Args: command: A sysctl command with an argument, for example, ["sysctl", "hw.memsize"]. Returns: The parsed output. """ out = subprocess.check_output(command) result = out.split(b" ")[1] try: return int(result) except ValueError: return result
python
def sysctl(command): """Run a sysctl command and parse the output. Args: command: A sysctl command with an argument, for example, ["sysctl", "hw.memsize"]. Returns: The parsed output. """ out = subprocess.check_output(command) result = out.split(b" ")[1] try: return int(result) except ValueError: return result
[ "def", "sysctl", "(", "command", ")", ":", "out", "=", "subprocess", ".", "check_output", "(", "command", ")", "result", "=", "out", ".", "split", "(", "b\" \"", ")", "[", "1", "]", "try", ":", "return", "int", "(", "result", ")", "except", "ValueError", ":", "return", "result" ]
Run a sysctl command and parse the output. Args: command: A sysctl command with an argument, for example, ["sysctl", "hw.memsize"]. Returns: The parsed output.
[ "Run", "a", "sysctl", "command", "and", "parse", "the", "output", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L341-L356
train
Run a sysctl command and parse the output.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,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mV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b101100 + 0o12) + '\x35', 55703 - 55695), ehT0Px3KOsy9(chr(48) + chr(11048 - 10937) + chr(453 - 403) + chr(54) + '\060', 1625 - 1617), ehT0Px3KOsy9(chr(0b11 + 0o55) + '\157' + '\x33' + chr(51) + chr(53), 0o10), ehT0Px3KOsy9(chr(2013 - 1965) + chr(1357 - 1246) + '\x35' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100001 + 0o16) + chr(49) + chr(53) + chr(55), 13038 - 13030), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1417 - 1367) + '\060' + chr(1880 - 1832), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1100111 + 0o10) + chr(50) + chr(53) + '\064', 40774 - 40766), ehT0Px3KOsy9(chr(48) + '\157' + chr(55) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(1538 - 1490) + chr(1297 - 1186) + chr(0b110011) + chr(48) + chr(0b100 + 0o55), 0b1000), ehT0Px3KOsy9('\x30' + chr(10680 - 10569) + '\061' + chr(0b110000) + '\x33', 44179 - 44171), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32' + '\x30' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(2050 - 2002) + chr(111) + '\x31' + chr(0b110001), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110011) + chr(0b11111 + 0o22), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1100010 + 0o15) + chr(49) + '\066' + '\x35', 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110010) + chr(1717 - 1664), 0b1000), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(0b100000 + 0o117) + chr(0b100111 + 0o13) + chr(0b100 + 0o60) + '\x36', 12100 - 12092), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b101110 + 0o101) + chr(54) + chr(49), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b110101 + 0o72) + chr(0b110001) + chr(0b100111 + 0o15) + chr(0b110000), 13322 - 13314), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x33' + chr(49) + chr(716 - 661), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51) + chr(285 - 237) + '\062', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(0b110000 + 0o3) + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(0b110011) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b101011 + 0o5) + '\157' + chr(51) + chr(55) + chr(0b11101 + 0o27), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1010010 + 0o35) + chr(0b110001) + '\063' + chr(780 - 731), 58414 - 58406), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + '\066' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(2223 - 2175) + '\157' + chr(51) + chr(54) + chr(0b101110 + 0o2), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(0b100011 + 0o20) + '\x34', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2570 - 2519) + chr(0b110 + 0o56) + chr(1372 - 1323), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(2142 - 2090) + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(5947 - 5836) + chr(0b110001) + chr(51) + chr(54), 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(797 - 747) + '\063' + chr(54), 0b1000), ehT0Px3KOsy9('\060' + chr(1753 - 1642) + chr(547 - 497) + chr(51) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(0b1000110 + 0o51) + '\x31' + chr(52) + chr(1680 - 1628), 57202 - 57194), ehT0Px3KOsy9(chr(0b110000) + chr(0b100110 + 0o111) + chr(0b110010) + '\064', 0o10), ehT0Px3KOsy9(chr(923 - 875) + chr(0b10100 + 0o133) + '\062' + chr(0b10001 + 0o40) + chr(0b11 + 0o62), 15068 - 15060), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + chr(0b10 + 0o62) + '\067', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + chr(0b110100), 8), ehT0Px3KOsy9('\x30' + chr(2304 - 2193) + chr(0b100001 + 0o20) + chr(52) + chr(595 - 547), 8), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110001) + '\x32' + '\067', 0o10), ehT0Px3KOsy9('\060' + chr(111) + chr(2265 - 2216) + chr(1524 - 1471) + chr(48), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\157' + chr(857 - 804) + chr(48), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'['), chr(100) + chr(0b1011111 + 0o6) + '\143' + '\x6f' + '\144' + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(1856 - 1800)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def Z_2Tu8Pw8Jnh(CVh_Z3xeqjku): UkrMp_I0RDmo = SorA9b5x63bd.check_output(CVh_Z3xeqjku) ShZmEKfTkAOZ = UkrMp_I0RDmo.split(SXOLrMavuUCe(b'U'))[ehT0Px3KOsy9(chr(0b101 + 0o53) + '\157' + chr(0b101111 + 0o2), 0o10)] try: return ehT0Px3KOsy9(ShZmEKfTkAOZ) except q1QCh3W88sgk: return ShZmEKfTkAOZ
ray-project/ray
python/ray/utils.py
get_system_memory
def get_system_memory(): """Return the total amount of system memory in bytes. Returns: The total amount of system memory in bytes. """ # Try to accurately figure out the memory limit if we are in a docker # container. Note that this file is not specific to Docker and its value is # often much larger than the actual amount of memory. docker_limit = None memory_limit_filename = "/sys/fs/cgroup/memory/memory.limit_in_bytes" if os.path.exists(memory_limit_filename): with open(memory_limit_filename, "r") as f: docker_limit = int(f.read()) # Use psutil if it is available. psutil_memory_in_bytes = None try: import psutil psutil_memory_in_bytes = psutil.virtual_memory().total except ImportError: pass if psutil_memory_in_bytes is not None: memory_in_bytes = psutil_memory_in_bytes elif sys.platform == "linux" or sys.platform == "linux2": # Handle Linux. bytes_in_kilobyte = 1024 memory_in_bytes = vmstat("total memory") * bytes_in_kilobyte else: # Handle MacOS. memory_in_bytes = sysctl(["sysctl", "hw.memsize"]) if docker_limit is not None: return min(docker_limit, memory_in_bytes) else: return memory_in_bytes
python
def get_system_memory(): """Return the total amount of system memory in bytes. Returns: The total amount of system memory in bytes. """ # Try to accurately figure out the memory limit if we are in a docker # container. Note that this file is not specific to Docker and its value is # often much larger than the actual amount of memory. docker_limit = None memory_limit_filename = "/sys/fs/cgroup/memory/memory.limit_in_bytes" if os.path.exists(memory_limit_filename): with open(memory_limit_filename, "r") as f: docker_limit = int(f.read()) # Use psutil if it is available. psutil_memory_in_bytes = None try: import psutil psutil_memory_in_bytes = psutil.virtual_memory().total except ImportError: pass if psutil_memory_in_bytes is not None: memory_in_bytes = psutil_memory_in_bytes elif sys.platform == "linux" or sys.platform == "linux2": # Handle Linux. bytes_in_kilobyte = 1024 memory_in_bytes = vmstat("total memory") * bytes_in_kilobyte else: # Handle MacOS. memory_in_bytes = sysctl(["sysctl", "hw.memsize"]) if docker_limit is not None: return min(docker_limit, memory_in_bytes) else: return memory_in_bytes
[ "def", "get_system_memory", "(", ")", ":", "# Try to accurately figure out the memory limit if we are in a docker", "# container. Note that this file is not specific to Docker and its value is", "# often much larger than the actual amount of memory.", "docker_limit", "=", "None", "memory_limit_filename", "=", "\"/sys/fs/cgroup/memory/memory.limit_in_bytes\"", "if", "os", ".", "path", ".", "exists", "(", "memory_limit_filename", ")", ":", "with", "open", "(", "memory_limit_filename", ",", "\"r\"", ")", "as", "f", ":", "docker_limit", "=", "int", "(", "f", ".", "read", "(", ")", ")", "# Use psutil if it is available.", "psutil_memory_in_bytes", "=", "None", "try", ":", "import", "psutil", "psutil_memory_in_bytes", "=", "psutil", ".", "virtual_memory", "(", ")", ".", "total", "except", "ImportError", ":", "pass", "if", "psutil_memory_in_bytes", "is", "not", "None", ":", "memory_in_bytes", "=", "psutil_memory_in_bytes", "elif", "sys", ".", "platform", "==", "\"linux\"", "or", "sys", ".", "platform", "==", "\"linux2\"", ":", "# Handle Linux.", "bytes_in_kilobyte", "=", "1024", "memory_in_bytes", "=", "vmstat", "(", "\"total memory\"", ")", "*", "bytes_in_kilobyte", "else", ":", "# Handle MacOS.", "memory_in_bytes", "=", "sysctl", "(", "[", "\"sysctl\"", ",", "\"hw.memsize\"", "]", ")", "if", "docker_limit", "is", "not", "None", ":", "return", "min", "(", "docker_limit", ",", "memory_in_bytes", ")", "else", ":", "return", "memory_in_bytes" ]
Return the total amount of system memory in bytes. Returns: The total amount of system memory in bytes.
[ "Return", "the", "total", "amount", "of", "system", "memory", "in", "bytes", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L359-L395
train
Return the total amount of system memory in bytes.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59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ionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\157' + chr(0b110010) + '\062' + '\066', 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(111) + '\063' + chr(2097 - 2044) + chr(2528 - 2473), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(54) + '\067', 0b1000), ehT0Px3KOsy9(chr(816 - 768) + chr(0b1010110 + 0o31) + chr(0b101111 + 0o4) + chr(0b110001) + chr(54), 0o10), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b1101111) + chr(49) + chr(0b100000 + 0o23) + chr(1750 - 1695), 0b1000), ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(111) + chr(0b10110 + 0o40), 13017 - 13009), ehT0Px3KOsy9(chr(0b110000) + chr(2527 - 2416) + chr(937 - 887) + chr(2099 - 2051) + chr(52), 7209 - 7201), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100101 + 0o15) + '\x31' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(111) + '\x33' + chr(0b101000 + 0o15) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + chr(0b11101 + 0o30), 26109 - 26101), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110010) + chr(0b110101) + chr(0b110111), 36431 - 36423), ehT0Px3KOsy9('\x30' + chr(111) + '\x33' + chr(822 - 768) + chr(0b11100 + 0o31), 0o10), ehT0Px3KOsy9(chr(2273 - 2225) + '\157' + chr(0b110000 + 0o3) + chr(0b110111) + chr(2178 - 2124), 19295 - 19287), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(48), 0o10), ehT0Px3KOsy9('\060' + chr(0b11101 + 0o122) + chr(52) + '\063', 0b1000), ehT0Px3KOsy9('\x30' + chr(6271 - 6160) + '\x31' + chr(0b100000 + 0o25) + chr(64 - 14), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + chr(0b101 + 0o54) + chr(1487 - 1439), 0o10), ehT0Px3KOsy9(chr(476 - 428) + chr(0b1101111) + chr(1517 - 1464) + chr(0b11011 + 0o25), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(50) + chr(0b110000) + chr(0b1001 + 0o53), 8), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\157' + '\x32' + '\065' + '\065', 18212 - 18204), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b11000 + 0o33) + '\067' + '\x32', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001000 + 0o47) + chr(51) + chr(1226 - 1172), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110000 + 0o4) + chr(2139 - 2084), 0b1000), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\x6f' + chr(679 - 630) + chr(50) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\x6f' + '\062' + chr(0b110110) + chr(130 - 75), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101101 + 0o2) + chr(608 - 559) + '\x34' + chr(0b110000), 0b1000), ehT0Px3KOsy9('\x30' + chr(6944 - 6833) + chr(0b101110 + 0o3) + chr(1498 - 1449) + chr(1371 - 1318), 28819 - 28811), ehT0Px3KOsy9(chr(0b110000) + chr(10083 - 9972) + chr(50) + chr(1655 - 1603) + chr(55), 39795 - 39787), ehT0Px3KOsy9('\060' + chr(111) + chr(0b10011 + 0o40) + chr(53) + '\065', 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(9293 - 9182) + chr(0b110001) + '\x37' + chr(54), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b11001 + 0o30) + '\x32' + chr(0b101 + 0o53), 0o10), ehT0Px3KOsy9(chr(1057 - 1009) + chr(111) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(348 - 298) + chr(0b110100) + '\062', 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\062' + chr(48) + '\062', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\061' + chr(769 - 716) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b11110 + 0o22) + '\x6f' + '\x32' + '\x36' + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(49) + '\x31' + chr(0b11100 + 0o32), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b111 + 0o53) + chr(636 - 581) + chr(0b110000), 55701 - 55693), ehT0Px3KOsy9('\060' + chr(111) + chr(53), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\157' + chr(53) + '\x30', 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8'), chr(100) + chr(0b1100101) + chr(99) + '\157' + '\x64' + '\145')(chr(117) + chr(0b1010011 + 0o41) + '\x66' + chr(45) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def IpJ3IjPKNz0u(): mWLu9c4nVpBc = None W3XupsyenAtx = xafqLlk3kkUe(SXOLrMavuUCe(b'\xb9\x9cN\xbdp`\xf7\xa6\x89z\xdd\x9a\x8bp\x0c\x07\xadE\xeb\xdf\x831J2\xda\x0f?\xde\xc3\x129nq\xd6\xdd\x02\xdc\x11\xda|\xe2\x8aD'), chr(100) + chr(0b1100101) + chr(99) + '\157' + '\x64' + '\145')(chr(117) + chr(116) + chr(3807 - 3705) + '\055' + '\070') if xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3\x97^\xbd+u'), chr(0b1100100) + chr(0b1110 + 0o127) + '\143' + chr(0b100011 + 0o114) + '\144' + chr(101))('\x75' + '\164' + chr(0b110110 + 0o60) + chr(45) + chr(0b111000)))(W3XupsyenAtx): with _fwkIVCGgtAN(W3XupsyenAtx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4'), '\x64' + chr(9307 - 9206) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1000111 + 0o36))(chr(0b1001010 + 0o53) + chr(7542 - 7426) + '\x66' + chr(0b101101) + chr(0b111000))) as EGyt1xfPT1P6: mWLu9c4nVpBc = ehT0Px3KOsy9(EGyt1xfPT1P6.U6MiWrhuCi2Y()) br63SiCkk5rA = None try: (wte6emDoiasB,) = (jFWsnpHpAUWz(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6\x9cB\xba6j'), chr(100) + chr(101) + '\x63' + '\157' + '\x64' + '\x65')(chr(8023 - 7906) + chr(116) + chr(7626 - 7524) + chr(0b100010 + 0o13) + '\x38')),) br63SiCkk5rA = wte6emDoiasB.virtual_memory().K6dkrI1oAm5b except yROw0HWBk0Qc: pass if br63SiCkk5rA is not None: rnLhkW5DJ2Cp = br63SiCkk5rA elif xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6\x83V\xba9i\xf6\xe4'), '\144' + '\x65' + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(0b1110101) + '\164' + chr(1608 - 1506) + chr(464 - 419) + '\070')) == xafqLlk3kkUe(SXOLrMavuUCe(b"\xfa\x86Y\xbb'"), chr(9296 - 9196) + chr(0b1100101) + '\x63' + chr(0b1011001 + 0o26) + chr(0b11000 + 0o114) + chr(6593 - 6492))('\165' + chr(0b1110100) + chr(8787 - 8685) + chr(1751 - 1706) + '\x38') or xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6\x83V\xba9i\xf6\xe4'), '\144' + chr(0b1100101) + chr(99) + chr(5904 - 5793) + '\144' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(2039 - 1937) + chr(0b101101) + '\070')) == xafqLlk3kkUe(SXOLrMavuUCe(b"\xfa\x86Y\xbb'4"), '\x64' + chr(0b100111 + 0o76) + '\x63' + chr(111) + chr(0b100001 + 0o103) + chr(0b1100101))(chr(11644 - 11527) + chr(116) + chr(102) + chr(745 - 700) + chr(56)): OmLw1PIIEVUT = ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + chr(684 - 636) + '\060' + chr(48), 0b1000) rnLhkW5DJ2Cp = wS9ieCGVS8F5(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe2\x80C\xaf3&\xe9\xec\x87r\xdd\x8c'), chr(100) + '\145' + '\143' + '\157' + chr(0b1110 + 0o126) + chr(3314 - 3213))('\x75' + '\x74' + chr(9943 - 9841) + '\055' + chr(0b1010 + 0o56))) * OmLw1PIIEVUT else: rnLhkW5DJ2Cp = Z_2Tu8Pw8Jnh([xafqLlk3kkUe(SXOLrMavuUCe(b'\xe5\x96D\xad+j'), chr(5682 - 5582) + chr(0b1010 + 0o133) + '\x63' + chr(111) + '\x64' + '\x65')(chr(0b1110101) + chr(11870 - 11754) + chr(4440 - 4338) + chr(45) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xfe\x98\x19\xa3:k\xf7\xe0\x90x'), '\144' + '\x65' + chr(99) + chr(111) + chr(100) + chr(0b111011 + 0o52))('\165' + chr(116) + '\x66' + '\055' + chr(0b100001 + 0o27))]) if mWLu9c4nVpBc is not None: return Dx22bkKPdt5d(mWLu9c4nVpBc, rnLhkW5DJ2Cp) else: return rnLhkW5DJ2Cp
ray-project/ray
python/ray/utils.py
get_shared_memory_bytes
def get_shared_memory_bytes(): """Get the size of the shared memory file system. Returns: The size of the shared memory file system in bytes. """ # Make sure this is only called on Linux. assert sys.platform == "linux" or sys.platform == "linux2" shm_fd = os.open("/dev/shm", os.O_RDONLY) try: shm_fs_stats = os.fstatvfs(shm_fd) # The value shm_fs_stats.f_bsize is the block size and the # value shm_fs_stats.f_bavail is the number of available # blocks. shm_avail = shm_fs_stats.f_bsize * shm_fs_stats.f_bavail finally: os.close(shm_fd) return shm_avail
python
def get_shared_memory_bytes(): """Get the size of the shared memory file system. Returns: The size of the shared memory file system in bytes. """ # Make sure this is only called on Linux. assert sys.platform == "linux" or sys.platform == "linux2" shm_fd = os.open("/dev/shm", os.O_RDONLY) try: shm_fs_stats = os.fstatvfs(shm_fd) # The value shm_fs_stats.f_bsize is the block size and the # value shm_fs_stats.f_bavail is the number of available # blocks. shm_avail = shm_fs_stats.f_bsize * shm_fs_stats.f_bavail finally: os.close(shm_fd) return shm_avail
[ "def", "get_shared_memory_bytes", "(", ")", ":", "# Make sure this is only called on Linux.", "assert", "sys", ".", "platform", "==", "\"linux\"", "or", "sys", ".", "platform", "==", "\"linux2\"", "shm_fd", "=", "os", ".", "open", "(", "\"/dev/shm\"", ",", "os", ".", "O_RDONLY", ")", "try", ":", "shm_fs_stats", "=", "os", ".", "fstatvfs", "(", "shm_fd", ")", "# The value shm_fs_stats.f_bsize is the block size and the", "# value shm_fs_stats.f_bavail is the number of available", "# blocks.", "shm_avail", "=", "shm_fs_stats", ".", "f_bsize", "*", "shm_fs_stats", ".", "f_bavail", "finally", ":", "os", ".", "close", "(", "shm_fd", ")", "return", "shm_avail" ]
Get the size of the shared memory file system. Returns: The size of the shared memory file system in bytes.
[ "Get", "the", "size", "of", "the", "shared", "memory", "file", "system", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L398-L417
train
Get the size of the shared memory file system in bytes.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRr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Ej,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + chr(0b1001011 + 0o44) + chr(49) + chr(0b110110) + '\060', 0b1000), ehT0Px3KOsy9(chr(1568 - 1520) + chr(0b1101111) + chr(0b11001 + 0o30) + '\x34' + '\x33', 21009 - 21001), ehT0Px3KOsy9('\x30' + chr(0b10010 + 0o135) + chr(0b1010 + 0o47) + chr(0b110110), 40767 - 40759), ehT0Px3KOsy9('\060' + '\x6f' + '\x32' + '\063', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b10111 + 0o130) + chr(620 - 569) + '\064', 940 - 932), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + '\x36' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + '\x6f' + '\x33' + '\x37' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x31' + chr(2162 - 2113) + '\060', ord("\x08")), ehT0Px3KOsy9(chr(1551 - 1503) + '\x6f' + '\063' + chr(405 - 350) + '\067', 8), ehT0Px3KOsy9('\x30' + chr(5453 - 5342) + chr(1654 - 1604) + chr(50) + chr(0b11001 + 0o32), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110011) + '\x37' + chr(0b110111), 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(655 - 600) + chr(53), 0o10), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(111) + chr(1858 - 1807) + chr(48) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + chr(53) + chr(0b1011 + 0o51), ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\x6f' + chr(0b110110) + '\x36', 0o10), ehT0Px3KOsy9('\x30' + chr(10059 - 9948) + chr(51) + '\x36' + chr(0b1110 + 0o43), 0b1000), ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\157' + chr(695 - 644) + chr(183 - 135) + chr(48), 28473 - 28465), ehT0Px3KOsy9(chr(2140 - 2092) + chr(0b1101111) + chr(0b10010 + 0o37) + chr(229 - 181) + chr(0b101 + 0o56), 23432 - 23424), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(49) + chr(0b1001 + 0o52) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b10011 + 0o134) + '\x31' + chr(1088 - 1036) + '\066', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(1979 - 1928) + '\066' + '\067', 22077 - 22069), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(111) + '\063' + chr(55) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1000010 + 0o55) + chr(0b10011 + 0o36) + '\065', 46302 - 46294), ehT0Px3KOsy9('\060' + '\157' + chr(51) + chr(0b10001 + 0o42) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b101001 + 0o7) + chr(111) + '\064' + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(9191 - 9080) + chr(0b110000), 36723 - 36715), ehT0Px3KOsy9(chr(48) + chr(1471 - 1360) + chr(0b110010) + chr(55) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10010 + 0o40) + chr(0b110000) + chr(0b110011), 52654 - 52646), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + '\060' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(491 - 441) + chr(0b11101 + 0o26), 8), ehT0Px3KOsy9(chr(975 - 927) + chr(5006 - 4895) + chr(49) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1001100 + 0o43) + chr(2017 - 1966) + chr(2660 - 2606) + chr(0b1110 + 0o50), 0o10), ehT0Px3KOsy9(chr(0b101110 + 0o2) + '\157' + chr(0b110011) + chr(49) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1000000 + 0o57) + chr(0b11000 + 0o32) + chr(1896 - 1842) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b100010 + 0o16) + '\157' + chr(1380 - 1331) + chr(0b110111) + '\x34', 0o10), ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\x6f' + chr(0b101100 + 0o10) + chr(53), 8), ehT0Px3KOsy9('\x30' + chr(111) + chr(52) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110110) + chr(1442 - 1387), 10405 - 10397), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(111) + chr(2577 - 2526) + chr(0b110000) + chr(0b110101), 34870 - 34862), ehT0Px3KOsy9('\060' + chr(111) + '\x37' + chr(0b10001 + 0o40), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b10001 + 0o37) + chr(0b1001001 + 0o46) + chr(0b110101) + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'^'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(0b1001000 + 0o55) + '\164' + '\146' + '\055' + chr(1755 - 1699)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def CndGPUrSxQvF(): assert xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\x00\x0fogz\xdb\x8d%'), '\x64' + chr(0b1100011 + 0o2) + '\x63' + '\x6f' + '\144' + chr(0b11000 + 0o115))(chr(117) + chr(0b1110100) + '\x66' + chr(646 - 601) + chr(56))) == xafqLlk3kkUe(SXOLrMavuUCe(b'\x1c\n`fd'), chr(0b1001011 + 0o31) + chr(0b1100101) + chr(0b1100011) + chr(465 - 354) + chr(100) + '\x65')('\165' + '\164' + chr(0b1100101 + 0o1) + chr(396 - 351) + '\070') or xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\x00\x0fogz\xdb\x8d%'), chr(8663 - 8563) + '\x65' + '\143' + chr(111) + chr(3636 - 3536) + chr(101))(chr(117) + chr(116) + chr(0b1100110) + chr(690 - 645) + chr(56))) == xafqLlk3kkUe(SXOLrMavuUCe(b'\x1c\n`fd\x86'), chr(0b1100100) + '\145' + chr(99) + chr(1143 - 1032) + chr(4759 - 4659) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1000110 + 0o40) + '\055' + '\070') UY1UHbLSzfKW = oqhJDdMJfuwx.open(xafqLlk3kkUe(SXOLrMavuUCe(b'_\x07ke3\xc7\x97%'), chr(0b1100100) + chr(0b1100101) + chr(0b111101 + 0o46) + chr(111) + '\x64' + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(0b1011 + 0o42) + '\x38'), oqhJDdMJfuwx.O_RDONLY) try: Y__DW_sdML63 = oqhJDdMJfuwx.fstatvfs(UY1UHbLSzfKW) acw8RgEADORa = Y__DW_sdML63.f_bsize * Y__DW_sdML63.f_bavail finally: xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\x13\x0fa`y'), chr(2243 - 2143) + chr(0b1011101 + 0o10) + chr(99) + chr(0b1101111 + 0o0) + chr(1659 - 1559) + '\x65')(chr(117) + chr(9860 - 9744) + chr(0b100101 + 0o101) + '\x2d' + '\x38'))(UY1UHbLSzfKW) return acw8RgEADORa
ray-project/ray
python/ray/utils.py
check_oversized_pickle
def check_oversized_pickle(pickled, name, obj_type, worker): """Send a warning message if the pickled object is too large. Args: pickled: the pickled object. name: name of the pickled object. obj_type: type of the pickled object, can be 'function', 'remote function', 'actor', or 'object'. worker: the worker used to send warning message. """ length = len(pickled) if length <= ray_constants.PICKLE_OBJECT_WARNING_SIZE: return warning_message = ( "Warning: The {} {} has size {} when pickled. " "It will be stored in Redis, which could cause memory issues. " "This may mean that its definition uses a large array or other object." ).format(obj_type, name, length) push_error_to_driver( worker, ray_constants.PICKLING_LARGE_OBJECT_PUSH_ERROR, warning_message, driver_id=worker.task_driver_id)
python
def check_oversized_pickle(pickled, name, obj_type, worker): """Send a warning message if the pickled object is too large. Args: pickled: the pickled object. name: name of the pickled object. obj_type: type of the pickled object, can be 'function', 'remote function', 'actor', or 'object'. worker: the worker used to send warning message. """ length = len(pickled) if length <= ray_constants.PICKLE_OBJECT_WARNING_SIZE: return warning_message = ( "Warning: The {} {} has size {} when pickled. " "It will be stored in Redis, which could cause memory issues. " "This may mean that its definition uses a large array or other object." ).format(obj_type, name, length) push_error_to_driver( worker, ray_constants.PICKLING_LARGE_OBJECT_PUSH_ERROR, warning_message, driver_id=worker.task_driver_id)
[ "def", "check_oversized_pickle", "(", "pickled", ",", "name", ",", "obj_type", ",", "worker", ")", ":", "length", "=", "len", "(", "pickled", ")", "if", "length", "<=", "ray_constants", ".", "PICKLE_OBJECT_WARNING_SIZE", ":", "return", "warning_message", "=", "(", "\"Warning: The {} {} has size {} when pickled. \"", "\"It will be stored in Redis, which could cause memory issues. \"", "\"This may mean that its definition uses a large array or other object.\"", ")", ".", "format", "(", "obj_type", ",", "name", ",", "length", ")", "push_error_to_driver", "(", "worker", ",", "ray_constants", ".", "PICKLING_LARGE_OBJECT_PUSH_ERROR", ",", "warning_message", ",", "driver_id", "=", "worker", ".", "task_driver_id", ")" ]
Send a warning message if the pickled object is too large. Args: pickled: the pickled object. name: name of the pickled object. obj_type: type of the pickled object, can be 'function', 'remote function', 'actor', or 'object'. worker: the worker used to send warning message.
[ "Send", "a", "warning", "message", "if", "the", "pickled", "object", "is", "too", "large", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L420-L442
train
Send a warning message if the pickled object is too large.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OT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4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + chr(2841 - 2787) + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(219 - 169) + chr(49) + chr(312 - 259), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(2153 - 2042) + chr(521 - 471) + chr(0b111 + 0o51) + chr(0b110111), 0b1000), ehT0Px3KOsy9('\x30' + chr(2716 - 2605) + chr(49) + chr(1299 - 1251) + chr(0b110101), 14281 - 14273), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + '\067' + chr(0b101100 + 0o4), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(2236 - 2187) + chr(1250 - 1200), 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(0b111001 + 0o66) + chr(0b110010) + chr(0b100010 + 0o21) + '\x33', 0o10), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(55) + '\x30', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(51) + '\067' + '\063', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\x31' + chr(0b1110 + 0o42) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110111) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(9511 - 9400) + '\066' + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b1101111) + chr(649 - 600) + chr(0b1001 + 0o52) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\062' + chr(51) + '\x37', 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110000) + chr(0b11100 + 0o32), 31794 - 31786), ehT0Px3KOsy9(chr(1253 - 1205) + '\x6f' + '\x31' + chr(497 - 448) + '\060', 0b1000), ehT0Px3KOsy9(chr(265 - 217) + chr(5571 - 5460) + chr(51) + chr(0b111 + 0o56) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(48) + chr(2807 - 2696) + '\065' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1116 - 1066) + '\x35' + chr(1131 - 1079), 64730 - 64722), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + chr(0b10 + 0o60) + chr(1536 - 1481), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x32' + chr(49) + chr(1632 - 1581), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100101 + 0o12) + chr(49) + '\x35' + chr(54), 0o10), ehT0Px3KOsy9(chr(484 - 436) + '\157' + chr(0b110001) + chr(49) + chr(50), 0b1000), ehT0Px3KOsy9(chr(1675 - 1627) + '\x6f' + '\061' + '\061' + '\066', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b111 + 0o55) + chr(0b100 + 0o61), ord("\x08")), ehT0Px3KOsy9('\060' + chr(1775 - 1664) + chr(50) + chr(0b110001) + '\065', 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11011 + 0o32) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b10110 + 0o34) + '\066' + chr(1296 - 1248), 15590 - 15582), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(0b1000 + 0o147) + chr(1024 - 975) + chr(0b1110 + 0o42), ord("\x08")), ehT0Px3KOsy9(chr(2261 - 2213) + chr(231 - 120) + chr(0b110001) + '\x33' + chr(2800 - 2745), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(0b110000) + chr(0b101111 + 0o7), 8), ehT0Px3KOsy9(chr(1310 - 1262) + chr(0b11110 + 0o121) + chr(0b110011) + '\x30' + chr(1021 - 972), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31' + '\065', 0b1000), ehT0Px3KOsy9(chr(48) + chr(3653 - 3542) + '\x36' + chr(0b110100), 0b1000), ehT0Px3KOsy9('\060' + chr(2676 - 2565) + '\x33' + chr(0b101000 + 0o14) + '\x35', 32809 - 32801), ehT0Px3KOsy9(chr(0b1010 + 0o46) + '\x6f' + '\062' + '\x31', 729 - 721), ehT0Px3KOsy9('\x30' + chr(111) + '\061' + '\065' + chr(0b0 + 0o66), 8), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(0b1101111) + chr(0b110001) + chr(0b10001 + 0o42) + '\060', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b101110 + 0o5) + chr(0b110011) + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1993 - 1944) + '\x31' + chr(0b110001), 48990 - 48982)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\x6f' + chr(53) + chr(0b100010 + 0o16), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d'), chr(0b1100 + 0o130) + chr(0b1100101) + chr(3861 - 3762) + chr(12228 - 12117) + '\144' + chr(101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(730 - 685) + chr(0b1011 + 0o55)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def RqPPdON0YPTw(_QjyuKWXDi7f, AIvJRzLdDfgF, AiL588GJWqhm, sijXcSaDomT1): CHAOgk5VCHH_ = c2A0yzQpDQB3(_QjyuKWXDi7f) if CHAOgk5VCHH_ <= xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3\xc4\xc4\x0e4O\xc4\xb7\xb9\n\x7fu\n\xc0\xd1\t\xbdf\xe5\x19\xcc1\x19\x07\x7f\xc8'), chr(0b1011000 + 0o14) + chr(9490 - 9389) + chr(5901 - 5802) + chr(0b11000 + 0o127) + chr(100) + chr(101))(chr(5002 - 4885) + chr(116) + chr(0b11010 + 0o114) + '\055' + chr(573 - 517))): return sPiBehXH7FFn = xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4\xec\xf5+\x11d\xfc\xc2\xdb\x14RS~\xe4\xfbh\x94U\x8c?\xea\x1dj=L\xf7N\x90s"\xa6\xb6eQ\x8b1\x1e1\xba"\xdf\xe8\xe3kXC\xef\xd8\x8c)VZ~\xfd\xe3h\x9c\\\xc3%\xee\nj\'K\xady\xd5l6\xf5\xed-C\x8dx\r0\xf9*\xdc\xf8\xeb!Xi\xfa\x8d\x88%\x1a[;\xf2\xe9:\x96\x08\xc5$\xf8\x1b/=\x0b\xad\x7f\xd8a,\xa6\xaclM\xc5|\x0b9\xb7i\xc7\xe5\xe61Xc\xef\x8b\xdb$_P7\xf1\xef<\x86G\xc2w\xfe\x1d/=\x05\xec\x0b\xdci-\xe1\xa4-U\x97c\x0f!\xf9&\xc1\xad\xe81\x10o\xe9\xd8\x94"PS=\xeb\xa8'), chr(0b10001 + 0o123) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(5091 - 4991) + chr(0b1100101))('\x75' + chr(1182 - 1066) + chr(0b10011 + 0o123) + chr(0b1001 + 0o44) + chr(56)).V4roHaS3Ppej(AiL588GJWqhm, AIvJRzLdDfgF, CHAOgk5VCHH_) U7inP4FvjmBA(sijXcSaDomT1, xafqLlk3kkUe(NAlxrfaLQgar, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3\xc4\xc4\x0e4C\xd5\xbf\xa4\x0c{d\x19\xda\xd9\x07\xadb\xe9\x14\xdf1\x1a\x1bv\xc5t\xf5Z\r\xc9\x93'), '\144' + chr(0b1100101) + '\143' + '\x6f' + chr(0b1100100) + '\145')(chr(4172 - 4055) + chr(9832 - 9716) + chr(740 - 638) + '\055' + chr(1573 - 1517))), sPiBehXH7FFn, driver_id=xafqLlk3kkUe(sijXcSaDomT1, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8\xc6\xd2\x03"|\xe1\xca\xbc1NE'), chr(0b1000100 + 0o40) + chr(101) + '\x63' + chr(9413 - 9302) + chr(2051 - 1951) + chr(376 - 275))('\165' + chr(0b11001 + 0o133) + '\x66' + '\055' + chr(0b1011 + 0o55))))
ray-project/ray
python/ray/utils.py
thread_safe_client
def thread_safe_client(client, lock=None): """Create a thread-safe proxy which locks every method call for the given client. Args: client: the client object to be guarded. lock: the lock object that will be used to lock client's methods. If None, a new lock will be used. Returns: A thread-safe proxy for the given client. """ if lock is None: lock = threading.Lock() return _ThreadSafeProxy(client, lock)
python
def thread_safe_client(client, lock=None): """Create a thread-safe proxy which locks every method call for the given client. Args: client: the client object to be guarded. lock: the lock object that will be used to lock client's methods. If None, a new lock will be used. Returns: A thread-safe proxy for the given client. """ if lock is None: lock = threading.Lock() return _ThreadSafeProxy(client, lock)
[ "def", "thread_safe_client", "(", "client", ",", "lock", "=", "None", ")", ":", "if", "lock", "is", "None", ":", "lock", "=", "threading", ".", "Lock", "(", ")", "return", "_ThreadSafeProxy", "(", "client", ",", "lock", ")" ]
Create a thread-safe proxy which locks every method call for the given client. Args: client: the client object to be guarded. lock: the lock object that will be used to lock client's methods. If None, a new lock will be used. Returns: A thread-safe proxy for the given client.
[ "Create", "a", "thread", "-", "safe", "proxy", "which", "locks", "every", "method", "call", "for", "the", "given", "client", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L482-L496
train
Create a thread - safe proxy for the given client.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjvOU1ufVC,hOkXjmluKZfJ,q1QCh3W88sgk,TLbJ60djyws0,rIcPej9ZqM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KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110011) + '\x30', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\063' + chr(0b100111 + 0o13) + '\x32', 36255 - 36247), ehT0Px3KOsy9('\x30' + '\x6f' + chr(49) + chr(0b110000 + 0o0) + chr(48), 40861 - 40853), ehT0Px3KOsy9(chr(68 - 20) + chr(0b1101111) + '\063' + chr(0b1100 + 0o46) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b101001 + 0o106) + chr(50) + chr(734 - 680) + chr(827 - 779), 0b1000), ehT0Px3KOsy9(chr(2115 - 2067) + '\x6f' + '\063' + chr(0b11110 + 0o23) + '\061', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b1001 + 0o51) + chr(0b110001) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1010 + 0o145) + '\067' + chr(2109 - 2058), 44378 - 44370), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + chr(0b110011) + '\x34', 62818 - 62810), ehT0Px3KOsy9(chr(48) + chr(111) + chr(54) + '\066', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b11000 + 0o33) + '\060' + chr(1038 - 990), 0o10), ehT0Px3KOsy9(chr(441 - 393) + chr(0b1101111) + '\061' + chr(1167 - 1116) + chr(0b0 + 0o66), 26597 - 26589), ehT0Px3KOsy9('\x30' + '\157' + '\x32' + chr(2229 - 2180) + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b111100 + 0o63) + '\061' + chr(432 - 384) + chr(0b11100 + 0o32), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110011) + chr(50) + chr(0b100001 + 0o26), ord("\x08")), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\157' + chr(51) + '\066' + chr(0b11010 + 0o33), 22560 - 22552), ehT0Px3KOsy9('\060' + '\x6f' + chr(49) + chr(0b110100) + '\x31', 59677 - 59669), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(0b10101 + 0o37), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + '\x36' + chr(0b100111 + 0o20), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1636 - 1587) + chr(2155 - 2106), 10269 - 10261), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1504 - 1454) + chr(54) + chr(0b10001 + 0o43), ord("\x08")), ehT0Px3KOsy9(chr(1199 - 1151) + chr(0b1101111) + chr(49) + chr(0b11101 + 0o30) + '\x37', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1001 + 0o146) + '\062' + '\x32' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(9740 - 9629) + chr(50) + chr(0b110111) + chr(637 - 587), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\x33' + chr(1441 - 1390) + chr(0b1 + 0o65), ord("\x08")), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + chr(0b110001) + chr(0b10101 + 0o40) + '\x35', 0o10), ehT0Px3KOsy9(chr(102 - 54) + chr(0b10001 + 0o136) + '\061' + chr(50) + '\063', 0o10), ehT0Px3KOsy9(chr(48) + chr(10992 - 10881) + chr(263 - 213) + '\x37' + chr(1604 - 1556), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + '\063' + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(375 - 327) + chr(5494 - 5383) + '\x32' + chr(0b110011), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + '\x33', 0o10), ehT0Px3KOsy9('\060' + chr(9953 - 9842) + chr(49) + chr(1059 - 1004) + chr(761 - 713), 16357 - 16349), ehT0Px3KOsy9(chr(2142 - 2094) + chr(0b10 + 0o155) + '\x32' + '\x34' + '\x32', 12382 - 12374), ehT0Px3KOsy9(chr(0b10101 + 0o33) + chr(111) + chr(0b110001) + chr(48) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b1110 + 0o141) + chr(1379 - 1330) + chr(0b1110 + 0o42) + chr(1391 - 1341), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\066' + chr(2060 - 2005), 8), ehT0Px3KOsy9(chr(0b11001 + 0o27) + '\157' + chr(0b110001) + '\061', 8), ehT0Px3KOsy9(chr(387 - 339) + chr(111) + chr(0b110010) + chr(0b0 + 0o60) + chr(0b11100 + 0o32), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x36' + chr(0b100111 + 0o20), 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + '\x35' + chr(336 - 286), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1793 - 1745) + chr(111) + chr(53) + chr(977 - 929), 669 - 661)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'6'), chr(100) + chr(0b1000 + 0o135) + chr(0b1010100 + 0o17) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(0b1001111 + 0o45) + chr(6006 - 5904) + '\x2d' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def kRv1POBaHLFj(iBSv7CWmC2h1, Y7V80STXAqQ8=None): if Y7V80STXAqQ8 is None: Y7V80STXAqQ8 = mitHeYQsEXej.Lock() return sxQoY3zfn6uZ(iBSv7CWmC2h1, Y7V80STXAqQ8)
ray-project/ray
python/ray/utils.py
try_to_create_directory
def try_to_create_directory(directory_path): """Attempt to create a directory that is globally readable/writable. Args: directory_path: The path of the directory to create. """ logger = logging.getLogger("ray") directory_path = os.path.expanduser(directory_path) if not os.path.exists(directory_path): try: os.makedirs(directory_path) except OSError as e: if e.errno != errno.EEXIST: raise e logger.warning( "Attempted to create '{}', but the directory already " "exists.".format(directory_path)) # Change the log directory permissions so others can use it. This is # important when multiple people are using the same machine. try: os.chmod(directory_path, 0o0777) except OSError as e: # Silently suppress the PermissionError that is thrown by the chmod. # This is done because the user attempting to change the permissions # on a directory may not own it. The chmod is attempted whether the # directory is new or not to avoid race conditions. # ray-project/ray/#3591 if e.errno in [errno.EACCES, errno.EPERM]: pass else: raise
python
def try_to_create_directory(directory_path): """Attempt to create a directory that is globally readable/writable. Args: directory_path: The path of the directory to create. """ logger = logging.getLogger("ray") directory_path = os.path.expanduser(directory_path) if not os.path.exists(directory_path): try: os.makedirs(directory_path) except OSError as e: if e.errno != errno.EEXIST: raise e logger.warning( "Attempted to create '{}', but the directory already " "exists.".format(directory_path)) # Change the log directory permissions so others can use it. This is # important when multiple people are using the same machine. try: os.chmod(directory_path, 0o0777) except OSError as e: # Silently suppress the PermissionError that is thrown by the chmod. # This is done because the user attempting to change the permissions # on a directory may not own it. The chmod is attempted whether the # directory is new or not to avoid race conditions. # ray-project/ray/#3591 if e.errno in [errno.EACCES, errno.EPERM]: pass else: raise
[ "def", "try_to_create_directory", "(", "directory_path", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "\"ray\"", ")", "directory_path", "=", "os", ".", "path", ".", "expanduser", "(", "directory_path", ")", "if", "not", "os", ".", "path", ".", "exists", "(", "directory_path", ")", ":", "try", ":", "os", ".", "makedirs", "(", "directory_path", ")", "except", "OSError", "as", "e", ":", "if", "e", ".", "errno", "!=", "errno", ".", "EEXIST", ":", "raise", "e", "logger", ".", "warning", "(", "\"Attempted to create '{}', but the directory already \"", "\"exists.\"", ".", "format", "(", "directory_path", ")", ")", "# Change the log directory permissions so others can use it. This is", "# important when multiple people are using the same machine.", "try", ":", "os", ".", "chmod", "(", "directory_path", ",", "0o0777", ")", "except", "OSError", "as", "e", ":", "# Silently suppress the PermissionError that is thrown by the chmod.", "# This is done because the user attempting to change the permissions", "# on a directory may not own it. The chmod is attempted whether the", "# directory is new or not to avoid race conditions.", "# ray-project/ray/#3591", "if", "e", ".", "errno", "in", "[", "errno", ".", "EACCES", ",", "errno", ".", "EPERM", "]", ":", "pass", "else", ":", "raise" ]
Attempt to create a directory that is globally readable/writable. Args: directory_path: The path of the directory to create.
[ "Attempt", "to", "create", "a", "directory", "that", "is", "globally", "readable", "/", "writable", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/utils.py#L503-L533
train
Attempt to create a directory that is globally readable or writable.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk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zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b101001 + 0o12) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b10110 + 0o131) + chr(49) + '\x33' + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b110001 + 0o76) + chr(403 - 354) + chr(52), 0b1000), ehT0Px3KOsy9(chr(2025 - 1977) + chr(0b1101111) + '\x31' + '\x36' + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + chr(3308 - 3197) + chr(729 - 680) + '\066' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\157' + chr(0b11101 + 0o26) + chr(0b10101 + 0o36) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(1962 - 1912) + chr(50) + '\x30', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\066' + chr(524 - 474), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + chr(1008 - 959) + chr(0b1010 + 0o50) + chr(48), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100011 + 0o16) + '\x33' + '\x32', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + chr(0b110011) + chr(48), 0o10), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + '\061' + chr(0b110001) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101100 + 0o5) + '\066' + chr(2545 - 2492), 0b1000), ehT0Px3KOsy9(chr(1429 - 1381) + '\x6f' + chr(621 - 572) + chr(0b110010) + '\x32', 2045 - 2037), ehT0Px3KOsy9(chr(0b101100 + 0o4) + '\157' + chr(0b110011) + chr(0b110101) + '\x31', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(611 - 561) + chr(382 - 334) + chr(1433 - 1380), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + chr(0b110010) + chr(2711 - 2657) + '\x33', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b100011 + 0o22), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\063' + '\x34' + chr(0b100110 + 0o20), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(1449 - 1400) + chr(2383 - 2334) + chr(630 - 577), 8), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(0b101011 + 0o104) + chr(747 - 696) + chr(0b110111) + chr(897 - 842), 45558 - 45550), ehT0Px3KOsy9(chr(360 - 312) + chr(0b1101111) + '\061' + '\x36' + chr(0b110100), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\x32' + chr(51) + '\064', 53345 - 53337), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1035 - 986) + chr(51) + chr(2152 - 2102), 8), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + chr(0b110011) + chr(0b10100 + 0o42), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(8180 - 8069) + chr(0b1010 + 0o50) + chr(0b110011) + '\x37', 14356 - 14348), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + '\x32' + '\x36', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b11101 + 0o122) + chr(51) + chr(0b110011) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(642 - 594) + chr(782 - 671) + '\063' + '\x30' + '\061', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + chr(0b110111) + '\064', 0b1000), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(111) + chr(2182 - 2128) + '\x34', 0b1000), ehT0Px3KOsy9(chr(1167 - 1119) + chr(8038 - 7927) + chr(49) + chr(49), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110111) + chr(51), 0o10), ehT0Px3KOsy9('\060' + chr(3453 - 3342) + chr(0b101 + 0o56) + chr(0b110000) + chr(0b110100), 0b1000), ehT0Px3KOsy9('\060' + chr(0b100 + 0o153) + chr(348 - 298) + chr(0b110110) + chr(0b110011), 8), ehT0Px3KOsy9(chr(985 - 937) + chr(0b1101111) + '\063' + '\x30' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + '\x32' + '\x32', 0o10), ehT0Px3KOsy9(chr(686 - 638) + chr(111) + chr(50) + chr(0b10 + 0o61) + chr(0b101010 + 0o6), 8), ehT0Px3KOsy9(chr(0b11011 + 0o25) + '\x6f' + '\x33' + chr(53) + chr(0b10001 + 0o37), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(53) + chr(48), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\157' + '\x35' + '\060', 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf3'), '\x64' + chr(101) + chr(99) + '\x6f' + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def AoJBGyrRhT1x(mS_i0zPU86nL): hdK8qOUhR6Or = UeotCCWOPSQS.getLogger(xafqLlk3kkUe(SXOLrMavuUCe(b'\xaf?u'), '\x64' + chr(6888 - 6787) + chr(0b1111 + 0o124) + chr(111) + chr(179 - 79) + chr(0b1100101))(chr(0b1110101) + chr(7937 - 7821) + chr(5024 - 4922) + chr(45) + chr(0b11100 + 0o34))) mS_i0zPU86nL = oqhJDdMJfuwx.path.expanduser(mS_i0zPU86nL) if not xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8&e\x05\x03\xa9'), chr(100) + chr(101) + '\143' + chr(0b110010 + 0o75) + chr(5944 - 5844) + '\145')(chr(0b1110101) + chr(11379 - 11263) + '\146' + chr(45) + chr(0b111000)))(mS_i0zPU86nL): try: xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb0?g\x13\x13\xb3\xe2A'), '\144' + chr(0b11100 + 0o111) + '\x63' + '\x6f' + chr(1702 - 1602) + '\145')(chr(117) + chr(116) + chr(0b110110 + 0o60) + chr(1336 - 1291) + chr(0b110 + 0o62)))(mS_i0zPU86nL) except KlPSljPzIJ_u as GlnVAPeT6CUe: if xafqLlk3kkUe(GlnVAPeT6CUe, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8,~\x18\x18'), chr(0b1100100) + chr(0b10011 + 0o122) + '\143' + chr(0b11001 + 0o126) + chr(9535 - 9435) + chr(101))(chr(0b101101 + 0o110) + chr(4208 - 4092) + chr(102) + chr(0b1000 + 0o45) + '\070')) != xafqLlk3kkUe(lKz5VhncMjGe, xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\x1bT?$\x8e'), chr(0b111 + 0o135) + chr(101) + chr(4231 - 4132) + chr(0b1011110 + 0o21) + chr(0b1100100) + '\145')(chr(117) + chr(0b10110 + 0o136) + chr(102) + chr(0b1101 + 0o40) + '\x38')): raise GlnVAPeT6CUe xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\xaa?~\x18\x1e\xb4\xf7'), '\144' + chr(0b1100101) + chr(5986 - 5887) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + chr(102) + chr(452 - 407) + '\070'))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9c*x\x13\x1a\xaa\xe4W4z\xec"U1\x9b\xe0\xd2q\x83m\xd8\x0f\xe1}\xf2\xbf\xb4\xaa\xb5\xdc@a^\xe4\xd7\xa9\xa0\xfd\x8b\\\xb2,uV\x16\xb6\xe2W1>\xe1m\x10*\x80\xf6\xc7v\xc8'), chr(617 - 517) + chr(4697 - 4596) + chr(0b101011 + 0o70) + chr(111) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(102) + chr(45) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b"\x8bj~\x19?\xbb\xc3\x01\x00*\xfd'"), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1011110 + 0o7))('\x75' + '\x74' + chr(0b11100 + 0o112) + '\x2d' + chr(0b111000)))(mS_i0zPU86nL)) try: xafqLlk3kkUe(oqhJDdMJfuwx, xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe6a\x19\x13'), chr(100) + chr(101) + chr(5701 - 5602) + chr(2199 - 2088) + chr(0b1100100) + '\x65')(chr(0b10011 + 0o142) + '\x74' + chr(0b1001011 + 0o33) + '\x2d' + chr(2042 - 1986)))(mS_i0zPU86nL, ehT0Px3KOsy9(chr(48) + chr(0b110 + 0o151) + chr(1128 - 1073) + chr(55) + chr(0b11000 + 0o37), 49670 - 49662)) except KlPSljPzIJ_u as GlnVAPeT6CUe: if xafqLlk3kkUe(GlnVAPeT6CUe, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb8,~\x18\x18'), chr(5092 - 4992) + chr(101) + chr(0b10100 + 0o117) + '\x6f' + chr(0b1000110 + 0o36) + '\145')('\165' + '\164' + chr(0b1100110) + chr(1211 - 1166) + chr(1305 - 1249))) in [xafqLlk3kkUe(lKz5VhncMjGe, xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\x1fO52\x89'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(45) + chr(0b111000))), xafqLlk3kkUe(lKz5VhncMjGe, xafqLlk3kkUe(SXOLrMavuUCe(b'\x98\x0eI$:'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + '\144' + chr(0b1011100 + 0o11))('\165' + chr(0b1110100) + chr(102) + chr(45) + chr(2770 - 2714)))]: pass else: raise
ray-project/ray
python/ray/experimental/array/distributed/core.py
subblocks
def subblocks(a, *ranges): """ This function produces a distributed array from a subset of the blocks in the `a`. The result and `a` will have the same number of dimensions. For example, subblocks(a, [0, 1], [2, 4]) will produce a DistArray whose objectids are [[a.objectids[0, 2], a.objectids[0, 4]], [a.objectids[1, 2], a.objectids[1, 4]]] We allow the user to pass in an empty list [] to indicate the full range. """ ranges = list(ranges) if len(ranges) != a.ndim: raise Exception("sub_blocks expects to receive a number of ranges " "equal to a.ndim, but it received {} ranges and " "a.ndim = {}.".format(len(ranges), a.ndim)) for i in range(len(ranges)): # We allow the user to pass in an empty list to indicate the full # range. if ranges[i] == []: ranges[i] = range(a.num_blocks[i]) if not np.alltrue(ranges[i] == np.sort(ranges[i])): raise Exception("Ranges passed to sub_blocks must be sorted, but " "the {}th range is {}.".format(i, ranges[i])) if ranges[i][0] < 0: raise Exception("Values in the ranges passed to sub_blocks must " "be at least 0, but the {}th range is {}.".format( i, ranges[i])) if ranges[i][-1] >= a.num_blocks[i]: raise Exception("Values in the ranges passed to sub_blocks must " "be less than the relevant number of blocks, but " "the {}th range is {}, and a.num_blocks = {}." .format(i, ranges[i], a.num_blocks)) last_index = [r[-1] for r in ranges] last_block_shape = DistArray.compute_block_shape(last_index, a.shape) shape = [(len(ranges[i]) - 1) * BLOCK_SIZE + last_block_shape[i] for i in range(a.ndim)] result = DistArray(shape) for index in np.ndindex(*result.num_blocks): result.objectids[index] = a.objectids[tuple( ranges[i][index[i]] for i in range(a.ndim))] return result
python
def subblocks(a, *ranges): """ This function produces a distributed array from a subset of the blocks in the `a`. The result and `a` will have the same number of dimensions. For example, subblocks(a, [0, 1], [2, 4]) will produce a DistArray whose objectids are [[a.objectids[0, 2], a.objectids[0, 4]], [a.objectids[1, 2], a.objectids[1, 4]]] We allow the user to pass in an empty list [] to indicate the full range. """ ranges = list(ranges) if len(ranges) != a.ndim: raise Exception("sub_blocks expects to receive a number of ranges " "equal to a.ndim, but it received {} ranges and " "a.ndim = {}.".format(len(ranges), a.ndim)) for i in range(len(ranges)): # We allow the user to pass in an empty list to indicate the full # range. if ranges[i] == []: ranges[i] = range(a.num_blocks[i]) if not np.alltrue(ranges[i] == np.sort(ranges[i])): raise Exception("Ranges passed to sub_blocks must be sorted, but " "the {}th range is {}.".format(i, ranges[i])) if ranges[i][0] < 0: raise Exception("Values in the ranges passed to sub_blocks must " "be at least 0, but the {}th range is {}.".format( i, ranges[i])) if ranges[i][-1] >= a.num_blocks[i]: raise Exception("Values in the ranges passed to sub_blocks must " "be less than the relevant number of blocks, but " "the {}th range is {}, and a.num_blocks = {}." .format(i, ranges[i], a.num_blocks)) last_index = [r[-1] for r in ranges] last_block_shape = DistArray.compute_block_shape(last_index, a.shape) shape = [(len(ranges[i]) - 1) * BLOCK_SIZE + last_block_shape[i] for i in range(a.ndim)] result = DistArray(shape) for index in np.ndindex(*result.num_blocks): result.objectids[index] = a.objectids[tuple( ranges[i][index[i]] for i in range(a.ndim))] return result
[ "def", "subblocks", "(", "a", ",", "*", "ranges", ")", ":", "ranges", "=", "list", "(", "ranges", ")", "if", "len", "(", "ranges", ")", "!=", "a", ".", "ndim", ":", "raise", "Exception", "(", "\"sub_blocks expects to receive a number of ranges \"", "\"equal to a.ndim, but it received {} ranges and \"", "\"a.ndim = {}.\"", ".", "format", "(", "len", "(", "ranges", ")", ",", "a", ".", "ndim", ")", ")", "for", "i", "in", "range", "(", "len", "(", "ranges", ")", ")", ":", "# We allow the user to pass in an empty list to indicate the full", "# range.", "if", "ranges", "[", "i", "]", "==", "[", "]", ":", "ranges", "[", "i", "]", "=", "range", "(", "a", ".", "num_blocks", "[", "i", "]", ")", "if", "not", "np", ".", "alltrue", "(", "ranges", "[", "i", "]", "==", "np", ".", "sort", "(", "ranges", "[", "i", "]", ")", ")", ":", "raise", "Exception", "(", "\"Ranges passed to sub_blocks must be sorted, but \"", "\"the {}th range is {}.\"", ".", "format", "(", "i", ",", "ranges", "[", "i", "]", ")", ")", "if", "ranges", "[", "i", "]", "[", "0", "]", "<", "0", ":", "raise", "Exception", "(", "\"Values in the ranges passed to sub_blocks must \"", "\"be at least 0, but the {}th range is {}.\"", ".", "format", "(", "i", ",", "ranges", "[", "i", "]", ")", ")", "if", "ranges", "[", "i", "]", "[", "-", "1", "]", ">=", "a", ".", "num_blocks", "[", "i", "]", ":", "raise", "Exception", "(", "\"Values in the ranges passed to sub_blocks must \"", "\"be less than the relevant number of blocks, but \"", "\"the {}th range is {}, and a.num_blocks = {}.\"", ".", "format", "(", "i", ",", "ranges", "[", "i", "]", ",", "a", ".", "num_blocks", ")", ")", "last_index", "=", "[", "r", "[", "-", "1", "]", "for", "r", "in", "ranges", "]", "last_block_shape", "=", "DistArray", ".", "compute_block_shape", "(", "last_index", ",", "a", ".", "shape", ")", "shape", "=", "[", "(", "len", "(", "ranges", "[", "i", "]", ")", "-", "1", ")", "*", "BLOCK_SIZE", "+", "last_block_shape", "[", "i", "]", "for", "i", "in", "range", "(", "a", ".", "ndim", ")", "]", "result", "=", "DistArray", "(", "shape", ")", "for", "index", "in", "np", ".", "ndindex", "(", "*", "result", ".", "num_blocks", ")", ":", "result", ".", "objectids", "[", "index", "]", "=", "a", ".", "objectids", "[", "tuple", "(", "ranges", "[", "i", "]", "[", "index", "[", "i", "]", "]", "for", "i", "in", "range", "(", "a", ".", "ndim", ")", ")", "]", "return", "result" ]
This function produces a distributed array from a subset of the blocks in the `a`. The result and `a` will have the same number of dimensions. For example, subblocks(a, [0, 1], [2, 4]) will produce a DistArray whose objectids are [[a.objectids[0, 2], a.objectids[0, 4]], [a.objectids[1, 2], a.objectids[1, 4]]] We allow the user to pass in an empty list [] to indicate the full range.
[ "This", "function", "produces", "a", "distributed", "array", "from", "a", "subset", "of", "the", "blocks", "in", "the", "a", ".", "The", "result", "and", "a", "will", "have", "the", "same", "number", "of", "dimensions", ".", "For", "example", "subblocks", "(", "a", "[", "0", "1", "]", "[", "2", "4", "]", ")", "will", "produce", "a", "DistArray", "whose", "objectids", "are", "[[", "a", ".", "objectids", "[", "0", "2", "]", "a", ".", "objectids", "[", "0", "4", "]]", "[", "a", ".", "objectids", "[", "1", "2", "]", "a", ".", "objectids", "[", "1", "4", "]]]", "We", "allow", "the", "user", "to", "pass", "in", "an", "empty", "list", "[]", "to", "indicate", "the", "full", "range", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/array/distributed/core.py#L204-L245
train
This function returns a distributed array from a subset of the blocks in the input array a. The result array and a will have the same number of dimensions.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u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c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(0b100 + 0o153) + chr(169 - 118) + chr(2368 - 2314) + chr(52), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + '\061' + chr(51), ord("\x08")), ehT0Px3KOsy9(chr(2043 - 1995) + chr(0b100010 + 0o115) + chr(0b100110 + 0o15) + '\064' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + '\157' + chr(54) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(52) + chr(1693 - 1642), 18204 - 18196), ehT0Px3KOsy9(chr(1215 - 1167) + chr(2578 - 2467) + '\x33' + chr(0b100110 + 0o13) + chr(0b101101 + 0o5), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + '\064' + '\067', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1011001 + 0o26) + '\064' + '\x36', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110010) + '\064' + '\061', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b100000 + 0o23) + '\x33' + '\x34', 48633 - 48625), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + chr(0b10001 + 0o41) + chr(0b10101 + 0o34), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(53) + chr(0b1000 + 0o51), ord("\x08")), ehT0Px3KOsy9(chr(891 - 843) + '\x6f' + chr(1700 - 1651) + chr(474 - 424) + chr(2023 - 1969), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(187 - 136) + chr(0b11000 + 0o34) + '\063', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\061' + chr(656 - 607) + chr(54), 60318 - 60310), ehT0Px3KOsy9(chr(0b110000) + chr(734 - 623) + chr(1683 - 1633) + chr(2457 - 2402) + chr(788 - 740), 0b1000), ehT0Px3KOsy9(chr(1084 - 1036) + '\157' + chr(0b100101 + 0o14) + chr(0b11111 + 0o27) + '\x36', 62737 - 62729), ehT0Px3KOsy9(chr(1477 - 1429) + chr(0b1101111) + chr(940 - 889) + '\x37' + chr(1610 - 1559), ord("\x08")), ehT0Px3KOsy9(chr(2074 - 2026) + '\157' + chr(0b100000 + 0o23) + chr(50) + chr(50), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(2195 - 2141) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b100 + 0o54) + '\157' + '\062' + chr(0b1 + 0o63) + '\x33', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1000001 + 0o56) + chr(308 - 257) + chr(629 - 576) + '\x36', 26445 - 26437), ehT0Px3KOsy9('\060' + '\157' + chr(0b10010 + 0o37) + chr(0b11 + 0o63) + chr(2047 - 1995), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(774 - 724) + chr(53) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(896 - 848) + chr(1464 - 1353) + '\061' + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\061' + chr(50) + '\x34', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111 + 0o0) + '\062' + chr(54) + chr(0b1010 + 0o46), 8), ehT0Px3KOsy9('\x30' + chr(2567 - 2456) + chr(1186 - 1135) + chr(0b101100 + 0o4) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + chr(2050 - 1995) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1010100 + 0o33) + '\x31' + chr(0b101011 + 0o11) + '\x31', 11877 - 11869), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(0b110100) + chr(0b11111 + 0o30), 8), ehT0Px3KOsy9('\060' + chr(0b11111 + 0o120) + chr(2348 - 2298) + '\062' + '\x35', 0b1000), ehT0Px3KOsy9(chr(48) + chr(1495 - 1384) + chr(0b110011) + chr(0b110101) + chr(0b110001 + 0o3), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x36' + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b101010 + 0o105) + '\061' + chr(0b11001 + 0o33) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(111) + chr(0b100100 + 0o16) + chr(55) + chr(51), 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110011) + chr(0b110010) + '\x35', 0o10), ehT0Px3KOsy9(chr(1332 - 1284) + '\157' + chr(0b110010) + chr(0b101011 + 0o11) + chr(0b110001), 8), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100001 + 0o16) + '\062' + chr(0b101010 + 0o10) + chr(557 - 507), 46650 - 46642), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x36' + '\x31', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1000 + 0o147) + chr(53) + '\060', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xda'), chr(0b1100100) + chr(2157 - 2056) + chr(1210 - 1111) + chr(0b1101111) + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110 + 0o0) + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def IJagJ1uUXWQp(XPh1qbAgrPgG, *yzRmuOn0fpWe): yzRmuOn0fpWe = YyaZ4tpXu4lf(yzRmuOn0fpWe) if c2A0yzQpDQB3(yzRmuOn0fpWe) != xafqLlk3kkUe(XPh1qbAgrPgG, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93d\x88@k\x88\x8er\xd2\xba\x1b}'), chr(100) + chr(0b1100101 + 0o0) + '\143' + '\157' + chr(100) + '\x65')(chr(12732 - 12615) + '\164' + '\x66' + chr(45) + chr(0b111000))): raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x87~\x87oA\xa6\x88E\xca\xafqL.\x93+\xdb\x02\x88\xf2\xc4\xcc\xce\x06\xcan1\xd9\xb5\xdeA\x86\xb5\x82F\n\xd9\xb0\xd3\xb2^\x92+\x97QM\xad\x82U\x81\xb9 \\7\x8fn\xcc\x19\xdb\xb3\x9e\xcd\x8a\x1d\xc2!t\xd2\xb6\xcfA\x8e\xe1\xccA\x02\xd8\xb0\xc8\xe4T\x90+\x9eM\x03\xb8\x86H\xc6\xb9"\t7\x8d*\x98\x17\xd5\xbc\xd4\xca\x83T\x92-/\xcd\xed'), '\144' + chr(101) + chr(1905 - 1806) + chr(111) + chr(4709 - 4609) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + chr(626 - 570)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2?\x97_k\xab\xb4\x15\xf1\xac4C'), chr(100) + chr(1233 - 1132) + chr(8120 - 8021) + chr(10379 - 10268) + '\144' + chr(1649 - 1548))('\165' + '\x74' + chr(791 - 689) + chr(1589 - 1544) + '\x38'))(c2A0yzQpDQB3(yzRmuOn0fpWe), xafqLlk3kkUe(XPh1qbAgrPgG, xafqLlk3kkUe(SXOLrMavuUCe(b'\x93d\x88@k\x88\x8er\xd2\xba\x1b}'), chr(100) + '\x65' + '\x63' + chr(111) + chr(0b1000011 + 0o41) + '\x65')('\165' + chr(1874 - 1758) + chr(0b1 + 0o145) + '\x2d' + chr(56))))) for WVxHKyX45z_L in vQr8gNKaIaWE(c2A0yzQpDQB3(yzRmuOn0fpWe)): if yzRmuOn0fpWe[WVxHKyX45z_L] == []: yzRmuOn0fpWe[WVxHKyX45z_L] = vQr8gNKaIaWE(XPh1qbAgrPgG.azOnMTJc4Vem[WVxHKyX45z_L]) if not xafqLlk3kkUe(WqUC3KWvYVup, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95g\x89DQ\xbf\x82'), chr(0b1100100) + chr(5819 - 5718) + '\143' + chr(111) + chr(0b100011 + 0o101) + '\x65')(chr(13435 - 13318) + chr(0b1110100) + chr(1943 - 1841) + '\x2d' + chr(0b100111 + 0o21)))(yzRmuOn0fpWe[WVxHKyX45z_L] == xafqLlk3kkUe(WqUC3KWvYVup, xafqLlk3kkUe(SXOLrMavuUCe(b'\x87d\x97D'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(278 - 178) + '\x65')('\165' + chr(116) + chr(102) + '\x2d' + '\x38'))(yzRmuOn0fpWe[WVxHKyX45z_L])): raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa6j\x8bWF\xb9\xc7V\xc0\xaf"L2\xc3:\xd7V\x88\xa7\xd2\xfc\x8c\x18\xc0n?\xc3\xe3\xd6\x14\x94\xe1\xccQ\x02\x9b\xa6\xce\xe0E\x91o\xc9\x10A\xbf\x93\x06\xd5\xb44\t-\x9e:\xd0V\x89\xb3\xde\xc4\x8bT\xc6~t\xcb\xbe\x95'), chr(1074 - 974) + chr(101) + '\143' + '\x6f' + '\x64' + chr(101))(chr(117) + '\x74' + chr(0b1100110) + chr(0b10 + 0o53) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2?\x97_k\xab\xb4\x15\xf1\xac4C'), chr(0b1100100) + chr(3618 - 3517) + chr(0b110110 + 0o55) + '\x6f' + chr(0b1100100) + '\145')(chr(7786 - 7669) + chr(2864 - 2748) + chr(0b1011110 + 0o10) + chr(0b11 + 0o52) + chr(3115 - 3059)))(WVxHKyX45z_L, yzRmuOn0fpWe[WVxHKyX45z_L])) if yzRmuOn0fpWe[WVxHKyX45z_L][ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x30', 0o10)] < ehT0Px3KOsy9(chr(48) + chr(3343 - 3232) + chr(0b110000), 8): raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2j\x89EF\xb9\xc7O\xcf\xfc%A3\xc3<\xd9\x18\x9c\xb7\xc3\x83\x9e\x15\xdc~1\xd4\xe3\xcf\x0e\xc7\xe6\x99Q8\xd9\xb9\xce\xf1Z\x87+\x88EP\xbe\xc7D\xc4\xfc0]v\x8f+\xd9\x05\x8f\xf2\x80\x8f\xce\x16\xdayt\xc4\xab\xdeA\x9c\xe8\x98[G\xc9\xb4\xcf\xf5T\xd4b\x96\x10X\xb7\xc9'), chr(100) + chr(101) + chr(4079 - 3980) + chr(0b1101111) + chr(0b100001 + 0o103) + '\x65')('\x75' + '\x74' + chr(0b1000101 + 0o41) + chr(0b10 + 0o53) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2?\x97_k\xab\xb4\x15\xf1\xac4C'), '\144' + chr(0b1100101) + '\143' + chr(1305 - 1194) + '\144' + chr(101))(chr(0b1110101) + '\164' + chr(0b11010 + 0o114) + chr(45) + chr(56)))(WVxHKyX45z_L, yzRmuOn0fpWe[WVxHKyX45z_L])) if yzRmuOn0fpWe[WVxHKyX45z_L][-ehT0Px3KOsy9(chr(48) + chr(7181 - 7070) + chr(0b11 + 0o56), 0b1000)] >= xafqLlk3kkUe(XPh1qbAgrPgG, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95q\xaa^n\x9e\xadE\x95\x8a4D'), '\x64' + chr(0b10110 + 0o117) + '\143' + chr(0b1101111) + '\144' + chr(0b1010 + 0o133))('\x75' + chr(0b111001 + 0o73) + '\x66' + '\x2d' + '\x38'))[WVxHKyX45z_L]: raise jLmadlzMdunT(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2j\x89EF\xb9\xc7O\xcf\xfc%A3\xc3<\xd9\x18\x9c\xb7\xc3\x83\x9e\x15\xdc~1\xd4\xe3\xcf\x0e\xc7\xe6\x99Q8\xd9\xb9\xce\xf1Z\x87+\x88EP\xbe\xc7D\xc4\xfc=L%\x90n\xcc\x1e\x9a\xbc\x90\xd7\x86\x11\x8f\x7f1\xdc\xa6\xcd\x00\x89\xe1\xcc]\x12\xd6\xb7\xc4\xe0\x11\x9bm\xc5RO\xa5\x84M\xd2\xf0qK#\x97n\xcc\x1e\x9e\xf2\xcb\xde\x9a\x1c\x8f\x7f5\xde\xa4\xdeA\x8e\xe6\xccH\x1a\x97\xf5\xc0\xfcU\xd4j\xcb^V\xa7\xb8D\xcd\xb32B%\xc3s\x98\r\x86\xfc'), chr(2057 - 1957) + chr(0b1100101) + '\143' + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110011 + 0o2) + chr(0b1110100) + '\146' + '\x2d' + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\xa2?\x97_k\xab\xb4\x15\xf1\xac4C'), '\x64' + chr(6834 - 6733) + chr(3170 - 3071) + chr(0b1101111) + chr(0b1010 + 0o132) + '\145')(chr(0b100000 + 0o125) + chr(0b1110100) + '\146' + chr(424 - 379) + chr(0b11001 + 0o37)))(WVxHKyX45z_L, yzRmuOn0fpWe[WVxHKyX45z_L], xafqLlk3kkUe(XPh1qbAgrPgG, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95q\xaa^n\x9e\xadE\x95\x8a4D'), chr(100) + '\145' + '\x63' + chr(111) + chr(0b1011 + 0o131) + chr(0b1100101))('\165' + chr(3521 - 3405) + chr(0b1000100 + 0o42) + '\055' + chr(0b100001 + 0o27))))) M6wrY3mQPHaU = [JWG5qApaeJkp[-ehT0Px3KOsy9('\060' + chr(4947 - 4836) + '\x31', 8)] for JWG5qApaeJkp in yzRmuOn0fpWe] CwkeBlM4ncGD = tXA4raHb3nux.compute_block_shape(M6wrY3mQPHaU, XPh1qbAgrPgG.nauYfLglTpcb) nauYfLglTpcb = [(c2A0yzQpDQB3(yzRmuOn0fpWe[WVxHKyX45z_L]) - ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + chr(0b11000 + 0o31), 8)) * ibXfpUvOaMke + CwkeBlM4ncGD[WVxHKyX45z_L] for WVxHKyX45z_L in vQr8gNKaIaWE(XPh1qbAgrPgG.gompHBiTsfJT)] ShZmEKfTkAOZ = tXA4raHb3nux(nauYfLglTpcb) for XdowRbJKZWL9 in xafqLlk3kkUe(WqUC3KWvYVup, xafqLlk3kkUe(SXOLrMavuUCe(b'\x90x\xafZM\x82\xb8k\xd9\xaf+\x1c'), '\144' + chr(101) + '\x63' + chr(111) + chr(0b1100100) + '\145')(chr(117) + '\x74' + '\146' + chr(0b100 + 0o51) + chr(0b110100 + 0o4)))(*xafqLlk3kkUe(ShZmEKfTkAOZ, xafqLlk3kkUe(SXOLrMavuUCe(b'\x95q\xaa^n\x9e\xadE\x95\x8a4D'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(5105 - 4994) + '\144' + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + '\x38'))): ShZmEKfTkAOZ.ZrRd0aMNQswN[XdowRbJKZWL9] = XPh1qbAgrPgG.ZrRd0aMNQswN[KNyTy8rYcwji((yzRmuOn0fpWe[WVxHKyX45z_L][XdowRbJKZWL9[WVxHKyX45z_L]] for WVxHKyX45z_L in vQr8gNKaIaWE(XPh1qbAgrPgG.gompHBiTsfJT)))] return ShZmEKfTkAOZ
ray-project/ray
python/ray/experimental/array/distributed/core.py
DistArray.assemble
def assemble(self): """Assemble an array from a distributed array of object IDs.""" first_block = ray.get(self.objectids[(0, ) * self.ndim]) dtype = first_block.dtype result = np.zeros(self.shape, dtype=dtype) for index in np.ndindex(*self.num_blocks): lower = DistArray.compute_block_lower(index, self.shape) upper = DistArray.compute_block_upper(index, self.shape) result[[slice(l, u) for (l, u) in zip(lower, upper)]] = ray.get( self.objectids[index]) return result
python
def assemble(self): """Assemble an array from a distributed array of object IDs.""" first_block = ray.get(self.objectids[(0, ) * self.ndim]) dtype = first_block.dtype result = np.zeros(self.shape, dtype=dtype) for index in np.ndindex(*self.num_blocks): lower = DistArray.compute_block_lower(index, self.shape) upper = DistArray.compute_block_upper(index, self.shape) result[[slice(l, u) for (l, u) in zip(lower, upper)]] = ray.get( self.objectids[index]) return result
[ "def", "assemble", "(", "self", ")", ":", "first_block", "=", "ray", ".", "get", "(", "self", ".", "objectids", "[", "(", "0", ",", ")", "*", "self", ".", "ndim", "]", ")", "dtype", "=", "first_block", ".", "dtype", "result", "=", "np", ".", "zeros", "(", "self", ".", "shape", ",", "dtype", "=", "dtype", ")", "for", "index", "in", "np", ".", "ndindex", "(", "*", "self", ".", "num_blocks", ")", ":", "lower", "=", "DistArray", ".", "compute_block_lower", "(", "index", ",", "self", ".", "shape", ")", "upper", "=", "DistArray", ".", "compute_block_upper", "(", "index", ",", "self", ".", "shape", ")", "result", "[", "[", "slice", "(", "l", ",", "u", ")", "for", "(", "l", ",", "u", ")", "in", "zip", "(", "lower", ",", "upper", ")", "]", "]", "=", "ray", ".", "get", "(", "self", ".", "objectids", "[", "index", "]", ")", "return", "result" ]
Assemble an array from a distributed array of object IDs.
[ "Assemble", "an", "array", "from", "a", "distributed", "array", "of", "object", "IDs", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/experimental/array/distributed/core.py#L58-L68
train
Assemble an array from a distributed array of object IDs.
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VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + '\x37' + chr(50), 38 - 30), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1910 - 1859) + chr(0b110010) + chr(51), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\063' + '\066' + chr(1135 - 1083), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + chr(0b11 + 0o56) + '\x34', 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\062' + chr(1496 - 1443) + chr(589 - 540), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b100110 + 0o14) + '\x31' + '\060', 0o10), ehT0Px3KOsy9(chr(1099 - 1051) + chr(0b1011000 + 0o27) + '\x33' + '\x32' + '\060', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x32' + chr(0b10101 + 0o36) + chr(0b11110 + 0o22), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x31' + chr(1184 - 1136) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + '\063' + chr(0b100011 + 0o21) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + chr(0b110011) + '\061' + chr(0b110111), 42249 - 42241), ehT0Px3KOsy9('\x30' + chr(111) + chr(1713 - 1664) + chr(48) + chr(51), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + chr(0b10110 + 0o37) + '\064', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + '\x36' + '\x31', 39660 - 39652), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + '\062' + chr(1161 - 1113), 8), ehT0Px3KOsy9(chr(2219 - 2171) + chr(111) + '\065' + chr(0b101101 + 0o4), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(51) + '\067', 64590 - 64582), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101111 + 0o3) + chr(55) + '\067', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x31' + chr(0b110101) + chr(54), 43061 - 43053), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b110001) + chr(0b10000 + 0o44), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(55) + '\x32', 0b1000), ehT0Px3KOsy9(chr(1631 - 1583) + chr(0b1101111) + '\062' + chr(51), 41246 - 41238), ehT0Px3KOsy9('\060' + chr(111) + chr(0b101000 + 0o13) + chr(580 - 530) + chr(0b100001 + 0o26), 0o10), ehT0Px3KOsy9('\x30' + '\157' + '\x31' + '\064' + chr(1651 - 1603), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\061' + '\x30' + chr(0b110110), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2055 - 2005) + chr(0b1101 + 0o52), ord("\x08")), ehT0Px3KOsy9(chr(2298 - 2250) + '\x6f' + '\x31' + chr(0b100 + 0o60) + '\x35', 0o10), ehT0Px3KOsy9(chr(0b11100 + 0o24) + '\x6f' + chr(49) + chr(0b110100) + chr(0b10100 + 0o42), 0b1000), ehT0Px3KOsy9(chr(591 - 543) + '\157' + '\x33' + '\061' + chr(1091 - 1039), 8), ehT0Px3KOsy9(chr(48) + chr(9749 - 9638) + chr(51) + chr(0b110000 + 0o7) + '\x37', 50601 - 50593), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(0b1001011 + 0o44) + chr(0b110100) + chr(0b100010 + 0o24), 0o10), ehT0Px3KOsy9(chr(48) + chr(5390 - 5279) + chr(354 - 304) + '\x30' + '\x37', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(51) + chr(49) + '\062', 56169 - 56161), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110001) + '\x33' + '\061', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(49) + chr(0b10010 + 0o41) + chr(49), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(431 - 381) + '\x30' + chr(1595 - 1545), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(49) + '\061' + chr(1634 - 1581), 0b1000), ehT0Px3KOsy9(chr(2116 - 2068) + chr(0b1101111) + chr(0b110010) + '\x36' + chr(49), 8), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110110) + chr(152 - 101), ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1101111) + '\061' + '\x35' + chr(2267 - 2219), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(1319 - 1271) + chr(111) + '\065' + chr(0b101 + 0o53), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4'), chr(3143 - 3043) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1011010 + 0o12) + '\145')('\x75' + chr(4220 - 4104) + chr(9804 - 9702) + chr(0b101101) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def fZ1rIV44NzYb(oVre8I6UXc3b): Lef6ljrmtwln = H9zaXRrGK6Cq.get(oVre8I6UXc3b.ZrRd0aMNQswN[(ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\060', 0b1000),) * oVre8I6UXc3b.gompHBiTsfJT]) jSV9IKnemH7K = Lef6ljrmtwln.jSV9IKnemH7K ShZmEKfTkAOZ = WqUC3KWvYVup.zeros(oVre8I6UXc3b.nauYfLglTpcb, dtype=jSV9IKnemH7K) for XdowRbJKZWL9 in xafqLlk3kkUe(WqUC3KWvYVup, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9e\xa0\xbe\xa6\xc7\xc0\x8f\xd5>\x96\xb5v'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(4905 - 4788) + chr(0b1110100) + '\146' + chr(557 - 512) + chr(878 - 822)))(*xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b\xa9\xbb\xa2\xe4\xdc\x9a\xfbr\xb3\xaa.'), '\144' + chr(686 - 585) + chr(6716 - 6617) + chr(6538 - 6427) + chr(100) + chr(0b1010 + 0o133))('\x75' + '\x74' + '\x66' + chr(0b10 + 0o53) + chr(0b111000)))): t6F5pCAWHAAS = tXA4raHb3nux.compute_block_lower(XdowRbJKZWL9, oVre8I6UXc3b.nauYfLglTpcb) eGnGnmaYVLPZ = tXA4raHb3nux.compute_block_upper(XdowRbJKZWL9, oVre8I6UXc3b.nauYfLglTpcb) ShZmEKfTkAOZ[[W3g84rNiEdDQ(aLoH_Mt0dzwO, SkdK71rGR8E7) for (aLoH_Mt0dzwO, SkdK71rGR8E7) in pZ0NK2y6HRbn(t6F5pCAWHAAS, eGnGnmaYVLPZ)]] = H9zaXRrGK6Cq.get(oVre8I6UXc3b.ZrRd0aMNQswN[XdowRbJKZWL9]) return ShZmEKfTkAOZ
ray-project/ray
python/ray/rllib/agents/impala/vtrace.py
multi_log_probs_from_logits_and_actions
def multi_log_probs_from_logits_and_actions(policy_logits, actions): """Computes action log-probs from policy logits and actions. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size and ACTION_SPACE refers to the list of numbers each representing a number of actions. Args: policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing a softmax policy. actions: A list with length of ACTION_SPACE of int32 tensors of shapes [T, B], ..., [T, B] with actions. Returns: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B], ..., [T, B] corresponding to the sampling log probability of the chosen action w.r.t. the policy. """ log_probs = [] for i in range(len(policy_logits)): log_probs.append(-tf.nn.sparse_softmax_cross_entropy_with_logits( logits=policy_logits[i], labels=actions[i])) return log_probs
python
def multi_log_probs_from_logits_and_actions(policy_logits, actions): """Computes action log-probs from policy logits and actions. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size and ACTION_SPACE refers to the list of numbers each representing a number of actions. Args: policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing a softmax policy. actions: A list with length of ACTION_SPACE of int32 tensors of shapes [T, B], ..., [T, B] with actions. Returns: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B], ..., [T, B] corresponding to the sampling log probability of the chosen action w.r.t. the policy. """ log_probs = [] for i in range(len(policy_logits)): log_probs.append(-tf.nn.sparse_softmax_cross_entropy_with_logits( logits=policy_logits[i], labels=actions[i])) return log_probs
[ "def", "multi_log_probs_from_logits_and_actions", "(", "policy_logits", ",", "actions", ")", ":", "log_probs", "=", "[", "]", "for", "i", "in", "range", "(", "len", "(", "policy_logits", ")", ")", ":", "log_probs", ".", "append", "(", "-", "tf", ".", "nn", ".", "sparse_softmax_cross_entropy_with_logits", "(", "logits", "=", "policy_logits", "[", "i", "]", ",", "labels", "=", "actions", "[", "i", "]", ")", ")", "return", "log_probs" ]
Computes action log-probs from policy logits and actions. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size and ACTION_SPACE refers to the list of numbers each representing a number of actions. Args: policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing a softmax policy. actions: A list with length of ACTION_SPACE of int32 tensors of shapes [T, B], ..., [T, B] with actions. Returns: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B], ..., [T, B] corresponding to the sampling log probability of the chosen action w.r.t. the policy.
[ "Computes", "action", "log", "-", "probs", "from", "policy", "logits", "and", "actions", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/impala/vtrace.py#L54-L91
train
Computes action log - probabilities from policy logits and actions.
Pu7Z6IJ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oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + chr(599 - 548) + chr(361 - 312) + '\060', 17935 - 17927), ehT0Px3KOsy9('\x30' + '\157' + '\x36' + chr(0b1110 + 0o51), 58764 - 58756), ehT0Px3KOsy9(chr(48) + chr(0b1 + 0o156) + chr(0b110100) + chr(907 - 852), 18100 - 18092), ehT0Px3KOsy9(chr(48) + chr(0b1010100 + 0o33) + chr(51) + chr(2148 - 2100) + '\x32', 45519 - 45511), ehT0Px3KOsy9(chr(2085 - 2037) + chr(0b1101111) + chr(0b11011 + 0o26) + chr(0b110111), 0b1000), ehT0Px3KOsy9('\x30' + chr(11039 - 10928) + chr(0b110101), 36395 - 36387), ehT0Px3KOsy9('\x30' + chr(0b1101001 + 0o6) + chr(0b1101 + 0o44) + chr(0b1001 + 0o53) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b111100 + 0o63) + '\061' + chr(50) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(0b11111 + 0o21) + '\x6f' + chr(0b110010) + '\x31', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010011 + 0o34) + chr(0b100101 + 0o15) + chr(672 - 623) + '\x32', 37706 - 37698), ehT0Px3KOsy9(chr(0b110000) + chr(1039 - 928) + '\x31' + chr(0b110010) + chr(55), 0b1000), ehT0Px3KOsy9(chr(880 - 832) + chr(0b1010001 + 0o36) + chr(0b110101) + chr(0b1000 + 0o52), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(964 - 915), ord("\x08")), ehT0Px3KOsy9(chr(0b100000 + 0o20) + chr(111) + '\x35' + chr(0b11000 + 0o32), 8), ehT0Px3KOsy9(chr(48) + chr(0b1001111 + 0o40) + chr(0b110111) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2322 - 2273) + chr(0b110100) + '\x32', 0o10), ehT0Px3KOsy9(chr(1138 - 1090) + '\x6f' + chr(49) + '\x34' + chr(0b100 + 0o56), 8), ehT0Px3KOsy9('\x30' + chr(1576 - 1465) + chr(0b110011) + chr(50) + chr(0b100011 + 0o22), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + '\x35', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b110011) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(660 - 612) + chr(0b1101111) + chr(0b1 + 0o60) + '\x31' + chr(728 - 680), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(11326 - 11215) + chr(0b0 + 0o63) + chr(0b11110 + 0o25) + '\062', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100010 + 0o15) + chr(53) + chr(0b11100 + 0o31), 0b1000), ehT0Px3KOsy9(chr(402 - 354) + chr(0b1101111) + chr(49) + '\x31' + '\x32', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + '\060' + chr(0b1100 + 0o45), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100100 + 0o13) + chr(635 - 585) + chr(54) + chr(0b101111 + 0o4), 27255 - 27247), ehT0Px3KOsy9(chr(2174 - 2126) + chr(11031 - 10920) + chr(49) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b100110 + 0o111) + chr(0b110011) + chr(52) + chr(0b11 + 0o64), 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(111) + chr(0b110001) + chr(1763 - 1712) + chr(0b10110 + 0o35), 0o10), ehT0Px3KOsy9(chr(1423 - 1375) + chr(5496 - 5385) + chr(50) + chr(0b100001 + 0o22) + '\063', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110100) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\065' + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b100 + 0o153) + '\x31' + chr(1043 - 992) + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + chr(1437 - 1382), ord("\x08")), ehT0Px3KOsy9(chr(342 - 294) + chr(111) + chr(49) + chr(0b110011) + chr(868 - 814), 8), ehT0Px3KOsy9(chr(0b110000) + chr(11560 - 11449) + chr(0b10 + 0o60) + chr(51) + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b110001 + 0o76) + '\x32' + '\x30' + '\x34', 30553 - 30545), ehT0Px3KOsy9('\060' + chr(0b1001100 + 0o43) + '\x33' + chr(142 - 92) + chr(0b11110 + 0o27), 8), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + '\063' + '\x35' + '\x33', 41636 - 41628), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(50) + '\064' + '\065', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + '\x35' + chr(647 - 599), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6'), chr(0b110 + 0o136) + chr(9995 - 9894) + chr(0b1001111 + 0o24) + chr(0b1101111) + '\144' + chr(0b1000111 + 0o36))('\x75' + chr(116) + '\146' + chr(0b1110 + 0o37) + chr(0b1100 + 0o54)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def PWV55ob1dnAE(NfSIZOlYedJp, WCl6VUkME_8I): yPp0Syg5g6oO = [] for WVxHKyX45z_L in vQr8gNKaIaWE(c2A0yzQpDQB3(NfSIZOlYedJp)): xafqLlk3kkUe(yPp0Syg5g6oO, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa9GW\xa7aa'), chr(0b1100100) + chr(179 - 78) + '\143' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1 + 0o164) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38'))(-xafqLlk3kkUe(IDJ2eXGCBCDu.nn, xafqLlk3kkUe(SXOLrMavuUCe(b"\xbbGF\xb0|`8'~\xec#GxR`\x01\x10\xban\xeb\x17\xbfC>\xf3\xdc{\x9e\x04\xecK\\6@2\xf1\xe3\xbc\x9f\xd6"), '\144' + '\145' + chr(0b11110 + 0o105) + chr(111) + chr(0b1100100) + '\x65')(chr(4916 - 4799) + chr(0b1001000 + 0o54) + chr(102) + chr(45) + chr(3112 - 3056)))(logits=NfSIZOlYedJp[WVxHKyX45z_L], labels=WCl6VUkME_8I[WVxHKyX45z_L])) return yPp0Syg5g6oO
ray-project/ray
python/ray/rllib/agents/impala/vtrace.py
from_logits
def from_logits(behaviour_policy_logits, target_policy_logits, actions, discounts, rewards, values, bootstrap_value, clip_rho_threshold=1.0, clip_pg_rho_threshold=1.0, name="vtrace_from_logits"): """multi_from_logits wrapper used only for tests""" res = multi_from_logits( [behaviour_policy_logits], [target_policy_logits], [actions], discounts, rewards, values, bootstrap_value, clip_rho_threshold=clip_rho_threshold, clip_pg_rho_threshold=clip_pg_rho_threshold, name=name) return VTraceFromLogitsReturns( vs=res.vs, pg_advantages=res.pg_advantages, log_rhos=res.log_rhos, behaviour_action_log_probs=tf.squeeze( res.behaviour_action_log_probs, axis=0), target_action_log_probs=tf.squeeze( res.target_action_log_probs, axis=0), )
python
def from_logits(behaviour_policy_logits, target_policy_logits, actions, discounts, rewards, values, bootstrap_value, clip_rho_threshold=1.0, clip_pg_rho_threshold=1.0, name="vtrace_from_logits"): """multi_from_logits wrapper used only for tests""" res = multi_from_logits( [behaviour_policy_logits], [target_policy_logits], [actions], discounts, rewards, values, bootstrap_value, clip_rho_threshold=clip_rho_threshold, clip_pg_rho_threshold=clip_pg_rho_threshold, name=name) return VTraceFromLogitsReturns( vs=res.vs, pg_advantages=res.pg_advantages, log_rhos=res.log_rhos, behaviour_action_log_probs=tf.squeeze( res.behaviour_action_log_probs, axis=0), target_action_log_probs=tf.squeeze( res.target_action_log_probs, axis=0), )
[ "def", "from_logits", "(", "behaviour_policy_logits", ",", "target_policy_logits", ",", "actions", ",", "discounts", ",", "rewards", ",", "values", ",", "bootstrap_value", ",", "clip_rho_threshold", "=", "1.0", ",", "clip_pg_rho_threshold", "=", "1.0", ",", "name", "=", "\"vtrace_from_logits\"", ")", ":", "res", "=", "multi_from_logits", "(", "[", "behaviour_policy_logits", "]", ",", "[", "target_policy_logits", "]", ",", "[", "actions", "]", ",", "discounts", ",", "rewards", ",", "values", ",", "bootstrap_value", ",", "clip_rho_threshold", "=", "clip_rho_threshold", ",", "clip_pg_rho_threshold", "=", "clip_pg_rho_threshold", ",", "name", "=", "name", ")", "return", "VTraceFromLogitsReturns", "(", "vs", "=", "res", ".", "vs", ",", "pg_advantages", "=", "res", ".", "pg_advantages", ",", "log_rhos", "=", "res", ".", "log_rhos", ",", "behaviour_action_log_probs", "=", "tf", ".", "squeeze", "(", "res", ".", "behaviour_action_log_probs", ",", "axis", "=", "0", ")", ",", "target_action_log_probs", "=", "tf", ".", "squeeze", "(", "res", ".", "target_action_log_probs", ",", "axis", "=", "0", ")", ",", ")" ]
multi_from_logits wrapper used only for tests
[ "multi_from_logits", "wrapper", "used", "only", "for", "tests" ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/impala/vtrace.py#L94-L124
train
wrapper used only for tests
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6C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3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10000 + 0o43) + '\064' + '\060', 59920 - 59912), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(0b110000) + chr(2497 - 2444), 0o10), ehT0Px3KOsy9(chr(1899 - 1851) + '\157' + chr(0b110010) + chr(54) + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(618 - 570) + chr(9291 - 9180) + '\x31' + chr(0b10 + 0o62) + chr(1896 - 1848), ord("\x08")), ehT0Px3KOsy9(chr(543 - 495) + chr(8898 - 8787) + chr(1643 - 1592) + '\x32' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b11001 + 0o32) + '\061' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(989 - 941) + chr(8181 - 8070) + chr(0b100101 + 0o14) + chr(0b10101 + 0o37) + chr(1609 - 1561), 8), ehT0Px3KOsy9(chr(735 - 687) + chr(0b1101111) + chr(0b0 + 0o63) + chr(0b100000 + 0o26) + '\x32', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(1028 - 977) + chr(0b110000) + chr(0b11100 + 0o31), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + '\x30' + chr(1764 - 1709), 48248 - 48240), ehT0Px3KOsy9(chr(1104 - 1056) + '\x6f' + '\061' + chr(0b110100) + chr(0b1000 + 0o54), 0o10), ehT0Px3KOsy9(chr(1033 - 985) + '\x6f' + chr(0b110100) + '\063', 3807 - 3799), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110001) + chr(2457 - 2405) + chr(1059 - 1009), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(7259 - 7148) + chr(0b110011) + chr(49) + chr(0b110 + 0o57), 42963 - 42955), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(200 - 151) + '\064', 28783 - 28775), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(599 - 548) + chr(55) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(11252 - 11141) + '\063' + chr(48) + '\066', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(788 - 733) + '\062', 0b1000), ehT0Px3KOsy9(chr(1616 - 1568) + '\x6f' + chr(49) + chr(0b1110 + 0o42) + chr(1036 - 981), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b1000 + 0o52) + '\063' + '\x37', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b10110 + 0o33) + chr(51) + chr(1451 - 1399), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + '\061' + '\060', 41339 - 41331), ehT0Px3KOsy9(chr(1884 - 1836) + chr(10758 - 10647) + chr(120 - 68) + chr(0b110000 + 0o4), ord("\x08")), ehT0Px3KOsy9(chr(2161 - 2113) + chr(0b1101000 + 0o7) + chr(868 - 818) + chr(0b10001 + 0o37), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(0b11101 + 0o25) + chr(0b11110 + 0o26), 5257 - 5249), ehT0Px3KOsy9(chr(1765 - 1717) + chr(0b100111 + 0o110) + chr(1133 - 1084) + chr(1649 - 1598) + '\x34', 8), ehT0Px3KOsy9(chr(48) + '\157' + '\x33' + '\x34' + '\061', 18643 - 18635), ehT0Px3KOsy9(chr(716 - 668) + chr(0b100010 + 0o115) + chr(0b101110 + 0o4) + chr(0b110101) + '\x35', 54840 - 54832), ehT0Px3KOsy9(chr(48) + chr(9023 - 8912) + chr(0b110010) + chr(0b100 + 0o61), ord("\x08")), ehT0Px3KOsy9(chr(1748 - 1700) + chr(8702 - 8591) + chr(0b110001) + chr(317 - 264), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110100) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110000) + chr(0b110100), 0o10), ehT0Px3KOsy9(chr(988 - 940) + chr(1738 - 1627) + chr(0b1010 + 0o50) + chr(0b101011 + 0o7) + '\x33', 33888 - 33880), ehT0Px3KOsy9(chr(0b10001 + 0o37) + '\157' + chr(55) + chr(0b101011 + 0o13), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(55) + '\x32', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b10100 + 0o35) + '\064' + chr(0b110000), 8), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + chr(0b10100 + 0o42) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101011 + 0o4) + chr(0b100101 + 0o16) + chr(0b110011) + chr(0b110010), 38367 - 38359), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110010) + chr(1723 - 1668) + chr(1786 - 1734), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x35' + chr(0b100 + 0o54), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xce'), chr(0b10001 + 0o123) + chr(101) + chr(99) + '\x6f' + chr(4629 - 4529) + chr(101))(chr(11404 - 11287) + '\164' + chr(0b101101 + 0o71) + chr(0b1100 + 0o41) + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def FRXvZA_gWmxM(Xno22CdPLB2f, juL349whBRNa, WCl6VUkME_8I, VFM4g1zZHluc, yrDfr6ll4Ijz, SPnCNu54H1db, BGEwz98mEQSl, X9z9SPLMFxV2=1.0, EsLFJeV3E9KX=1.0, AIvJRzLdDfgF=xafqLlk3kkUe(SXOLrMavuUCe(b'\x961\xc6\x01\xb1\xae?\x94\xb7\xa8\t|\x0e\xa2k\x97\xb2I'), chr(100) + chr(7115 - 7014) + '\x63' + '\157' + '\x64' + chr(6729 - 6628))(chr(0b1010100 + 0o41) + chr(0b111101 + 0o67) + chr(102) + chr(45) + '\x38')): MsbwfslwLjRO = mmxOYYyWiYsN([Xno22CdPLB2f], [juL349whBRNa], [WCl6VUkME_8I], VFM4g1zZHluc, yrDfr6ll4Ijz, SPnCNu54H1db, BGEwz98mEQSl, clip_rho_threshold=X9z9SPLMFxV2, clip_pg_rho_threshold=EsLFJeV3E9KX, name=AIvJRzLdDfgF) return lWhgAYaC_DFn(vs=xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\x966'), '\x64' + chr(848 - 747) + '\x63' + chr(111) + '\144' + '\145')(chr(12902 - 12785) + '\164' + chr(7702 - 7600) + chr(45) + chr(0b1011 + 0o55))), pg_advantages=xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\x90"\xeb\x01\xb6\xbd\x01\x9c\xb1\xa6\x03F\x11'), '\x64' + chr(0b100 + 0o141) + chr(0b100010 + 0o101) + chr(0b1101111) + chr(9229 - 9129) + '\x65')('\165' + chr(2551 - 2435) + '\146' + '\x2d' + '\x38')), log_rhos=xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8c*\xd3?\xa0\xa3\x0f\x81'), '\144' + chr(1833 - 1732) + '\x63' + '\157' + chr(100) + '\x65')(chr(117) + chr(0b1110100) + chr(102) + chr(0b101010 + 0o3) + '\x38')), behaviour_action_log_probs=xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\x934\xc1\x05\xb7\xb1\x05'), chr(2413 - 2313) + '\145' + chr(99) + chr(0b100111 + 0o110) + chr(0b100000 + 0o104) + chr(0b10001 + 0o124))(chr(5279 - 5162) + chr(0b1000111 + 0o55) + chr(9459 - 9357) + '\055' + '\x38'))(xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\x82 \xdc\x01\xa4\xa2\x0f\x87\xb7\x98\x05@\x16\xa4c\x90\x99V(\xf8\x03\xb8V\x7f\xb6/'), '\x64' + chr(0b1010100 + 0o21) + chr(0b1100011) + chr(0b1011101 + 0o22) + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000))), axis=ehT0Px3KOsy9(chr(1163 - 1115) + chr(111) + chr(0b110000), 0b1000)), target_action_log_probs=xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\x934\xc1\x05\xb7\xb1\x05'), chr(7834 - 7734) + chr(1604 - 1503) + chr(0b110001 + 0o62) + '\x6f' + '\x64' + chr(101))(chr(117) + chr(116) + chr(102) + chr(416 - 371) + chr(0b10101 + 0o43)))(xafqLlk3kkUe(MsbwfslwLjRO, xafqLlk3kkUe(SXOLrMavuUCe(b'\x94$\xc6\x07\xb7\xbf?\x93\xa6\xb3\rL\x0c\x92`\x91\xa1e7\xed3\xaaW'), '\144' + '\145' + chr(99) + chr(0b101010 + 0o105) + chr(0b100000 + 0o104) + chr(0b1100101))('\165' + chr(116) + chr(6207 - 6105) + '\x2d' + chr(375 - 319))), axis=ehT0Px3KOsy9(chr(0b101001 + 0o7) + '\157' + chr(0b110000), 8)))
ray-project/ray
python/ray/rllib/agents/impala/vtrace.py
multi_from_logits
def multi_from_logits(behaviour_policy_logits, target_policy_logits, actions, discounts, rewards, values, bootstrap_value, clip_rho_threshold=1.0, clip_pg_rho_threshold=1.0, name="vtrace_from_logits"): r"""V-trace for softmax policies. Calculates V-trace actor critic targets for softmax polices as described in "IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architectures" by Espeholt, Soyer, Munos et al. Target policy refers to the policy we are interested in improving and behaviour policy refers to the policy that generated the given rewards and actions. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size and ACTION_SPACE refers to the list of numbers each representing a number of actions. Args: behaviour_policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing the softmax behaviour policy. target_policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing the softmax target policy. actions: A list with length of ACTION_SPACE of int32 tensors of shapes [T, B], ..., [T, B] with actions sampled from the behaviour policy. discounts: A float32 tensor of shape [T, B] with the discount encountered when following the behaviour policy. rewards: A float32 tensor of shape [T, B] with the rewards generated by following the behaviour policy. values: A float32 tensor of shape [T, B] with the value function estimates wrt. the target policy. bootstrap_value: A float32 of shape [B] with the value function estimate at time T. clip_rho_threshold: A scalar float32 tensor with the clipping threshold for importance weights (rho) when calculating the baseline targets (vs). rho^bar in the paper. clip_pg_rho_threshold: A scalar float32 tensor with the clipping threshold on rho_s in \rho_s \delta log \pi(a|x) (r + \gamma v_{s+1} - V(x_s)). name: The name scope that all V-trace operations will be created in. Returns: A `VTraceFromLogitsReturns` namedtuple with the following fields: vs: A float32 tensor of shape [T, B]. Can be used as target to train a baseline (V(x_t) - vs_t)^2. pg_advantages: A float 32 tensor of shape [T, B]. Can be used as an estimate of the advantage in the calculation of policy gradients. log_rhos: A float32 tensor of shape [T, B] containing the log importance sampling weights (log rhos). behaviour_action_log_probs: A float32 tensor of shape [T, B] containing behaviour policy action log probabilities (log \mu(a_t)). target_action_log_probs: A float32 tensor of shape [T, B] containing target policy action probabilities (log \pi(a_t)). """ for i in range(len(behaviour_policy_logits)): behaviour_policy_logits[i] = tf.convert_to_tensor( behaviour_policy_logits[i], dtype=tf.float32) target_policy_logits[i] = tf.convert_to_tensor( target_policy_logits[i], dtype=tf.float32) actions[i] = tf.convert_to_tensor(actions[i], dtype=tf.int32) # Make sure tensor ranks are as expected. # The rest will be checked by from_action_log_probs. behaviour_policy_logits[i].shape.assert_has_rank(3) target_policy_logits[i].shape.assert_has_rank(3) actions[i].shape.assert_has_rank(2) with tf.name_scope( name, values=[ behaviour_policy_logits, target_policy_logits, actions, discounts, rewards, values, bootstrap_value ]): target_action_log_probs = multi_log_probs_from_logits_and_actions( target_policy_logits, actions) behaviour_action_log_probs = multi_log_probs_from_logits_and_actions( behaviour_policy_logits, actions) log_rhos = get_log_rhos(target_action_log_probs, behaviour_action_log_probs) vtrace_returns = from_importance_weights( log_rhos=log_rhos, discounts=discounts, rewards=rewards, values=values, bootstrap_value=bootstrap_value, clip_rho_threshold=clip_rho_threshold, clip_pg_rho_threshold=clip_pg_rho_threshold) return VTraceFromLogitsReturns( log_rhos=log_rhos, behaviour_action_log_probs=behaviour_action_log_probs, target_action_log_probs=target_action_log_probs, **vtrace_returns._asdict())
python
def multi_from_logits(behaviour_policy_logits, target_policy_logits, actions, discounts, rewards, values, bootstrap_value, clip_rho_threshold=1.0, clip_pg_rho_threshold=1.0, name="vtrace_from_logits"): r"""V-trace for softmax policies. Calculates V-trace actor critic targets for softmax polices as described in "IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architectures" by Espeholt, Soyer, Munos et al. Target policy refers to the policy we are interested in improving and behaviour policy refers to the policy that generated the given rewards and actions. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size and ACTION_SPACE refers to the list of numbers each representing a number of actions. Args: behaviour_policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing the softmax behaviour policy. target_policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing the softmax target policy. actions: A list with length of ACTION_SPACE of int32 tensors of shapes [T, B], ..., [T, B] with actions sampled from the behaviour policy. discounts: A float32 tensor of shape [T, B] with the discount encountered when following the behaviour policy. rewards: A float32 tensor of shape [T, B] with the rewards generated by following the behaviour policy. values: A float32 tensor of shape [T, B] with the value function estimates wrt. the target policy. bootstrap_value: A float32 of shape [B] with the value function estimate at time T. clip_rho_threshold: A scalar float32 tensor with the clipping threshold for importance weights (rho) when calculating the baseline targets (vs). rho^bar in the paper. clip_pg_rho_threshold: A scalar float32 tensor with the clipping threshold on rho_s in \rho_s \delta log \pi(a|x) (r + \gamma v_{s+1} - V(x_s)). name: The name scope that all V-trace operations will be created in. Returns: A `VTraceFromLogitsReturns` namedtuple with the following fields: vs: A float32 tensor of shape [T, B]. Can be used as target to train a baseline (V(x_t) - vs_t)^2. pg_advantages: A float 32 tensor of shape [T, B]. Can be used as an estimate of the advantage in the calculation of policy gradients. log_rhos: A float32 tensor of shape [T, B] containing the log importance sampling weights (log rhos). behaviour_action_log_probs: A float32 tensor of shape [T, B] containing behaviour policy action log probabilities (log \mu(a_t)). target_action_log_probs: A float32 tensor of shape [T, B] containing target policy action probabilities (log \pi(a_t)). """ for i in range(len(behaviour_policy_logits)): behaviour_policy_logits[i] = tf.convert_to_tensor( behaviour_policy_logits[i], dtype=tf.float32) target_policy_logits[i] = tf.convert_to_tensor( target_policy_logits[i], dtype=tf.float32) actions[i] = tf.convert_to_tensor(actions[i], dtype=tf.int32) # Make sure tensor ranks are as expected. # The rest will be checked by from_action_log_probs. behaviour_policy_logits[i].shape.assert_has_rank(3) target_policy_logits[i].shape.assert_has_rank(3) actions[i].shape.assert_has_rank(2) with tf.name_scope( name, values=[ behaviour_policy_logits, target_policy_logits, actions, discounts, rewards, values, bootstrap_value ]): target_action_log_probs = multi_log_probs_from_logits_and_actions( target_policy_logits, actions) behaviour_action_log_probs = multi_log_probs_from_logits_and_actions( behaviour_policy_logits, actions) log_rhos = get_log_rhos(target_action_log_probs, behaviour_action_log_probs) vtrace_returns = from_importance_weights( log_rhos=log_rhos, discounts=discounts, rewards=rewards, values=values, bootstrap_value=bootstrap_value, clip_rho_threshold=clip_rho_threshold, clip_pg_rho_threshold=clip_pg_rho_threshold) return VTraceFromLogitsReturns( log_rhos=log_rhos, behaviour_action_log_probs=behaviour_action_log_probs, target_action_log_probs=target_action_log_probs, **vtrace_returns._asdict())
[ "def", "multi_from_logits", "(", "behaviour_policy_logits", ",", "target_policy_logits", ",", "actions", ",", "discounts", ",", "rewards", ",", "values", ",", "bootstrap_value", ",", "clip_rho_threshold", "=", "1.0", ",", "clip_pg_rho_threshold", "=", "1.0", ",", "name", "=", "\"vtrace_from_logits\"", ")", ":", "for", "i", "in", "range", "(", "len", "(", "behaviour_policy_logits", ")", ")", ":", "behaviour_policy_logits", "[", "i", "]", "=", "tf", ".", "convert_to_tensor", "(", "behaviour_policy_logits", "[", "i", "]", ",", "dtype", "=", "tf", ".", "float32", ")", "target_policy_logits", "[", "i", "]", "=", "tf", ".", "convert_to_tensor", "(", "target_policy_logits", "[", "i", "]", ",", "dtype", "=", "tf", ".", "float32", ")", "actions", "[", "i", "]", "=", "tf", ".", "convert_to_tensor", "(", "actions", "[", "i", "]", ",", "dtype", "=", "tf", ".", "int32", ")", "# Make sure tensor ranks are as expected.", "# The rest will be checked by from_action_log_probs.", "behaviour_policy_logits", "[", "i", "]", ".", "shape", ".", "assert_has_rank", "(", "3", ")", "target_policy_logits", "[", "i", "]", ".", "shape", ".", "assert_has_rank", "(", "3", ")", "actions", "[", "i", "]", ".", "shape", ".", "assert_has_rank", "(", "2", ")", "with", "tf", ".", "name_scope", "(", "name", ",", "values", "=", "[", "behaviour_policy_logits", ",", "target_policy_logits", ",", "actions", ",", "discounts", ",", "rewards", ",", "values", ",", "bootstrap_value", "]", ")", ":", "target_action_log_probs", "=", "multi_log_probs_from_logits_and_actions", "(", "target_policy_logits", ",", "actions", ")", "behaviour_action_log_probs", "=", "multi_log_probs_from_logits_and_actions", "(", "behaviour_policy_logits", ",", "actions", ")", "log_rhos", "=", "get_log_rhos", "(", "target_action_log_probs", ",", "behaviour_action_log_probs", ")", "vtrace_returns", "=", "from_importance_weights", "(", "log_rhos", "=", "log_rhos", ",", "discounts", "=", "discounts", ",", "rewards", "=", "rewards", ",", "values", "=", "values", ",", "bootstrap_value", "=", "bootstrap_value", ",", "clip_rho_threshold", "=", "clip_rho_threshold", ",", "clip_pg_rho_threshold", "=", "clip_pg_rho_threshold", ")", "return", "VTraceFromLogitsReturns", "(", "log_rhos", "=", "log_rhos", ",", "behaviour_action_log_probs", "=", "behaviour_action_log_probs", ",", "target_action_log_probs", "=", "target_action_log_probs", ",", "*", "*", "vtrace_returns", ".", "_asdict", "(", ")", ")" ]
r"""V-trace for softmax policies. Calculates V-trace actor critic targets for softmax polices as described in "IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architectures" by Espeholt, Soyer, Munos et al. Target policy refers to the policy we are interested in improving and behaviour policy refers to the policy that generated the given rewards and actions. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size and ACTION_SPACE refers to the list of numbers each representing a number of actions. Args: behaviour_policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing the softmax behaviour policy. target_policy_logits: A list with length of ACTION_SPACE of float32 tensors of shapes [T, B, ACTION_SPACE[0]], ..., [T, B, ACTION_SPACE[-1]] with un-normalized log-probabilities parameterizing the softmax target policy. actions: A list with length of ACTION_SPACE of int32 tensors of shapes [T, B], ..., [T, B] with actions sampled from the behaviour policy. discounts: A float32 tensor of shape [T, B] with the discount encountered when following the behaviour policy. rewards: A float32 tensor of shape [T, B] with the rewards generated by following the behaviour policy. values: A float32 tensor of shape [T, B] with the value function estimates wrt. the target policy. bootstrap_value: A float32 of shape [B] with the value function estimate at time T. clip_rho_threshold: A scalar float32 tensor with the clipping threshold for importance weights (rho) when calculating the baseline targets (vs). rho^bar in the paper. clip_pg_rho_threshold: A scalar float32 tensor with the clipping threshold on rho_s in \rho_s \delta log \pi(a|x) (r + \gamma v_{s+1} - V(x_s)). name: The name scope that all V-trace operations will be created in. Returns: A `VTraceFromLogitsReturns` namedtuple with the following fields: vs: A float32 tensor of shape [T, B]. Can be used as target to train a baseline (V(x_t) - vs_t)^2. pg_advantages: A float 32 tensor of shape [T, B]. Can be used as an estimate of the advantage in the calculation of policy gradients. log_rhos: A float32 tensor of shape [T, B] containing the log importance sampling weights (log rhos). behaviour_action_log_probs: A float32 tensor of shape [T, B] containing behaviour policy action log probabilities (log \mu(a_t)). target_action_log_probs: A float32 tensor of shape [T, B] containing target policy action probabilities (log \pi(a_t)).
[ "r", "V", "-", "trace", "for", "softmax", "policies", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/impala/vtrace.py#L127-L244
train
r Returns a list of V - trace actor critic targets for the given set of policy logits.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IyS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BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b11101 + 0o23) + chr(0b1101111) + chr(1810 - 1759) + chr(1713 - 1663) + '\067', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + chr(0b11000 + 0o34), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + '\065', ord("\x08")), ehT0Px3KOsy9(chr(933 - 885) + chr(0b1101011 + 0o4) + '\061' + chr(0b101010 + 0o7) + '\067', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + '\x32' + chr(760 - 710), 0b1000), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b11111 + 0o120) + chr(405 - 352) + '\067', 33400 - 33392), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(0b1000 + 0o51) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(1059 - 1011) + chr(0b1101111) + chr(0b0 + 0o62) + chr(0b110111) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + chr(0b1101111) + chr(0b110100) + '\066', 6503 - 6495), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10001 + 0o42) + chr(2151 - 2101) + '\062', 45454 - 45446), ehT0Px3KOsy9(chr(0b1010 + 0o46) + chr(8175 - 8064) + chr(49) + chr(50) + chr(52), 0b1000), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\x6f' + '\x30', 62681 - 62673), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + '\x33', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1110 + 0o141) + '\061' + chr(53) + chr(0b10011 + 0o43), 0b1000), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1101111) + chr(52) + chr(2178 - 2127), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1010001 + 0o36) + chr(984 - 934) + '\x32', 42546 - 42538), ehT0Px3KOsy9(chr(48) + chr(111) + '\x31' + chr(48), 58896 - 58888), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010010 + 0o35) + '\063' + '\061' + '\061', 0o10), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\x6f' + chr(49) + '\065' + chr(50), 0o10), ehT0Px3KOsy9(chr(1777 - 1729) + '\x6f' + '\x31' + '\x30' + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(963 - 915) + '\157' + '\x33' + '\060' + chr(0b110001), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + '\x33' + chr(54) + chr(0b101011 + 0o5), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2324 - 2274) + chr(0b110101) + chr(50), 0b1000), ehT0Px3KOsy9(chr(964 - 916) + '\157' + chr(0b110001) + chr(0b1 + 0o63) + '\060', 0o10), ehT0Px3KOsy9('\060' + chr(0b1001100 + 0o43) + chr(0b110010) + chr(0b1100 + 0o47) + chr(0b100101 + 0o13), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b11100 + 0o123) + chr(2228 - 2179) + chr(782 - 727) + chr(0b101110 + 0o5), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(51) + '\065' + '\x36', ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(1577 - 1526) + '\060' + chr(0b10110 + 0o40), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b11010 + 0o125) + chr(0b1101 + 0o44) + chr(53) + '\x37', 46341 - 46333), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\062' + chr(0b110101) + '\x32', 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + '\x36' + chr(0b110111), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b11 + 0o154) + chr(0b110010) + chr(2046 - 1993) + chr(0b110111), 9280 - 9272), ehT0Px3KOsy9(chr(48) + chr(6828 - 6717) + '\x31' + chr(0b10110 + 0o32) + chr(0b100000 + 0o26), 0b1000), ehT0Px3KOsy9(chr(1932 - 1884) + '\x6f' + chr(0b110010) + chr(0b10101 + 0o37) + chr(0b110110), 4797 - 4789), ehT0Px3KOsy9('\060' + '\157' + chr(0b10011 + 0o40) + chr(0b11111 + 0o30) + '\062', 0o10), ehT0Px3KOsy9(chr(1231 - 1183) + chr(0b1101111) + chr(49) + '\x35' + '\x37', 8), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + '\063' + chr(0b10110 + 0o37), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100100 + 0o13) + '\061' + '\067' + '\060', 13173 - 13165), ehT0Px3KOsy9('\060' + chr(3152 - 3041) + chr(0b100001 + 0o22) + '\x32' + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + '\x33' + chr(55), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + chr(111) + '\x35' + '\060', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9'), chr(3205 - 3105) + chr(101) + chr(0b1100011) + chr(0b11001 + 0o126) + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + '\146' + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def mmxOYYyWiYsN(Xno22CdPLB2f, juL349whBRNa, WCl6VUkME_8I, VFM4g1zZHluc, yrDfr6ll4Ijz, SPnCNu54H1db, BGEwz98mEQSl, X9z9SPLMFxV2=1.0, EsLFJeV3E9KX=1.0, AIvJRzLdDfgF=xafqLlk3kkUe(SXOLrMavuUCe(b'\xa1x\x7f.1J\x97\xd9T\xbd9_w\x01D{|\xba'), chr(0b11000 + 0o114) + chr(3326 - 3225) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(45) + '\070')): for WVxHKyX45z_L in vQr8gNKaIaWE(c2A0yzQpDQB3(Xno22CdPLB2f)): Xno22CdPLB2f[WVxHKyX45z_L] = IDJ2eXGCBCDu.convert_to_tensor(Xno22CdPLB2f[WVxHKyX45z_L], dtype=IDJ2eXGCBCDu.float32) juL349whBRNa[WVxHKyX45z_L] = IDJ2eXGCBCDu.convert_to_tensor(juL349whBRNa[WVxHKyX45z_L], dtype=IDJ2eXGCBCDu.float32) WCl6VUkME_8I[WVxHKyX45z_L] = IDJ2eXGCBCDu.convert_to_tensor(WCl6VUkME_8I[WVxHKyX45z_L], dtype=IDJ2eXGCBCDu.int32) xafqLlk3kkUe(Xno22CdPLB2f[WVxHKyX45z_L].shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb6\x7f~* [\x97\xd7G\xa1\x0brz\x00H'), chr(3956 - 3856) + chr(3816 - 3715) + chr(0b1100011) + chr(0b1100001 + 0o16) + chr(0b1010010 + 0o22) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + '\070'))(ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\063', 23339 - 23331)) xafqLlk3kkUe(juL349whBRNa[WVxHKyX45z_L].shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb6\x7f~* [\x97\xd7G\xa1\x0brz\x00H'), chr(0b1100100) + chr(3751 - 3650) + chr(0b11001 + 0o112) + '\157' + '\x64' + '\145')('\x75' + chr(0b1010001 + 0o43) + '\146' + '\x2d' + chr(0b110100 + 0o4)))(ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(51), 8)) xafqLlk3kkUe(WCl6VUkME_8I[WVxHKyX45z_L].shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb6\x7f~* [\x97\xd7G\xa1\x0brz\x00H'), chr(100) + '\145' + chr(5169 - 5070) + '\x6f' + chr(9369 - 9269) + chr(0b100 + 0o141))('\165' + chr(6042 - 5926) + chr(0b10000 + 0o126) + chr(0b101101) + chr(0b110100 + 0o4)))(ehT0Px3KOsy9('\060' + '\157' + chr(0b110010), 0b1000)) with xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xb9m`*\r\\\xab\xd0V\xb7'), '\144' + '\145' + '\143' + chr(1560 - 1449) + '\x64' + '\145')(chr(117) + '\164' + chr(102) + chr(0b101 + 0o50) + chr(0b110100 + 0o4)))(AIvJRzLdDfgF, values=[Xno22CdPLB2f, juL349whBRNa, WCl6VUkME_8I, VFM4g1zZHluc, yrDfr6ll4Ijz, SPnCNu54H1db, BGEwz98mEQSl]): AeLSqZSloyl9 = PWV55ob1dnAE(juL349whBRNa, WCl6VUkME_8I) Ep633ksP8Zlg = PWV55ob1dnAE(Xno22CdPLB2f, WCl6VUkME_8I) m8W79YPv1Nxz = JQXiyi238OVT(AeLSqZSloyl9, Ep633ksP8Zlg) TDdsbJ2PpOfy = HqcSeNAMzVSN(log_rhos=m8W79YPv1Nxz, discounts=VFM4g1zZHluc, rewards=yrDfr6ll4Ijz, values=SPnCNu54H1db, bootstrap_value=BGEwz98mEQSl, clip_rho_threshold=X9z9SPLMFxV2, clip_pg_rho_threshold=EsLFJeV3E9KX) return lWhgAYaC_DFn(log_rhos=m8W79YPv1Nxz, behaviour_action_log_probs=Ep633ksP8Zlg, target_action_log_probs=AeLSqZSloyl9, **xafqLlk3kkUe(TDdsbJ2PpOfy, xafqLlk3kkUe(SXOLrMavuUCe(b'\x88m~+;L\xbc'), '\x64' + chr(0b1100101) + chr(0b100011 + 0o100) + '\157' + chr(100) + chr(0b1001010 + 0o33))('\x75' + chr(116) + '\146' + chr(45) + chr(0b111000)))())
ray-project/ray
python/ray/rllib/agents/impala/vtrace.py
from_importance_weights
def from_importance_weights(log_rhos, discounts, rewards, values, bootstrap_value, clip_rho_threshold=1.0, clip_pg_rho_threshold=1.0, name="vtrace_from_importance_weights"): r"""V-trace from log importance weights. Calculates V-trace actor critic targets as described in "IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architectures" by Espeholt, Soyer, Munos et al. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size. This code also supports the case where all tensors have the same number of additional dimensions, e.g., `rewards` is [T, B, C], `values` is [T, B, C], `bootstrap_value` is [B, C]. Args: log_rhos: A float32 tensor of shape [T, B] representing the log importance sampling weights, i.e. log(target_policy(a) / behaviour_policy(a)). V-trace performs operations on rhos in log-space for numerical stability. discounts: A float32 tensor of shape [T, B] with discounts encountered when following the behaviour policy. rewards: A float32 tensor of shape [T, B] containing rewards generated by following the behaviour policy. values: A float32 tensor of shape [T, B] with the value function estimates wrt. the target policy. bootstrap_value: A float32 of shape [B] with the value function estimate at time T. clip_rho_threshold: A scalar float32 tensor with the clipping threshold for importance weights (rho) when calculating the baseline targets (vs). rho^bar in the paper. If None, no clipping is applied. clip_pg_rho_threshold: A scalar float32 tensor with the clipping threshold on rho_s in \rho_s \delta log \pi(a|x) (r + \gamma v_{s+1} - V(x_s)). If None, no clipping is applied. name: The name scope that all V-trace operations will be created in. Returns: A VTraceReturns namedtuple (vs, pg_advantages) where: vs: A float32 tensor of shape [T, B]. Can be used as target to train a baseline (V(x_t) - vs_t)^2. pg_advantages: A float32 tensor of shape [T, B]. Can be used as the advantage in the calculation of policy gradients. """ log_rhos = tf.convert_to_tensor(log_rhos, dtype=tf.float32) discounts = tf.convert_to_tensor(discounts, dtype=tf.float32) rewards = tf.convert_to_tensor(rewards, dtype=tf.float32) values = tf.convert_to_tensor(values, dtype=tf.float32) bootstrap_value = tf.convert_to_tensor(bootstrap_value, dtype=tf.float32) if clip_rho_threshold is not None: clip_rho_threshold = tf.convert_to_tensor( clip_rho_threshold, dtype=tf.float32) if clip_pg_rho_threshold is not None: clip_pg_rho_threshold = tf.convert_to_tensor( clip_pg_rho_threshold, dtype=tf.float32) # Make sure tensor ranks are consistent. rho_rank = log_rhos.shape.ndims # Usually 2. values.shape.assert_has_rank(rho_rank) bootstrap_value.shape.assert_has_rank(rho_rank - 1) discounts.shape.assert_has_rank(rho_rank) rewards.shape.assert_has_rank(rho_rank) if clip_rho_threshold is not None: clip_rho_threshold.shape.assert_has_rank(0) if clip_pg_rho_threshold is not None: clip_pg_rho_threshold.shape.assert_has_rank(0) with tf.name_scope( name, values=[log_rhos, discounts, rewards, values, bootstrap_value]): rhos = tf.exp(log_rhos) if clip_rho_threshold is not None: clipped_rhos = tf.minimum( clip_rho_threshold, rhos, name="clipped_rhos") tf.summary.histogram("clipped_rhos_1000", tf.minimum(1000.0, rhos)) tf.summary.scalar( "num_of_clipped_rhos", tf.reduce_sum( tf.cast( tf.equal(clipped_rhos, clip_rho_threshold), tf.int32))) tf.summary.scalar("size_of_clipped_rhos", tf.size(clipped_rhos)) else: clipped_rhos = rhos cs = tf.minimum(1.0, rhos, name="cs") # Append bootstrapped value to get [v1, ..., v_t+1] values_t_plus_1 = tf.concat( [values[1:], tf.expand_dims(bootstrap_value, 0)], axis=0) deltas = clipped_rhos * ( rewards + discounts * values_t_plus_1 - values) # All sequences are reversed, computation starts from the back. sequences = ( tf.reverse(discounts, axis=[0]), tf.reverse(cs, axis=[0]), tf.reverse(deltas, axis=[0]), ) # V-trace vs are calculated through a scan from the back to the # beginning of the given trajectory. def scanfunc(acc, sequence_item): discount_t, c_t, delta_t = sequence_item return delta_t + discount_t * c_t * acc initial_values = tf.zeros_like(bootstrap_value) vs_minus_v_xs = tf.scan( fn=scanfunc, elems=sequences, initializer=initial_values, parallel_iterations=1, back_prop=False, name="scan") # Reverse the results back to original order. vs_minus_v_xs = tf.reverse(vs_minus_v_xs, [0], name="vs_minus_v_xs") # Add V(x_s) to get v_s. vs = tf.add(vs_minus_v_xs, values, name="vs") # Advantage for policy gradient. vs_t_plus_1 = tf.concat( [vs[1:], tf.expand_dims(bootstrap_value, 0)], axis=0) if clip_pg_rho_threshold is not None: clipped_pg_rhos = tf.minimum( clip_pg_rho_threshold, rhos, name="clipped_pg_rhos") else: clipped_pg_rhos = rhos pg_advantages = ( clipped_pg_rhos * (rewards + discounts * vs_t_plus_1 - values)) # Make sure no gradients backpropagated through the returned values. return VTraceReturns( vs=tf.stop_gradient(vs), pg_advantages=tf.stop_gradient(pg_advantages))
python
def from_importance_weights(log_rhos, discounts, rewards, values, bootstrap_value, clip_rho_threshold=1.0, clip_pg_rho_threshold=1.0, name="vtrace_from_importance_weights"): r"""V-trace from log importance weights. Calculates V-trace actor critic targets as described in "IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architectures" by Espeholt, Soyer, Munos et al. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size. This code also supports the case where all tensors have the same number of additional dimensions, e.g., `rewards` is [T, B, C], `values` is [T, B, C], `bootstrap_value` is [B, C]. Args: log_rhos: A float32 tensor of shape [T, B] representing the log importance sampling weights, i.e. log(target_policy(a) / behaviour_policy(a)). V-trace performs operations on rhos in log-space for numerical stability. discounts: A float32 tensor of shape [T, B] with discounts encountered when following the behaviour policy. rewards: A float32 tensor of shape [T, B] containing rewards generated by following the behaviour policy. values: A float32 tensor of shape [T, B] with the value function estimates wrt. the target policy. bootstrap_value: A float32 of shape [B] with the value function estimate at time T. clip_rho_threshold: A scalar float32 tensor with the clipping threshold for importance weights (rho) when calculating the baseline targets (vs). rho^bar in the paper. If None, no clipping is applied. clip_pg_rho_threshold: A scalar float32 tensor with the clipping threshold on rho_s in \rho_s \delta log \pi(a|x) (r + \gamma v_{s+1} - V(x_s)). If None, no clipping is applied. name: The name scope that all V-trace operations will be created in. Returns: A VTraceReturns namedtuple (vs, pg_advantages) where: vs: A float32 tensor of shape [T, B]. Can be used as target to train a baseline (V(x_t) - vs_t)^2. pg_advantages: A float32 tensor of shape [T, B]. Can be used as the advantage in the calculation of policy gradients. """ log_rhos = tf.convert_to_tensor(log_rhos, dtype=tf.float32) discounts = tf.convert_to_tensor(discounts, dtype=tf.float32) rewards = tf.convert_to_tensor(rewards, dtype=tf.float32) values = tf.convert_to_tensor(values, dtype=tf.float32) bootstrap_value = tf.convert_to_tensor(bootstrap_value, dtype=tf.float32) if clip_rho_threshold is not None: clip_rho_threshold = tf.convert_to_tensor( clip_rho_threshold, dtype=tf.float32) if clip_pg_rho_threshold is not None: clip_pg_rho_threshold = tf.convert_to_tensor( clip_pg_rho_threshold, dtype=tf.float32) # Make sure tensor ranks are consistent. rho_rank = log_rhos.shape.ndims # Usually 2. values.shape.assert_has_rank(rho_rank) bootstrap_value.shape.assert_has_rank(rho_rank - 1) discounts.shape.assert_has_rank(rho_rank) rewards.shape.assert_has_rank(rho_rank) if clip_rho_threshold is not None: clip_rho_threshold.shape.assert_has_rank(0) if clip_pg_rho_threshold is not None: clip_pg_rho_threshold.shape.assert_has_rank(0) with tf.name_scope( name, values=[log_rhos, discounts, rewards, values, bootstrap_value]): rhos = tf.exp(log_rhos) if clip_rho_threshold is not None: clipped_rhos = tf.minimum( clip_rho_threshold, rhos, name="clipped_rhos") tf.summary.histogram("clipped_rhos_1000", tf.minimum(1000.0, rhos)) tf.summary.scalar( "num_of_clipped_rhos", tf.reduce_sum( tf.cast( tf.equal(clipped_rhos, clip_rho_threshold), tf.int32))) tf.summary.scalar("size_of_clipped_rhos", tf.size(clipped_rhos)) else: clipped_rhos = rhos cs = tf.minimum(1.0, rhos, name="cs") # Append bootstrapped value to get [v1, ..., v_t+1] values_t_plus_1 = tf.concat( [values[1:], tf.expand_dims(bootstrap_value, 0)], axis=0) deltas = clipped_rhos * ( rewards + discounts * values_t_plus_1 - values) # All sequences are reversed, computation starts from the back. sequences = ( tf.reverse(discounts, axis=[0]), tf.reverse(cs, axis=[0]), tf.reverse(deltas, axis=[0]), ) # V-trace vs are calculated through a scan from the back to the # beginning of the given trajectory. def scanfunc(acc, sequence_item): discount_t, c_t, delta_t = sequence_item return delta_t + discount_t * c_t * acc initial_values = tf.zeros_like(bootstrap_value) vs_minus_v_xs = tf.scan( fn=scanfunc, elems=sequences, initializer=initial_values, parallel_iterations=1, back_prop=False, name="scan") # Reverse the results back to original order. vs_minus_v_xs = tf.reverse(vs_minus_v_xs, [0], name="vs_minus_v_xs") # Add V(x_s) to get v_s. vs = tf.add(vs_minus_v_xs, values, name="vs") # Advantage for policy gradient. vs_t_plus_1 = tf.concat( [vs[1:], tf.expand_dims(bootstrap_value, 0)], axis=0) if clip_pg_rho_threshold is not None: clipped_pg_rhos = tf.minimum( clip_pg_rho_threshold, rhos, name="clipped_pg_rhos") else: clipped_pg_rhos = rhos pg_advantages = ( clipped_pg_rhos * (rewards + discounts * vs_t_plus_1 - values)) # Make sure no gradients backpropagated through the returned values. return VTraceReturns( vs=tf.stop_gradient(vs), pg_advantages=tf.stop_gradient(pg_advantages))
[ "def", "from_importance_weights", "(", "log_rhos", ",", "discounts", ",", "rewards", ",", "values", ",", "bootstrap_value", ",", "clip_rho_threshold", "=", "1.0", ",", "clip_pg_rho_threshold", "=", "1.0", ",", "name", "=", "\"vtrace_from_importance_weights\"", ")", ":", "log_rhos", "=", "tf", ".", "convert_to_tensor", "(", "log_rhos", ",", "dtype", "=", "tf", ".", "float32", ")", "discounts", "=", "tf", ".", "convert_to_tensor", "(", "discounts", ",", "dtype", "=", "tf", ".", "float32", ")", "rewards", "=", "tf", ".", "convert_to_tensor", "(", "rewards", ",", "dtype", "=", "tf", ".", "float32", ")", "values", "=", "tf", ".", "convert_to_tensor", "(", "values", ",", "dtype", "=", "tf", ".", "float32", ")", "bootstrap_value", "=", "tf", ".", "convert_to_tensor", "(", "bootstrap_value", ",", "dtype", "=", "tf", ".", "float32", ")", "if", "clip_rho_threshold", "is", "not", "None", ":", "clip_rho_threshold", "=", "tf", ".", "convert_to_tensor", "(", "clip_rho_threshold", ",", "dtype", "=", "tf", ".", "float32", ")", "if", "clip_pg_rho_threshold", "is", "not", "None", ":", "clip_pg_rho_threshold", "=", "tf", ".", "convert_to_tensor", "(", "clip_pg_rho_threshold", ",", "dtype", "=", "tf", ".", "float32", ")", "# Make sure tensor ranks are consistent.", "rho_rank", "=", "log_rhos", ".", "shape", ".", "ndims", "# Usually 2.", "values", ".", "shape", ".", "assert_has_rank", "(", "rho_rank", ")", "bootstrap_value", ".", "shape", ".", "assert_has_rank", "(", "rho_rank", "-", "1", ")", "discounts", ".", "shape", ".", "assert_has_rank", "(", "rho_rank", ")", "rewards", ".", "shape", ".", "assert_has_rank", "(", "rho_rank", ")", "if", "clip_rho_threshold", "is", "not", "None", ":", "clip_rho_threshold", ".", "shape", ".", "assert_has_rank", "(", "0", ")", "if", "clip_pg_rho_threshold", "is", "not", "None", ":", "clip_pg_rho_threshold", ".", "shape", ".", "assert_has_rank", "(", "0", ")", "with", "tf", ".", "name_scope", "(", "name", ",", "values", "=", "[", "log_rhos", ",", "discounts", ",", "rewards", ",", "values", ",", "bootstrap_value", "]", ")", ":", "rhos", "=", "tf", ".", "exp", "(", "log_rhos", ")", "if", "clip_rho_threshold", "is", "not", "None", ":", "clipped_rhos", "=", "tf", ".", "minimum", "(", "clip_rho_threshold", ",", "rhos", ",", "name", "=", "\"clipped_rhos\"", ")", "tf", ".", "summary", ".", "histogram", "(", "\"clipped_rhos_1000\"", ",", "tf", ".", "minimum", "(", "1000.0", ",", "rhos", ")", ")", "tf", ".", "summary", ".", "scalar", "(", "\"num_of_clipped_rhos\"", ",", "tf", ".", "reduce_sum", "(", "tf", ".", "cast", "(", "tf", ".", "equal", "(", "clipped_rhos", ",", "clip_rho_threshold", ")", ",", "tf", ".", "int32", ")", ")", ")", "tf", ".", "summary", ".", "scalar", "(", "\"size_of_clipped_rhos\"", ",", "tf", ".", "size", "(", "clipped_rhos", ")", ")", "else", ":", "clipped_rhos", "=", "rhos", "cs", "=", "tf", ".", "minimum", "(", "1.0", ",", "rhos", ",", "name", "=", "\"cs\"", ")", "# Append bootstrapped value to get [v1, ..., v_t+1]", "values_t_plus_1", "=", "tf", ".", "concat", "(", "[", "values", "[", "1", ":", "]", ",", "tf", ".", "expand_dims", "(", "bootstrap_value", ",", "0", ")", "]", ",", "axis", "=", "0", ")", "deltas", "=", "clipped_rhos", "*", "(", "rewards", "+", "discounts", "*", "values_t_plus_1", "-", "values", ")", "# All sequences are reversed, computation starts from the back.", "sequences", "=", "(", "tf", ".", "reverse", "(", "discounts", ",", "axis", "=", "[", "0", "]", ")", ",", "tf", ".", "reverse", "(", "cs", ",", "axis", "=", "[", "0", "]", ")", ",", "tf", ".", "reverse", "(", "deltas", ",", "axis", "=", "[", "0", "]", ")", ",", ")", "# V-trace vs are calculated through a scan from the back to the", "# beginning of the given trajectory.", "def", "scanfunc", "(", "acc", ",", "sequence_item", ")", ":", "discount_t", ",", "c_t", ",", "delta_t", "=", "sequence_item", "return", "delta_t", "+", "discount_t", "*", "c_t", "*", "acc", "initial_values", "=", "tf", ".", "zeros_like", "(", "bootstrap_value", ")", "vs_minus_v_xs", "=", "tf", ".", "scan", "(", "fn", "=", "scanfunc", ",", "elems", "=", "sequences", ",", "initializer", "=", "initial_values", ",", "parallel_iterations", "=", "1", ",", "back_prop", "=", "False", ",", "name", "=", "\"scan\"", ")", "# Reverse the results back to original order.", "vs_minus_v_xs", "=", "tf", ".", "reverse", "(", "vs_minus_v_xs", ",", "[", "0", "]", ",", "name", "=", "\"vs_minus_v_xs\"", ")", "# Add V(x_s) to get v_s.", "vs", "=", "tf", ".", "add", "(", "vs_minus_v_xs", ",", "values", ",", "name", "=", "\"vs\"", ")", "# Advantage for policy gradient.", "vs_t_plus_1", "=", "tf", ".", "concat", "(", "[", "vs", "[", "1", ":", "]", ",", "tf", ".", "expand_dims", "(", "bootstrap_value", ",", "0", ")", "]", ",", "axis", "=", "0", ")", "if", "clip_pg_rho_threshold", "is", "not", "None", ":", "clipped_pg_rhos", "=", "tf", ".", "minimum", "(", "clip_pg_rho_threshold", ",", "rhos", ",", "name", "=", "\"clipped_pg_rhos\"", ")", "else", ":", "clipped_pg_rhos", "=", "rhos", "pg_advantages", "=", "(", "clipped_pg_rhos", "*", "(", "rewards", "+", "discounts", "*", "vs_t_plus_1", "-", "values", ")", ")", "# Make sure no gradients backpropagated through the returned values.", "return", "VTraceReturns", "(", "vs", "=", "tf", ".", "stop_gradient", "(", "vs", ")", ",", "pg_advantages", "=", "tf", ".", "stop_gradient", "(", "pg_advantages", ")", ")" ]
r"""V-trace from log importance weights. Calculates V-trace actor critic targets as described in "IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architectures" by Espeholt, Soyer, Munos et al. In the notation used throughout documentation and comments, T refers to the time dimension ranging from 0 to T-1. B refers to the batch size. This code also supports the case where all tensors have the same number of additional dimensions, e.g., `rewards` is [T, B, C], `values` is [T, B, C], `bootstrap_value` is [B, C]. Args: log_rhos: A float32 tensor of shape [T, B] representing the log importance sampling weights, i.e. log(target_policy(a) / behaviour_policy(a)). V-trace performs operations on rhos in log-space for numerical stability. discounts: A float32 tensor of shape [T, B] with discounts encountered when following the behaviour policy. rewards: A float32 tensor of shape [T, B] containing rewards generated by following the behaviour policy. values: A float32 tensor of shape [T, B] with the value function estimates wrt. the target policy. bootstrap_value: A float32 of shape [B] with the value function estimate at time T. clip_rho_threshold: A scalar float32 tensor with the clipping threshold for importance weights (rho) when calculating the baseline targets (vs). rho^bar in the paper. If None, no clipping is applied. clip_pg_rho_threshold: A scalar float32 tensor with the clipping threshold on rho_s in \rho_s \delta log \pi(a|x) (r + \gamma v_{s+1} - V(x_s)). If None, no clipping is applied. name: The name scope that all V-trace operations will be created in. Returns: A VTraceReturns namedtuple (vs, pg_advantages) where: vs: A float32 tensor of shape [T, B]. Can be used as target to train a baseline (V(x_t) - vs_t)^2. pg_advantages: A float32 tensor of shape [T, B]. Can be used as the advantage in the calculation of policy gradients.
[ "r", "V", "-", "trace", "from", "log", "importance", "weights", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/impala/vtrace.py#L247-L386
train
r Function to calculate the V - trace actor critic targets from the given log importance weights.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzM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,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(11127 - 11016) + chr(0b100101 + 0o15) + '\x32' + chr(53), 5122 - 5114), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110110) + '\064', 62773 - 62765), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b10 + 0o56) + '\x6f' + chr(0b10001 + 0o40) + chr(0b11 + 0o61) + chr(0b110110), 1580 - 1572), ehT0Px3KOsy9(chr(0b110000) + chr(0b110110 + 0o71) + '\067' + chr(53), 0o10), ehT0Px3KOsy9(chr(1172 - 1124) + chr(6732 - 6621) + chr(55) + chr(0b10000 + 0o41), 44245 - 44237), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + '\067' + '\060', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1000001 + 0o56) + '\062' + chr(1249 - 1195) + chr(50), 0b1000), ehT0Px3KOsy9(chr(48) + chr(5692 - 5581) + chr(0b110010) + '\x30', 41089 - 41081), ehT0Px3KOsy9('\060' + chr(0b1011111 + 0o20) + chr(0b110011) + chr(0b110001 + 0o0) + chr(723 - 674), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b100101 + 0o14) + '\065' + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(49) + chr(0b110101) + '\066', 8), ehT0Px3KOsy9('\060' + chr(0b110010 + 0o75) + chr(0b100 + 0o57) + '\x32' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b1111 + 0o41) + '\x6f' + chr(0b110011) + chr(0b101001 + 0o12), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110101) + chr(1266 - 1214), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101110 + 0o4) + chr(1451 - 1403) + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1100110 + 0o11) + chr(0b110001) + chr(54) + chr(0b100 + 0o54), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + chr(0b1000 + 0o54), ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b101010 + 0o105) + chr(0b11010 + 0o27) + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1001 + 0o146) + '\061' + chr(0b11 + 0o60) + chr(55), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(50) + chr(0b1000 + 0o50) + '\063', 0o10), ehT0Px3KOsy9('\x30' + chr(1510 - 1399) + '\062' + chr(1228 - 1177) + chr(0b100 + 0o56), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + chr(248 - 198) + chr(50), 259 - 251), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(51) + chr(0b110010 + 0o4) + '\x31', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50), 60007 - 59999), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(9153 - 9042) + '\063' + '\065' + chr(2235 - 2186), 0o10), ehT0Px3KOsy9(chr(1045 - 997) + '\x6f' + '\x33' + chr(2359 - 2309) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + '\x33' + chr(50) + chr(0b101 + 0o60), 8), ehT0Px3KOsy9(chr(0b110000) + chr(11686 - 11575) + '\063' + chr(0b10 + 0o57), ord("\x08")), ehT0Px3KOsy9(chr(2095 - 2047) + chr(0b11000 + 0o127) + chr(50) + '\064' + chr(1581 - 1530), 51008 - 51000), ehT0Px3KOsy9(chr(546 - 498) + '\157' + chr(0b110110) + '\061', ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b100101 + 0o15) + chr(0b11101 + 0o25) + chr(0b101010 + 0o12), 42014 - 42006), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b11110 + 0o26) + chr(52), 0b1000), ehT0Px3KOsy9(chr(823 - 775) + chr(0b1101111) + '\062' + '\061' + '\067', 0b1000), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(0b1101111) + chr(0b100110 + 0o15) + chr(53) + chr(0b1100 + 0o52), 0b1000), ehT0Px3KOsy9(chr(663 - 615) + chr(0b1101111) + '\x33' + chr(54) + chr(2360 - 2307), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(49) + '\066' + chr(0b110010), 18410 - 18402), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b111 + 0o52) + chr(190 - 142) + '\062', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(1966 - 1915) + chr(2412 - 2359), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2224 - 2175) + chr(1008 - 960) + chr(0b1110 + 0o46), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1000000 + 0o57) + chr(0b100010 + 0o23) + '\060', 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xbb'), chr(100) + chr(0b1100101) + chr(0b101010 + 0o71) + chr(0b100001 + 0o116) + '\x64' + chr(0b1100011 + 0o2))('\165' + chr(0b1110100) + chr(6685 - 6583) + chr(1475 - 1430) + chr(2143 - 2087)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def HqcSeNAMzVSN(m8W79YPv1Nxz, VFM4g1zZHluc, yrDfr6ll4Ijz, SPnCNu54H1db, BGEwz98mEQSl, X9z9SPLMFxV2=1.0, EsLFJeV3E9KX=1.0, AIvJRzLdDfgF=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3@h\x07^\\\xe7\xd4b\xa6\x031\xbcv\\\xee\x02xo1\xe0\xff\xcd\x86g\x80\xb0\xbdm\xd0'), '\x64' + chr(0b110010 + 0o63) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1001101 + 0o50) + chr(116) + chr(6144 - 6042) + chr(562 - 517) + chr(56))): m8W79YPv1Nxz = IDJ2eXGCBCDu.convert_to_tensor(m8W79YPv1Nxz, dtype=IDJ2eXGCBCDu.float32) VFM4g1zZHluc = IDJ2eXGCBCDu.convert_to_tensor(VFM4g1zZHluc, dtype=IDJ2eXGCBCDu.float32) yrDfr6ll4Ijz = IDJ2eXGCBCDu.convert_to_tensor(yrDfr6ll4Ijz, dtype=IDJ2eXGCBCDu.float32) SPnCNu54H1db = IDJ2eXGCBCDu.convert_to_tensor(SPnCNu54H1db, dtype=IDJ2eXGCBCDu.float32) BGEwz98mEQSl = IDJ2eXGCBCDu.convert_to_tensor(BGEwz98mEQSl, dtype=IDJ2eXGCBCDu.float32) if X9z9SPLMFxV2 is not None: X9z9SPLMFxV2 = IDJ2eXGCBCDu.convert_to_tensor(X9z9SPLMFxV2, dtype=IDJ2eXGCBCDu.float32) if EsLFJeV3E9KX is not None: EsLFJeV3E9KX = IDJ2eXGCBCDu.convert_to_tensor(EsLFJeV3E9KX, dtype=IDJ2eXGCBCDu.float32) WNC_fbLaLFCZ = m8W79YPv1Nxz.shape.ndims xafqLlk3kkUe(SPnCNu54H1db.shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4Gi\x03OM\xe7\xdaq\xba1\x1c\xb4uG'), '\x64' + '\x65' + chr(0b101101 + 0o66) + chr(0b1011 + 0o144) + chr(2587 - 2487) + '\x65')('\x75' + chr(7482 - 7366) + chr(0b1100101 + 0o1) + '\x2d' + '\x38'))(WNC_fbLaLFCZ) xafqLlk3kkUe(BGEwz98mEQSl.shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4Gi\x03OM\xe7\xdaq\xba1\x1c\xb4uG'), chr(0b110011 + 0o61) + chr(0b1011 + 0o132) + chr(99) + '\x6f' + '\144' + chr(0b1100101))(chr(117) + '\164' + '\146' + chr(45) + chr(56)))(WNC_fbLaLFCZ - ehT0Px3KOsy9(chr(0b110000) + chr(2137 - 2026) + chr(1391 - 1342), ord("\x08"))) xafqLlk3kkUe(VFM4g1zZHluc.shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4Gi\x03OM\xe7\xdaq\xba1\x1c\xb4uG'), '\144' + '\x65' + '\143' + chr(0b1100001 + 0o16) + chr(0b1000011 + 0o41) + chr(6960 - 6859))(chr(0b1110101) + chr(1848 - 1732) + '\146' + chr(45) + '\070'))(WNC_fbLaLFCZ) xafqLlk3kkUe(yrDfr6ll4Ijz.shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4Gi\x03OM\xe7\xdaq\xba1\x1c\xb4uG'), '\144' + chr(6486 - 6385) + chr(0b1010110 + 0o15) + chr(2404 - 2293) + chr(100) + '\145')(chr(117) + chr(11839 - 11723) + chr(3694 - 3592) + '\055' + chr(962 - 906)))(WNC_fbLaLFCZ) if X9z9SPLMFxV2 is not None: xafqLlk3kkUe(X9z9SPLMFxV2.shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4Gi\x03OM\xe7\xdaq\xba1\x1c\xb4uG'), chr(2979 - 2879) + chr(101) + '\x63' + chr(111) + '\x64' + '\x65')(chr(0b100 + 0o161) + '\164' + chr(102) + chr(45) + '\070'))(ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(48), ord("\x08"))) if EsLFJeV3E9KX is not None: xafqLlk3kkUe(EsLFJeV3E9KX.shape, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf4Gi\x03OM\xe7\xdaq\xba1\x1c\xb4uG'), '\x64' + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b10 + 0o143))(chr(0b1100000 + 0o25) + chr(0b1011111 + 0o25) + chr(0b1010111 + 0o17) + chr(0b100 + 0o51) + '\x38'))(ehT0Px3KOsy9(chr(421 - 373) + chr(4583 - 4472) + '\x30', 8)) with xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfbUw\x03bJ\xdb\xdd`\xac'), chr(0b1011101 + 0o7) + chr(101) + chr(0b111011 + 0o50) + chr(0b1101111) + chr(0b111 + 0o135) + chr(4208 - 4107))(chr(0b101000 + 0o115) + '\164' + '\146' + chr(0b101101) + chr(78 - 22)))(AIvJRzLdDfgF, values=[m8W79YPv1Nxz, VFM4g1zZHluc, yrDfr6ll4Ijz, SPnCNu54H1db, BGEwz98mEQSl]): qlZUlWv8T9CQ = IDJ2eXGCBCDu.exp(m8W79YPv1Nxz) if X9z9SPLMFxV2 is not None: qZiHnVli1mNU = IDJ2eXGCBCDu.minimum(X9z9SPLMFxV2, qlZUlWv8T9CQ, name=xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6Xs\x16M\\\xdc\xedb\xa1\x01\x1d'), chr(100) + '\145' + '\143' + chr(111) + chr(100) + chr(3856 - 3755))(chr(0b1110101) + chr(1133 - 1017) + chr(0b1001001 + 0o35) + chr(0b11001 + 0o24) + '\070')) xafqLlk3kkUe(IDJ2eXGCBCDu.summary, xafqLlk3kkUe(SXOLrMavuUCe(b'\xcap.<J\x00\xda\xc6E\x9d\x1b?'), chr(1220 - 1120) + chr(0b100010 + 0o103) + '\x63' + chr(0b1101111) + chr(100) + chr(9719 - 9618))(chr(117) + chr(0b1110100) + '\146' + '\055' + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6Xs\x16M\\\xdc\xedb\xa1\x01\x1d\x8a*\x1c\xb1@'), '\144' + '\145' + '\143' + chr(111) + chr(0b1100100) + '\x65')('\165' + chr(1171 - 1055) + chr(0b1100110) + chr(0b100 + 0o51) + chr(1643 - 1587)), xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8]t\x0fPL\xd5'), chr(100) + chr(0b10 + 0o143) + '\143' + '\x6f' + chr(0b1100100) + '\x65')(chr(4680 - 4563) + chr(116) + chr(102) + chr(0b1100 + 0o41) + chr(365 - 309)))(1000.0, qlZUlWv8T9CQ)) xafqLlk3kkUe(IDJ2eXGCBCDu.summary, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6W{\n\\K'), chr(100) + chr(0b1000011 + 0o42) + '\143' + chr(0b101110 + 0o101) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(116) + '\x66' + '\055' + chr(2247 - 2191)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xfbAw9R_\xe7\xd1|\xa0\x1e\x1e\xb0\x7fs\xf3\x18c}'), '\144' + chr(101) + chr(0b1000010 + 0o41) + chr(111) + '\x64' + chr(7329 - 7228))('\165' + chr(0b1110100) + chr(102) + chr(1951 - 1906) + '\070'), xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe7Q~\x13^\\\xe7\xc1e\xa4'), chr(6394 - 6294) + chr(101) + '\143' + chr(0b1101111) + chr(4428 - 4328) + chr(0b1010011 + 0o22))(chr(0b1010101 + 0o40) + '\164' + chr(5393 - 5291) + chr(0b10101 + 0o30) + '\x38'))(xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6Ui\x12'), chr(9512 - 9412) + '\x65' + '\x63' + chr(111) + '\144' + chr(4369 - 4268))('\x75' + '\164' + '\146' + chr(0b10000 + 0o35) + '\x38'))(xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xf0Eo\x07Q'), chr(367 - 267) + chr(0b1100101 + 0o0) + chr(7904 - 7805) + '\157' + chr(100) + chr(101))(chr(3373 - 3256) + '\164' + '\146' + '\055' + chr(56)))(qZiHnVli1mNU, X9z9SPLMFxV2), xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xfcZnU\x0f'), chr(6197 - 6097) + chr(0b1100101) + '\143' + chr(6812 - 6701) + '\144' + chr(0b1100101))(chr(9478 - 9361) + chr(0b1110100) + '\146' + '\x2d' + chr(0b100011 + 0o25)))))) xafqLlk3kkUe(IDJ2eXGCBCDu.summary, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6W{\n\\K'), chr(9154 - 9054) + chr(0b1001111 + 0o26) + chr(0b11010 + 0o111) + chr(815 - 704) + chr(0b1100100) + chr(0b1100010 + 0o3))('\165' + '\164' + chr(0b1100110) + chr(0b100001 + 0o14) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6]`\x03bV\xde\xeds\xa5\x07\x1e\xa5~H\xde\x02da,'), chr(0b101001 + 0o73) + chr(0b1100101) + chr(3747 - 3648) + chr(4906 - 4795) + chr(0b100110 + 0o76) + '\x65')(chr(0b1100101 + 0o20) + chr(0b1110100) + '\x66' + chr(0b101101) + '\070'), xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xdbxy\x05\x0e{\xfb\xf8~\x98\x05\x0f'), chr(100) + chr(6358 - 6257) + chr(0b1100011) + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + chr(13101 - 12985) + chr(5584 - 5482) + chr(1740 - 1695) + chr(0b111000)))(qZiHnVli1mNU)) else: qZiHnVli1mNU = qlZUlWv8T9CQ Xo7QthAj4IpU = IDJ2eXGCBCDu.minimum(1.0, qlZUlWv8T9CQ, name=xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6G'), '\x64' + chr(0b1100011 + 0o2) + '\x63' + chr(111) + '\x64' + chr(6948 - 6847))(chr(0b1100100 + 0o21) + chr(4526 - 4410) + '\x66' + chr(0b101101) + chr(172 - 116))) KUQ4fAPuXueO = IDJ2eXGCBCDu.concat([SPnCNu54H1db[ehT0Px3KOsy9('\x30' + chr(7035 - 6924) + chr(49), 8):], IDJ2eXGCBCDu.expand_dims(BGEwz98mEQSl, ehT0Px3KOsy9(chr(113 - 65) + chr(111) + chr(48), 8))], axis=ehT0Px3KOsy9('\060' + '\157' + '\060', 8)) USOHiz_5Qvcv = qZiHnVli1mNU * (yrDfr6ll4Ijz + VFM4g1zZHluc * KUQ4fAPuXueO - SPnCNu54H1db) wsAG9QSgV2xG = (IDJ2eXGCBCDu.jPHyoIWAxyI_(VFM4g1zZHluc, axis=[ehT0Px3KOsy9(chr(48) + chr(111) + chr(1729 - 1681), 8)]), IDJ2eXGCBCDu.jPHyoIWAxyI_(Xo7QthAj4IpU, axis=[ehT0Px3KOsy9('\x30' + '\157' + chr(0b110000), 8)]), IDJ2eXGCBCDu.jPHyoIWAxyI_(USOHiz_5Qvcv, axis=[ehT0Px3KOsy9('\060' + '\157' + '\x30', 8)])) def jtv5nHy1rzmf(jIDym3yABcdT, F0ehPNXcTGWK): (xG4746omdiQU, KQVDlV1w4Mlk, SD3l4A0tzvEB) = F0ehPNXcTGWK return SD3l4A0tzvEB + xG4746omdiQU * KQVDlV1w4Mlk * jIDym3yABcdT RHT7xkD9A1Bo = IDJ2eXGCBCDu.zeros_like(BGEwz98mEQSl) CSyxuCM62TDN = IDJ2eXGCBCDu.scan(fn=jtv5nHy1rzmf, elems=wsAG9QSgV2xG, initializer=RHT7xkD9A1Bo, parallel_iterations=ehT0Px3KOsy9(chr(48) + chr(0b1011000 + 0o27) + chr(49), 8), back_prop=ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100001 + 0o17), 8), name=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6W{\x08'), chr(5370 - 5270) + chr(101) + chr(976 - 877) + '\x6f' + chr(0b1100100) + chr(0b111010 + 0o53))('\x75' + chr(0b1110100) + chr(102) + '\055' + chr(1185 - 1129))) CSyxuCM62TDN = IDJ2eXGCBCDu.jPHyoIWAxyI_(CSyxuCM62TDN, [ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\x6f' + chr(723 - 675), 8)], name=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3GE\x0bTW\xcd\xc1O\xbf1\x16\xa6'), '\144' + '\x65' + chr(99) + '\x6f' + chr(0b1100100) + chr(3188 - 3087))('\165' + '\x74' + chr(102) + chr(694 - 649) + chr(0b10011 + 0o45))) qGaVI8v_Oz7A = IDJ2eXGCBCDu.uJ0q9cG5ZOR3(CSyxuCM62TDN, SPnCNu54H1db, name=xafqLlk3kkUe(SXOLrMavuUCe(b'\xe3G'), chr(0b1100100) + '\145' + chr(99) + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(116) + '\146' + '\x2d' + '\x38')) DEaVU3Yb8b4i = IDJ2eXGCBCDu.concat([qGaVI8v_Oz7A[ehT0Px3KOsy9(chr(1783 - 1735) + chr(111) + chr(0b110001), 8):], IDJ2eXGCBCDu.expand_dims(BGEwz98mEQSl, ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(742 - 694), 8))], axis=ehT0Px3KOsy9(chr(879 - 831) + chr(0b111010 + 0o65) + chr(48), 8)) if EsLFJeV3E9KX is not None: TXlZFuo89Awi = IDJ2eXGCBCDu.minimum(EsLFJeV3E9KX, qlZUlWv8T9CQ, name=xafqLlk3kkUe(SXOLrMavuUCe(b'\xf6Xs\x16M\\\xdc\xed`\xae1\x1c\xbdt_'), chr(0b1010110 + 0o16) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(6324 - 6223))(chr(0b1110101) + chr(0b1110100) + chr(4782 - 4680) + '\055' + chr(56))) else: TXlZFuo89Awi = qlZUlWv8T9CQ mCaMVh5CVSSS = TXlZFuo89Awi * (yrDfr6ll4Ijz + VFM4g1zZHluc * DEaVU3Yb8b4i - SPnCNu54H1db) return ZLPq79Dn8F_o(vs=xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6@u\x16b^\xca\xd3t\xa0\x0b\x00\xa1'), chr(0b1010 + 0o132) + chr(101) + '\x63' + chr(0b1101111) + chr(0b110111 + 0o55) + chr(101))(chr(0b1101 + 0o150) + chr(116) + chr(0b1010000 + 0o26) + chr(45) + chr(56)))(qGaVI8v_Oz7A), pg_advantages=xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\xe6@u\x16b^\xca\xd3t\xa0\x0b\x00\xa1'), chr(0b1100100) + chr(101) + chr(6248 - 6149) + chr(0b1101111) + chr(0b1010111 + 0o15) + chr(101))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + '\070'))(mCaMVh5CVSSS))
ray-project/ray
python/ray/rllib/agents/impala/vtrace.py
get_log_rhos
def get_log_rhos(target_action_log_probs, behaviour_action_log_probs): """With the selected log_probs for multi-discrete actions of behaviour and target policies we compute the log_rhos for calculating the vtrace.""" t = tf.stack(target_action_log_probs) b = tf.stack(behaviour_action_log_probs) log_rhos = tf.reduce_sum(t - b, axis=0) return log_rhos
python
def get_log_rhos(target_action_log_probs, behaviour_action_log_probs): """With the selected log_probs for multi-discrete actions of behaviour and target policies we compute the log_rhos for calculating the vtrace.""" t = tf.stack(target_action_log_probs) b = tf.stack(behaviour_action_log_probs) log_rhos = tf.reduce_sum(t - b, axis=0) return log_rhos
[ "def", "get_log_rhos", "(", "target_action_log_probs", ",", "behaviour_action_log_probs", ")", ":", "t", "=", "tf", ".", "stack", "(", "target_action_log_probs", ")", "b", "=", "tf", ".", "stack", "(", "behaviour_action_log_probs", ")", "log_rhos", "=", "tf", ".", "reduce_sum", "(", "t", "-", "b", ",", "axis", "=", "0", ")", "return", "log_rhos" ]
With the selected log_probs for multi-discrete actions of behaviour and target policies we compute the log_rhos for calculating the vtrace.
[ "With", "the", "selected", "log_probs", "for", "multi", "-", "discrete", "actions", "of", "behaviour", "and", "target", "policies", "we", "compute", "the", "log_rhos", "for", "calculating", "the", "vtrace", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/rllib/agents/impala/vtrace.py#L389-L395
train
With the selected log_probs for multi - discrete actions of behaviour and target policies we compute the log_rhos for calculating the vtrace.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,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afqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\157' + chr(428 - 378) + chr(0b110101) + chr(53), 29944 - 29936), ehT0Px3KOsy9(chr(733 - 685) + '\157' + chr(0b110001) + chr(55) + chr(0b101111 + 0o5), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110111) + '\x33', 0o10), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(0b11 + 0o154) + chr(50) + '\062' + chr(2326 - 2272), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(50) + chr(50) + '\061', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(55) + chr(0b110011), 8), ehT0Px3KOsy9('\x30' + '\157' + chr(770 - 721) + chr(1263 - 1211) + chr(0b110000), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b101110 + 0o3) + chr(232 - 183) + chr(658 - 607), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(49) + chr(0b100 + 0o60), 0b1000), ehT0Px3KOsy9('\060' + chr(6508 - 6397) + '\062' + '\060' + chr(48), 47371 - 47363), ehT0Px3KOsy9(chr(241 - 193) + '\157' + chr(0b1001 + 0o52) + chr(0b1001 + 0o47) + chr(476 - 423), 0b1000), ehT0Px3KOsy9(chr(856 - 808) + chr(10604 - 10493) + chr(0b110010) + chr(0b110100) + '\065', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(50) + '\067' + '\063', 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\062' + chr(0b110001) + '\x33', 61643 - 61635), ehT0Px3KOsy9(chr(0b110000) + chr(8461 - 8350) + '\063' + chr(52) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(385 - 337) + chr(0b1101111) + chr(54) + chr(0b10001 + 0o42), 59696 - 59688), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101110 + 0o1) + chr(49) + chr(53) + chr(0b10011 + 0o35), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b11101 + 0o26) + chr(307 - 253) + chr(50), 0o10), ehT0Px3KOsy9(chr(453 - 405) + chr(0b10010 + 0o135) + chr(0b11001 + 0o32) + chr(54) + '\062', 8), ehT0Px3KOsy9(chr(796 - 748) + '\157' + '\062' + chr(534 - 482) + chr(0b11101 + 0o32), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110000) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(0b1101111) + chr(902 - 848) + chr(0b1100 + 0o51), ord("\x08")), ehT0Px3KOsy9(chr(119 - 71) + chr(0b1101111) + '\061' + '\061' + '\067', 0b1000), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(111) + chr(0b110010) + chr(1509 - 1456), 35206 - 35198), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110000 + 0o3) + chr(55) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101111) + chr(0b10001 + 0o42) + '\x32' + '\x33', 35179 - 35171), ehT0Px3KOsy9(chr(0b110000) + chr(0b110 + 0o151) + chr(51) + '\x35' + chr(1990 - 1936), 0b1000), ehT0Px3KOsy9(chr(1037 - 989) + chr(0b1101111) + chr(1560 - 1510) + '\x37', 24623 - 24615), ehT0Px3KOsy9(chr(48) + chr(7890 - 7779) + chr(0b110001) + chr(0b110000 + 0o7) + '\x34', 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110111) + chr(1305 - 1251), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + '\061' + '\x37' + '\063', 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(10670 - 10559) + chr(51) + chr(0b110101), 0b1000), ehT0Px3KOsy9(chr(48) + chr(2739 - 2628) + chr(1741 - 1692) + '\065' + '\067', 34510 - 34502), ehT0Px3KOsy9(chr(1830 - 1782) + chr(2301 - 2190) + chr(0b10010 + 0o41) + chr(0b1110 + 0o45) + chr(0b10001 + 0o44), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101001 + 0o6) + chr(1306 - 1254) + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\063' + '\064' + chr(54), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(1287 - 1238) + chr(644 - 596), 0b1000), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\x6f' + chr(0b110 + 0o54) + chr(0b110011 + 0o0) + chr(2216 - 2161), 2866 - 2858), ehT0Px3KOsy9(chr(0b110000) + chr(6640 - 6529) + chr(0b10010 + 0o37) + '\060' + chr(0b100101 + 0o14), 0o10), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + '\x31' + chr(0b110010), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(441 - 393) + '\x6f' + chr(0b110101) + chr(98 - 50), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x83'), chr(0b1001111 + 0o25) + '\x65' + chr(0b1011111 + 0o4) + chr(10786 - 10675) + chr(100) + chr(0b1100101))('\x75' + chr(2070 - 1954) + chr(1451 - 1349) + '\055' + chr(116 - 60)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def JQXiyi238OVT(AeLSqZSloyl9, Ep633ksP8Zlg): YeT3l7JgTbWR = IDJ2eXGCBCDu.stack(AeLSqZSloyl9) wmN3dvez4qzC = IDJ2eXGCBCDu.stack(Ep633ksP8Zlg) m8W79YPv1Nxz = IDJ2eXGCBCDu.reduce_sum(YeT3l7JgTbWR - wmN3dvez4qzC, axis=ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(48), ord("\x08"))) return m8W79YPv1Nxz
ray-project/ray
python/ray/tune/examples/tune_mnist_async_hyperband.py
weight_variable
def weight_variable(shape): """weight_variable generates a weight variable of a given shape.""" initial = tf.truncated_normal(shape, stddev=0.1) return tf.Variable(initial)
python
def weight_variable(shape): """weight_variable generates a weight variable of a given shape.""" initial = tf.truncated_normal(shape, stddev=0.1) return tf.Variable(initial)
[ "def", "weight_variable", "(", "shape", ")", ":", "initial", "=", "tf", ".", "truncated_normal", "(", "shape", ",", "stddev", "=", "0.1", ")", "return", "tf", ".", "Variable", "(", "initial", ")" ]
weight_variable generates a weight variable of a given shape.
[ "weight_variable", "generates", "a", "weight", "variable", "of", "a", "given", "shape", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/examples/tune_mnist_async_hyperband.py#L121-L124
train
weight_variable generates a weight variable of a given shape.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdY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Error,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1101111) + '\061' + '\x32' + '\060', 0o10), ehT0Px3KOsy9(chr(658 - 610) + chr(0b10 + 0o155) + '\x32' + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b1001 + 0o51) + chr(302 - 254), 58262 - 58254), ehT0Px3KOsy9(chr(0b10101 + 0o33) + '\157' + chr(2296 - 2247) + '\066' + chr(0b110011), 48562 - 48554), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x35' + chr(0b110111), 26439 - 26431), ehT0Px3KOsy9(chr(48) + chr(0b1001000 + 0o47) + chr(49) + chr(144 - 92) + '\061', 0o10), ehT0Px3KOsy9(chr(654 - 606) + chr(0b100100 + 0o113) + chr(50) + '\x34', 64789 - 64781), ehT0Px3KOsy9('\060' + '\157' + chr(0b110010) + chr(753 - 700) + chr(0b110 + 0o61), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010101 + 0o32) + chr(50) + chr(0b110101 + 0o0), 8), ehT0Px3KOsy9(chr(0b11 + 0o55) + chr(111) + chr(0b110001) + chr(1939 - 1887) + chr(0b110111), 12242 - 12234), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b1000 + 0o53) + chr(0b110001 + 0o3) + chr(1495 - 1446), 0b1000), ehT0Px3KOsy9('\060' + '\157' + '\062' + chr(1366 - 1317) + '\067', 815 - 807), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + '\x32' + chr(49), 17555 - 17547), ehT0Px3KOsy9(chr(2282 - 2234) + chr(111) + chr(0b110010) + chr(2195 - 2140) + '\x30', 0b1000), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b1101111) + chr(50) + '\x31' + '\065', 0b1000), ehT0Px3KOsy9(chr(122 - 74) + chr(111) + chr(2237 - 2188) + chr(49) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110000 + 0o1) + chr(0b110100) + '\x31', 8), ehT0Px3KOsy9('\060' + '\157' + '\x31' + chr(52) + chr(0b11011 + 0o32), 0b1000), ehT0Px3KOsy9(chr(214 - 166) + chr(111) + chr(0b110001) + chr(1945 - 1894) + chr(52), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110011) + '\066', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110011) + chr(2705 - 2652) + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + '\x31' + '\064', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(55) + '\x34', 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b101101 + 0o10), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(287 - 238) + '\x37' + '\x33', 9078 - 9070), ehT0Px3KOsy9('\x30' + chr(0b111010 + 0o65) + chr(2166 - 2115) + '\066' + chr(474 - 422), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b101000 + 0o12) + chr(0b100101 + 0o14) + '\062', 0b1000), ehT0Px3KOsy9('\060' + chr(0b10 + 0o155) + '\063' + '\061' + chr(49), 44201 - 44193), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(0b1011101 + 0o22) + '\065' + chr(49), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\060', ord("\x08")), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + chr(0b10110 + 0o35) + chr(0b11011 + 0o25), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100101 + 0o12) + '\x32' + chr(950 - 899), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\063' + chr(0b110010) + '\066', 32981 - 32973), ehT0Px3KOsy9('\x30' + '\x6f' + chr(352 - 303) + chr(0b0 + 0o66) + chr(0b11000 + 0o37), 46218 - 46210), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + chr(50) + chr(0b110010) + '\060', 8), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b110100) + chr(0b110110 + 0o1), 41246 - 41238), ehT0Px3KOsy9(chr(0b100011 + 0o15) + '\x6f' + '\061' + chr(0b101010 + 0o13), 31882 - 31874), ehT0Px3KOsy9(chr(981 - 933) + chr(0b1000111 + 0o50) + chr(50) + chr(0b101000 + 0o11) + '\x36', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110100) + '\065', 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110011) + chr(55) + '\x37', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(111) + chr(53) + chr(0b11101 + 0o23), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'~'), chr(0b1100100) + '\145' + chr(99) + chr(6578 - 6467) + '\x64' + chr(0b1100101))(chr(8293 - 8176) + chr(0b111100 + 0o70) + chr(102) + '\x2d' + '\070') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def cffe7JbZI37k(nauYfLglTpcb): ufedJ6dcgmE6 = IDJ2eXGCBCDu.truncated_normal(nauYfLglTpcb, stddev=0.1) return xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\x06t\xe2\x1aN\x03x\xca'), '\144' + chr(0b101000 + 0o75) + chr(0b1100011) + '\157' + chr(100) + chr(0b110100 + 0o61))('\165' + chr(8801 - 8685) + '\146' + chr(2011 - 1966) + '\070'))(ufedJ6dcgmE6)
ray-project/ray
python/ray/tune/examples/tune_mnist_async_hyperband.py
bias_variable
def bias_variable(shape): """bias_variable generates a bias variable of a given shape.""" initial = tf.constant(0.1, shape=shape) return tf.Variable(initial)
python
def bias_variable(shape): """bias_variable generates a bias variable of a given shape.""" initial = tf.constant(0.1, shape=shape) return tf.Variable(initial)
[ "def", "bias_variable", "(", "shape", ")", ":", "initial", "=", "tf", ".", "constant", "(", "0.1", ",", "shape", "=", "shape", ")", "return", "tf", ".", "Variable", "(", "initial", ")" ]
bias_variable generates a bias variable of a given shape.
[ "bias_variable", "generates", "a", "bias", "variable", "of", "a", "given", "shape", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/examples/tune_mnist_async_hyperband.py#L127-L130
train
bias_variable generates a bias variable of a given shape.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ8qLDWm,NE1Yam2HHroQ,ygAzbDzrvRMh,SBRjv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RMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1001001 + 0o46) + chr(0b110001) + '\063' + chr(0b11111 + 0o27), 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + '\x36' + chr(400 - 346), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10011 + 0o37) + chr(0b110110), 9995 - 9987), ehT0Px3KOsy9(chr(0b110000) + chr(0b1100111 + 0o10) + chr(0b10100 + 0o35) + '\x37' + chr(441 - 390), 0o10), ehT0Px3KOsy9(chr(68 - 20) + chr(8202 - 8091) + '\061' + '\x32' + chr(0b101 + 0o56), 0o10), ehT0Px3KOsy9(chr(48) + chr(2390 - 2279) + chr(2232 - 2183) + chr(54) + chr(0b110101), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + chr(52) + chr(0b110011), 6006 - 5998), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110101) + chr(1601 - 1546), 0o10), ehT0Px3KOsy9('\x30' + chr(5427 - 5316) + '\062' + chr(1537 - 1489), 44599 - 44591), ehT0Px3KOsy9('\060' + '\157' + chr(2127 - 2076) + '\063' + chr(1698 - 1647), ord("\x08")), ehT0Px3KOsy9(chr(1824 - 1776) + chr(3875 - 3764) + chr(0b110011) + chr(0b100110 + 0o20) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\x36' + '\x31', 0o10), ehT0Px3KOsy9('\x30' + chr(111) + '\063' + chr(0b11111 + 0o25) + chr(0b110110), 51651 - 51643), ehT0Px3KOsy9('\x30' + chr(0b1010011 + 0o34) + chr(2347 - 2295) + chr(346 - 291), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x33' + chr(1453 - 1399) + '\x35', 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + chr(0b110001) + '\061' + chr(0b100000 + 0o21), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\x33' + chr(1128 - 1079) + chr(2672 - 2619), ord("\x08")), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(9769 - 9658) + chr(0b110011) + '\064' + chr(48), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(49) + chr(1337 - 1288) + '\067', 35285 - 35277), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + chr(53) + '\063', 45602 - 45594), ehT0Px3KOsy9(chr(0b11101 + 0o23) + '\157' + chr(0b10111 + 0o32) + chr(0b101111 + 0o1) + '\x37', ord("\x08")), ehT0Px3KOsy9('\x30' + '\x6f' + chr(814 - 761) + chr(1597 - 1545), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1000001 + 0o56) + chr(1664 - 1615) + chr(2458 - 2404) + chr(52), 0b1000), ehT0Px3KOsy9(chr(48) + chr(6766 - 6655) + chr(0b100111 + 0o14) + chr(0b10101 + 0o35) + '\x35', 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + chr(49) + chr(0b10111 + 0o37), 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + '\066', ord("\x08")), ehT0Px3KOsy9(chr(0b1110 + 0o42) + chr(111) + '\x31' + '\x37', 0o10), ehT0Px3KOsy9('\x30' + chr(0b1011 + 0o144) + '\063' + '\x36' + chr(1402 - 1347), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(1720 - 1669) + '\x32', 54824 - 54816), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\x6f' + chr(375 - 324) + chr(51) + chr(51), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(50) + '\x31' + chr(0b101100 + 0o4), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(876 - 825) + '\x30' + chr(0b110100), 37931 - 37923), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(111) + chr(49) + '\x32' + '\067', ord("\x08")), ehT0Px3KOsy9(chr(1773 - 1725) + chr(12018 - 11907) + '\x32' + '\x30' + chr(570 - 516), 0o10), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(0b1101111) + chr(49) + chr(0b10001 + 0o43) + chr(0b110110), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b11110 + 0o23) + '\064' + chr(0b110011 + 0o2), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + chr(246 - 195), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + '\x32' + chr(540 - 492) + chr(0b101100 + 0o7), ord("\x08")), ehT0Px3KOsy9(chr(0b10011 + 0o35) + '\x6f' + chr(2293 - 2242) + chr(0b110110) + '\066', 8), ehT0Px3KOsy9('\x30' + chr(0b1011101 + 0o22) + chr(49) + '\x31', 13068 - 13060)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x35' + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'p'), '\144' + '\x65' + chr(0b1000111 + 0o34) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + chr(116) + '\x66' + '\x2d' + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def pDIkXJ7gvveO(nauYfLglTpcb): ufedJ6dcgmE6 = IDJ2eXGCBCDu.constant(0.1, shape=nauYfLglTpcb) return xafqLlk3kkUe(IDJ2eXGCBCDu, xafqLlk3kkUe(SXOLrMavuUCe(b'\x08\x97d\x122\x17OJ'), '\x64' + chr(0b10010 + 0o123) + chr(99) + chr(8441 - 8330) + '\x64' + chr(0b1100101))(chr(117) + '\164' + chr(1154 - 1052) + chr(768 - 723) + chr(722 - 666)))(ufedJ6dcgmE6)
ray-project/ray
python/ray/tune/commands.py
print_format_output
def print_format_output(dataframe): """Prints output of given dataframe to fit into terminal. Returns: table (pd.DataFrame): Final outputted dataframe. dropped_cols (list): Columns dropped due to terminal size. empty_cols (list): Empty columns (dropped on default). """ print_df = pd.DataFrame() dropped_cols = [] empty_cols = [] # column display priority is based on the info_keys passed in for i, col in enumerate(dataframe): if dataframe[col].isnull().all(): # Don't add col to print_df if is fully empty empty_cols += [col] continue print_df[col] = dataframe[col] test_table = tabulate(print_df, headers="keys", tablefmt="psql") if str(test_table).index("\n") > TERM_WIDTH: # Drop all columns beyond terminal width print_df.drop(col, axis=1, inplace=True) dropped_cols += list(dataframe.columns)[i:] break table = tabulate( print_df, headers="keys", tablefmt="psql", showindex="never") print(table) if dropped_cols: print("Dropped columns:", dropped_cols) print("Please increase your terminal size to view remaining columns.") if empty_cols: print("Empty columns:", empty_cols) return table, dropped_cols, empty_cols
python
def print_format_output(dataframe): """Prints output of given dataframe to fit into terminal. Returns: table (pd.DataFrame): Final outputted dataframe. dropped_cols (list): Columns dropped due to terminal size. empty_cols (list): Empty columns (dropped on default). """ print_df = pd.DataFrame() dropped_cols = [] empty_cols = [] # column display priority is based on the info_keys passed in for i, col in enumerate(dataframe): if dataframe[col].isnull().all(): # Don't add col to print_df if is fully empty empty_cols += [col] continue print_df[col] = dataframe[col] test_table = tabulate(print_df, headers="keys", tablefmt="psql") if str(test_table).index("\n") > TERM_WIDTH: # Drop all columns beyond terminal width print_df.drop(col, axis=1, inplace=True) dropped_cols += list(dataframe.columns)[i:] break table = tabulate( print_df, headers="keys", tablefmt="psql", showindex="never") print(table) if dropped_cols: print("Dropped columns:", dropped_cols) print("Please increase your terminal size to view remaining columns.") if empty_cols: print("Empty columns:", empty_cols) return table, dropped_cols, empty_cols
[ "def", "print_format_output", "(", "dataframe", ")", ":", "print_df", "=", "pd", ".", "DataFrame", "(", ")", "dropped_cols", "=", "[", "]", "empty_cols", "=", "[", "]", "# column display priority is based on the info_keys passed in", "for", "i", ",", "col", "in", "enumerate", "(", "dataframe", ")", ":", "if", "dataframe", "[", "col", "]", ".", "isnull", "(", ")", ".", "all", "(", ")", ":", "# Don't add col to print_df if is fully empty", "empty_cols", "+=", "[", "col", "]", "continue", "print_df", "[", "col", "]", "=", "dataframe", "[", "col", "]", "test_table", "=", "tabulate", "(", "print_df", ",", "headers", "=", "\"keys\"", ",", "tablefmt", "=", "\"psql\"", ")", "if", "str", "(", "test_table", ")", ".", "index", "(", "\"\\n\"", ")", ">", "TERM_WIDTH", ":", "# Drop all columns beyond terminal width", "print_df", ".", "drop", "(", "col", ",", "axis", "=", "1", ",", "inplace", "=", "True", ")", "dropped_cols", "+=", "list", "(", "dataframe", ".", "columns", ")", "[", "i", ":", "]", "break", "table", "=", "tabulate", "(", "print_df", ",", "headers", "=", "\"keys\"", ",", "tablefmt", "=", "\"psql\"", ",", "showindex", "=", "\"never\"", ")", "print", "(", "table", ")", "if", "dropped_cols", ":", "print", "(", "\"Dropped columns:\"", ",", "dropped_cols", ")", "print", "(", "\"Please increase your terminal size to view remaining columns.\"", ")", "if", "empty_cols", ":", "print", "(", "\"Empty columns:\"", ",", "empty_cols", ")", "return", "table", ",", "dropped_cols", ",", "empty_cols" ]
Prints output of given dataframe to fit into terminal. Returns: table (pd.DataFrame): Final outputted dataframe. dropped_cols (list): Columns dropped due to terminal size. empty_cols (list): Empty columns (dropped on default).
[ "Prints", "output", "of", "given", "dataframe", "to", "fit", "into", "terminal", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/commands.py#L72-L108
train
Prints output of given dataframe to fit into terminal size.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4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7h0,Rurm1zTRfSmY,reqGiMiVQ77y,bsS9P6_LpdIe,sbGAZlkZOtyh,Cf_Qef15s3_F,eX02hlZjMfR0,wLqBDw8l0eIm,g1Uy6IV0tyJQ,f9CsFWzvg0Vq,YlkZvXL8qwsX,MCqssyYhLtLC,bpgWCAbiJWkL,CMUdZtaORwo4,hi1V0ySZcNds,kkSX4ccExqw4,V4roHaS3Ppej,o8rvoPw8ep3k,xafqLlk3kkUe,h0qciNl3EEEj,lot1PSoAwYhj,xfhwxiBOH72k,HcyiPkCViZiX,fOIXYo9a1WNS,z8EhBlYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(1335 - 1287) + '\157' + '\x32' + chr(0b110111) + chr(0b11110 + 0o26), 5847 - 5839), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\063' + chr(51) + chr(48), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(51) + chr(0b1110 + 0o42) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b10 + 0o56) + chr(0b1101111) + chr(50) + '\067' + chr(587 - 533), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b101001 + 0o106) + '\x31' + '\063' + chr(0b10010 + 0o42), 4448 - 4440), ehT0Px3KOsy9(chr(374 - 326) + chr(0b1101111 + 0o0) + chr(51) + chr(2621 - 2566) + chr(0b100010 + 0o21), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b101100 + 0o103) + chr(0b101111 + 0o5) + chr(611 - 559), ord("\x08")), ehT0Px3KOsy9(chr(539 - 491) + chr(111) + '\063' + chr(52) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1010001 + 0o36) + '\x33' + chr(0b110101) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(2045 - 1995) + chr(2381 - 2329) + chr(0b101100 + 0o6), 0b1000), ehT0Px3KOsy9(chr(73 - 25) + chr(0b1101111) + chr(0b110011) + chr(0b10000 + 0o47) + chr(0b110001), 44830 - 44822), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(49) + chr(52), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b110111) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\061' + '\x36' + chr(0b1111 + 0o46), 0o10), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(111) + chr(1594 - 1543) + chr(1461 - 1411) + '\x35', 19463 - 19455), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2201 - 2152) + chr(0b110001) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101010 + 0o5) + '\063' + chr(51) + chr(589 - 539), 0o10), ehT0Px3KOsy9(chr(2297 - 2249) + '\x6f' + chr(0b11010 + 0o31) + chr(1463 - 1415) + chr(0b11111 + 0o26), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b100110 + 0o111) + chr(49) + chr(189 - 137) + chr(2531 - 2480), 64923 - 64915), ehT0Px3KOsy9(chr(0b10110 + 0o32) + '\x6f' + '\x32' + chr(0b110101) + '\062', 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\x6f' + '\x31' + '\x35' + chr(49), 30855 - 30847), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1111 + 0o140) + chr(51) + chr(0b10000 + 0o43) + '\x35', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(8420 - 8309) + '\062' + '\x33' + '\060', 0o10), ehT0Px3KOsy9(chr(1489 - 1441) + chr(1946 - 1835) + '\x36' + '\067', 7012 - 7004), ehT0Px3KOsy9(chr(48) + chr(0b1101010 + 0o5) + chr(358 - 308) + chr(2358 - 2308) + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1100111 + 0o10) + chr(0b110001) + chr(54) + chr(49), 43252 - 43244), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\062' + chr(50) + chr(973 - 919), 8), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(4670 - 4559) + chr(2187 - 2137) + '\060' + chr(0b110010 + 0o1), 38274 - 38266), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\x6f' + chr(0b11 + 0o61) + '\060', 0o10), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b1100111 + 0o10) + chr(0b100010 + 0o20) + chr(0b110010) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(111) + chr(0b100011 + 0o17) + '\x35' + chr(48), 0o10), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(0b111001 + 0o66) + chr(50) + '\061' + '\061', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001) + chr(1441 - 1392) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(2074 - 2026) + chr(0b1011000 + 0o27) + '\x32' + chr(0b110010) + '\065', 8), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b10001 + 0o40) + chr(0b101101 + 0o4) + '\062', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(2394 - 2345) + chr(2390 - 2340) + chr(0b100110 + 0o17), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100100 + 0o16) + chr(0b101110 + 0o3), ord("\x08")), ehT0Px3KOsy9(chr(1706 - 1658) + chr(0b110000 + 0o77) + '\x31' + chr(0b110010) + '\060', 39039 - 39031), ehT0Px3KOsy9(chr(0b11101 + 0o23) + '\x6f' + chr(741 - 690) + '\x37' + '\066', 0b1000), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b1001 + 0o56) + '\066', 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110101) + chr(0b11101 + 0o23), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x92'), '\x64' + '\145' + chr(5174 - 5075) + chr(6269 - 6158) + '\x64' + chr(0b1100101))(chr(10006 - 9889) + chr(6769 - 6653) + chr(0b1001 + 0o135) + '\055' + chr(1390 - 1334)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def ni5gGfQbfX_h(tVWfuOKSDbc7): Vcb2ra59oB4t = dubtF9GfzOdC.DataFrame() JM0tTz77Mv4O = [] EZniybpvukIn = [] for (WVxHKyX45z_L, Qa2uSJqQPT3w) in YlkZvXL8qwsX(tVWfuOKSDbc7): if xafqLlk3kkUe(tVWfuOKSDbc7[Qa2uSJqQPT3w].isnull(), xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8\xb4\xf7\x862\x91\x15\x97\x8d\xcb\xcb?'), chr(0b1100100) + '\145' + chr(5973 - 5874) + chr(111) + '\x64' + chr(0b1010011 + 0o22))('\165' + chr(7624 - 7508) + '\146' + chr(0b101101) + chr(56)))(): EZniybpvukIn += [Qa2uSJqQPT3w] continue Vcb2ra59oB4t[Qa2uSJqQPT3w] = tVWfuOKSDbc7[Qa2uSJqQPT3w] OJL1iMCVuId_ = hRiBrzUPUDq4(Vcb2ra59oB4t, headers=xafqLlk3kkUe(SXOLrMavuUCe(b'\xd7\xbd\xba\xcd'), '\x64' + '\x65' + '\143' + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(4342 - 4226) + '\x66' + chr(0b101101) + chr(234 - 178)), tablefmt=xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xab\xb2\xd2'), chr(0b1000010 + 0o42) + chr(0b1100101) + chr(3801 - 3702) + chr(11534 - 11423) + '\144' + chr(0b1010 + 0o133))(chr(7257 - 7140) + '\164' + chr(0b110001 + 0o65) + chr(450 - 405) + chr(0b100101 + 0o23))) if xafqLlk3kkUe(M8_cKLkHVB2V(OJL1iMCVuId_), xafqLlk3kkUe(SXOLrMavuUCe(b'\xe4\xbc\xac\xc9\x0e\x99n\xae\xb5\xf5\xb55'), '\x64' + chr(0b111010 + 0o53) + chr(0b1100011) + chr(111) + '\144' + '\145')('\165' + chr(11808 - 11692) + chr(102) + chr(0b100101 + 0o10) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\xb6'), chr(0b1010110 + 0o16) + chr(101) + chr(5492 - 5393) + '\157' + chr(0b1000100 + 0o40) + '\x65')(chr(8079 - 7962) + chr(0b11010 + 0o132) + chr(4955 - 4853) + '\055' + '\x38')) > LVRw9M6MBGRf: xafqLlk3kkUe(Vcb2ra59oB4t, xafqLlk3kkUe(SXOLrMavuUCe(b'\xd8\xaa\xac\xce'), chr(5534 - 5434) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b110001 + 0o64))(chr(0b1110001 + 0o4) + '\164' + '\x66' + '\055' + '\070'))(Qa2uSJqQPT3w, axis=ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b101 + 0o54), 0o10), inplace=ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x31', 8)) JM0tTz77Mv4O += YyaZ4tpXu4lf(tVWfuOKSDbc7.qKlXBtn3PKy4)[WVxHKyX45z_L:] break YbLi4ide0_3E = hRiBrzUPUDq4(Vcb2ra59oB4t, headers=xafqLlk3kkUe(SXOLrMavuUCe(b'\xd7\xbd\xba\xcd'), chr(6677 - 6577) + chr(101) + chr(0b1100011) + chr(0b1101010 + 0o5) + chr(0b1001001 + 0o33) + chr(0b1100101))('\x75' + chr(0b10000 + 0o144) + '\x66' + chr(0b101101) + chr(1147 - 1091)), tablefmt=xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\xab\xb2\xd2'), chr(100) + chr(101) + '\143' + '\157' + '\144' + chr(101))(chr(683 - 566) + chr(116) + chr(0b1100110) + chr(45) + chr(56)), showindex=xafqLlk3kkUe(SXOLrMavuUCe(b'\xd2\xbd\xb5\xdb.'), chr(0b1100100) + '\145' + '\143' + '\157' + chr(100) + chr(9387 - 9286))('\x75' + chr(0b1110100) + chr(1808 - 1706) + chr(1242 - 1197) + chr(0b111000))) zLUzGokYBM2Z(YbLi4ide0_3E) if JM0tTz77Mv4O: zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf8\xaa\xac\xce,\x9e@\xc5\x8c\xcd\x95yW\x1b\xa6t'), '\x64' + '\x65' + chr(0b1011001 + 0o12) + chr(7648 - 7537) + chr(100) + chr(0b1010010 + 0o23))('\x75' + '\x74' + chr(0b1100110) + '\055' + '\x38'), JM0tTz77Mv4O) zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b'\xec\xb4\xa6\xdf/\x9e\x04\x8c\x81\xc1\x8bi[\x06\xb0n\xa3\xaa\x16\xd8I\xa9\xfdE\xfb\x18\xf8\xe2L\xb5\xdb\xe06\xf0j!~p\x88W\xd9\xaf\xe3\xcc9\x96E\x8c\x81\xcb\x97k\x1a\x16\xba"\xaf\xa8\r\xd9G'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1110101) + '\164' + chr(0b1001101 + 0o31) + chr(0b101101) + '\070')) if EZniybpvukIn: zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b'\xf9\xb5\xb3\xca%\xdbG\x8a\x83\xd7\x94bIO'), chr(100) + '\145' + '\143' + '\157' + chr(3533 - 3433) + chr(101))(chr(117) + chr(116) + chr(7238 - 7136) + chr(45) + chr(0b111000)), EZniybpvukIn) return (YbLi4ide0_3E, JM0tTz77Mv4O, EZniybpvukIn)
ray-project/ray
python/ray/tune/commands.py
list_trials
def list_trials(experiment_path, sort=None, output=None, filter_op=None, info_keys=None, result_keys=None): """Lists trials in the directory subtree starting at the given path. Args: experiment_path (str): Directory where trials are located. Corresponds to Experiment.local_dir/Experiment.name. sort (str): Key to sort by. output (str): Name of file where output is saved. filter_op (str): Filter operation in the format "<column> <operator> <value>". info_keys (list): Keys that are displayed. result_keys (list): Keys of last result that are displayed. """ _check_tabulate() experiment_state = _get_experiment_state( experiment_path, exit_on_fail=True) checkpoint_dicts = experiment_state["checkpoints"] checkpoint_dicts = [flatten_dict(g) for g in checkpoint_dicts] checkpoints_df = pd.DataFrame(checkpoint_dicts) if not info_keys: info_keys = DEFAULT_EXPERIMENT_INFO_KEYS if not result_keys: result_keys = DEFAULT_RESULT_KEYS result_keys = ["last_result:{}".format(k) for k in result_keys] col_keys = [ k for k in list(info_keys) + result_keys if k in checkpoints_df ] checkpoints_df = checkpoints_df[col_keys] if "last_update_time" in checkpoints_df: with pd.option_context("mode.use_inf_as_null", True): datetime_series = checkpoints_df["last_update_time"].dropna() datetime_series = datetime_series.apply( lambda t: datetime.fromtimestamp(t).strftime(TIMESTAMP_FORMAT)) checkpoints_df["last_update_time"] = datetime_series if "logdir" in checkpoints_df: # logdir often too verbose to view in table, so drop experiment_path checkpoints_df["logdir"] = checkpoints_df["logdir"].str.replace( experiment_path, "") if filter_op: col, op, val = filter_op.split(" ") col_type = checkpoints_df[col].dtype if is_numeric_dtype(col_type): val = float(val) elif is_string_dtype(col_type): val = str(val) # TODO(Andrew): add support for datetime and boolean else: raise ValueError("Unsupported dtype for \"{}\": {}".format( val, col_type)) op = OPERATORS[op] filtered_index = op(checkpoints_df[col], val) checkpoints_df = checkpoints_df[filtered_index] if sort: if sort not in checkpoints_df: raise KeyError("Sort Index \"{}\" not in: {}".format( sort, list(checkpoints_df))) checkpoints_df = checkpoints_df.sort_values(by=sort) print_format_output(checkpoints_df) if output: file_extension = os.path.splitext(output)[1].lower() if file_extension in (".p", ".pkl", ".pickle"): checkpoints_df.to_pickle(output) elif file_extension == ".csv": checkpoints_df.to_csv(output, index=False) else: raise ValueError("Unsupported filetype: {}".format(output)) print("Output saved at:", output)
python
def list_trials(experiment_path, sort=None, output=None, filter_op=None, info_keys=None, result_keys=None): """Lists trials in the directory subtree starting at the given path. Args: experiment_path (str): Directory where trials are located. Corresponds to Experiment.local_dir/Experiment.name. sort (str): Key to sort by. output (str): Name of file where output is saved. filter_op (str): Filter operation in the format "<column> <operator> <value>". info_keys (list): Keys that are displayed. result_keys (list): Keys of last result that are displayed. """ _check_tabulate() experiment_state = _get_experiment_state( experiment_path, exit_on_fail=True) checkpoint_dicts = experiment_state["checkpoints"] checkpoint_dicts = [flatten_dict(g) for g in checkpoint_dicts] checkpoints_df = pd.DataFrame(checkpoint_dicts) if not info_keys: info_keys = DEFAULT_EXPERIMENT_INFO_KEYS if not result_keys: result_keys = DEFAULT_RESULT_KEYS result_keys = ["last_result:{}".format(k) for k in result_keys] col_keys = [ k for k in list(info_keys) + result_keys if k in checkpoints_df ] checkpoints_df = checkpoints_df[col_keys] if "last_update_time" in checkpoints_df: with pd.option_context("mode.use_inf_as_null", True): datetime_series = checkpoints_df["last_update_time"].dropna() datetime_series = datetime_series.apply( lambda t: datetime.fromtimestamp(t).strftime(TIMESTAMP_FORMAT)) checkpoints_df["last_update_time"] = datetime_series if "logdir" in checkpoints_df: # logdir often too verbose to view in table, so drop experiment_path checkpoints_df["logdir"] = checkpoints_df["logdir"].str.replace( experiment_path, "") if filter_op: col, op, val = filter_op.split(" ") col_type = checkpoints_df[col].dtype if is_numeric_dtype(col_type): val = float(val) elif is_string_dtype(col_type): val = str(val) # TODO(Andrew): add support for datetime and boolean else: raise ValueError("Unsupported dtype for \"{}\": {}".format( val, col_type)) op = OPERATORS[op] filtered_index = op(checkpoints_df[col], val) checkpoints_df = checkpoints_df[filtered_index] if sort: if sort not in checkpoints_df: raise KeyError("Sort Index \"{}\" not in: {}".format( sort, list(checkpoints_df))) checkpoints_df = checkpoints_df.sort_values(by=sort) print_format_output(checkpoints_df) if output: file_extension = os.path.splitext(output)[1].lower() if file_extension in (".p", ".pkl", ".pickle"): checkpoints_df.to_pickle(output) elif file_extension == ".csv": checkpoints_df.to_csv(output, index=False) else: raise ValueError("Unsupported filetype: {}".format(output)) print("Output saved at:", output)
[ "def", "list_trials", "(", "experiment_path", ",", "sort", "=", "None", ",", "output", "=", "None", ",", "filter_op", "=", "None", ",", "info_keys", "=", "None", ",", "result_keys", "=", "None", ")", ":", "_check_tabulate", "(", ")", "experiment_state", "=", "_get_experiment_state", "(", "experiment_path", ",", "exit_on_fail", "=", "True", ")", "checkpoint_dicts", "=", "experiment_state", "[", "\"checkpoints\"", "]", "checkpoint_dicts", "=", "[", "flatten_dict", "(", "g", ")", "for", "g", "in", "checkpoint_dicts", "]", "checkpoints_df", "=", "pd", ".", "DataFrame", "(", "checkpoint_dicts", ")", "if", "not", "info_keys", ":", "info_keys", "=", "DEFAULT_EXPERIMENT_INFO_KEYS", "if", "not", "result_keys", ":", "result_keys", "=", "DEFAULT_RESULT_KEYS", "result_keys", "=", "[", "\"last_result:{}\"", ".", "format", "(", "k", ")", "for", "k", "in", "result_keys", "]", "col_keys", "=", "[", "k", "for", "k", "in", "list", "(", "info_keys", ")", "+", "result_keys", "if", "k", "in", "checkpoints_df", "]", "checkpoints_df", "=", "checkpoints_df", "[", "col_keys", "]", "if", "\"last_update_time\"", "in", "checkpoints_df", ":", "with", "pd", ".", "option_context", "(", "\"mode.use_inf_as_null\"", ",", "True", ")", ":", "datetime_series", "=", "checkpoints_df", "[", "\"last_update_time\"", "]", ".", "dropna", "(", ")", "datetime_series", "=", "datetime_series", ".", "apply", "(", "lambda", "t", ":", "datetime", ".", "fromtimestamp", "(", "t", ")", ".", "strftime", "(", "TIMESTAMP_FORMAT", ")", ")", "checkpoints_df", "[", "\"last_update_time\"", "]", "=", "datetime_series", "if", "\"logdir\"", "in", "checkpoints_df", ":", "# logdir often too verbose to view in table, so drop experiment_path", "checkpoints_df", "[", "\"logdir\"", "]", "=", "checkpoints_df", "[", "\"logdir\"", "]", ".", "str", ".", "replace", "(", "experiment_path", ",", "\"\"", ")", "if", "filter_op", ":", "col", ",", "op", ",", "val", "=", "filter_op", ".", "split", "(", "\" \"", ")", "col_type", "=", "checkpoints_df", "[", "col", "]", ".", "dtype", "if", "is_numeric_dtype", "(", "col_type", ")", ":", "val", "=", "float", "(", "val", ")", "elif", "is_string_dtype", "(", "col_type", ")", ":", "val", "=", "str", "(", "val", ")", "# TODO(Andrew): add support for datetime and boolean", "else", ":", "raise", "ValueError", "(", "\"Unsupported dtype for \\\"{}\\\": {}\"", ".", "format", "(", "val", ",", "col_type", ")", ")", "op", "=", "OPERATORS", "[", "op", "]", "filtered_index", "=", "op", "(", "checkpoints_df", "[", "col", "]", ",", "val", ")", "checkpoints_df", "=", "checkpoints_df", "[", "filtered_index", "]", "if", "sort", ":", "if", "sort", "not", "in", "checkpoints_df", ":", "raise", "KeyError", "(", "\"Sort Index \\\"{}\\\" not in: {}\"", ".", "format", "(", "sort", ",", "list", "(", "checkpoints_df", ")", ")", ")", "checkpoints_df", "=", "checkpoints_df", ".", "sort_values", "(", "by", "=", "sort", ")", "print_format_output", "(", "checkpoints_df", ")", "if", "output", ":", "file_extension", "=", "os", ".", "path", ".", "splitext", "(", "output", ")", "[", "1", "]", ".", "lower", "(", ")", "if", "file_extension", "in", "(", "\".p\"", ",", "\".pkl\"", ",", "\".pickle\"", ")", ":", "checkpoints_df", ".", "to_pickle", "(", "output", ")", "elif", "file_extension", "==", "\".csv\"", ":", "checkpoints_df", ".", "to_csv", "(", "output", ",", "index", "=", "False", ")", "else", ":", "raise", "ValueError", "(", "\"Unsupported filetype: {}\"", ".", "format", "(", "output", ")", ")", "print", "(", "\"Output saved at:\"", ",", "output", ")" ]
Lists trials in the directory subtree starting at the given path. Args: experiment_path (str): Directory where trials are located. Corresponds to Experiment.local_dir/Experiment.name. sort (str): Key to sort by. output (str): Name of file where output is saved. filter_op (str): Filter operation in the format "<column> <operator> <value>". info_keys (list): Keys that are displayed. result_keys (list): Keys of last result that are displayed.
[ "Lists", "trials", "in", "the", "directory", "subtree", "starting", "at", "the", "given", "path", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/commands.py#L128-L208
train
Lists all trials in the given directory subtree.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRM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vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x31' + chr(1978 - 1926) + chr(0b110101), 1204 - 1196), ehT0Px3KOsy9(chr(0b101 + 0o53) + chr(111) + chr(0b110 + 0o54) + chr(1136 - 1085) + '\x37', 63352 - 63344), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1757 - 1707) + '\x30' + '\x31', 5023 - 5015), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49) + chr(0b101011 + 0o10) + chr(51), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + chr(165 - 117) + chr(50), 0b1000), ehT0Px3KOsy9(chr(1227 - 1179) + chr(111) + '\063' + chr(0b110100) + '\062', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b110001 + 0o1) + chr(50), 47450 - 47442), ehT0Px3KOsy9(chr(48) + chr(7483 - 7372) + chr(0b110011) + chr(0b1011 + 0o52) + chr(54), 0o10), ehT0Px3KOsy9('\060' + chr(4569 - 4458) + chr(0b110010) + chr(48), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + '\063' + chr(2533 - 2479), 0o10), ehT0Px3KOsy9(chr(1003 - 955) + '\157' + chr(51) + '\x37' + chr(0b10 + 0o57), 0o10), ehT0Px3KOsy9(chr(1250 - 1202) + '\x6f' + chr(50) + '\062' + chr(51), 0o10), ehT0Px3KOsy9('\060' + chr(8028 - 7917) + chr(1874 - 1823) + chr(52) + chr(0b11010 + 0o26), 0b1000), ehT0Px3KOsy9(chr(1960 - 1912) + chr(5990 - 5879) + chr(0b110011) + '\065', 55389 - 55381), ehT0Px3KOsy9(chr(2223 - 2175) + '\x6f' + '\063' + '\066' + chr(0b101 + 0o61), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b0 + 0o157) + chr(2984 - 2929), 65383 - 65375), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + chr(199 - 149) + '\061', 301 - 293), ehT0Px3KOsy9('\x30' + chr(0b1100000 + 0o17) + chr(0b110001) + chr(0b110110) + '\062', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(2249 - 2196) + chr(1274 - 1225), 0b1000), ehT0Px3KOsy9(chr(0b110 + 0o52) + chr(111) + chr(50) + '\062' + chr(0b110010), ord("\x08")), ehT0Px3KOsy9('\060' + chr(9208 - 9097) + '\x32' + chr(318 - 270) + chr(0b110000), 0o10), ehT0Px3KOsy9('\060' + chr(8979 - 8868) + chr(0b110001) + chr(2259 - 2211) + chr(50), 0b1000), ehT0Px3KOsy9('\x30' + chr(10062 - 9951) + chr(0b110001) + chr(1337 - 1285), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + chr(0b11001 + 0o27), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(254 - 205) + chr(0b100101 + 0o17) + chr(2047 - 1993), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b11110 + 0o121) + '\066' + chr(2285 - 2234), 0b1000), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b100111 + 0o110) + chr(0b1011 + 0o47) + '\062' + chr(2908 - 2854), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b100110 + 0o21) + '\x30', 54818 - 54810), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\062' + '\x35' + chr(2554 - 2499), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + chr(0b110100) + chr(1741 - 1692), ord("\x08")), ehT0Px3KOsy9(chr(2236 - 2188) + '\157' + chr(0b110011) + chr(0b110111) + chr(0b110111), 2013 - 2005), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + '\x33' + chr(0b110100) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(2003 - 1954) + chr(0b10110 + 0o36) + chr(0b110000), 0o10), ehT0Px3KOsy9(chr(230 - 182) + chr(0b1101111) + chr(0b11101 + 0o26) + '\067' + '\x35', 0o10), ehT0Px3KOsy9(chr(0b11100 + 0o24) + chr(111) + chr(189 - 136) + chr(0b11 + 0o62), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(0b1010 + 0o54) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(9702 - 9591) + chr(1545 - 1495) + '\061' + chr(0b110100), 60809 - 60801), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(2529 - 2476) + chr(1861 - 1810), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110010) + chr(53 - 3) + '\x34', ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(205 - 154) + chr(0b10 + 0o65) + chr(0b110100), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b1101111) + chr(53) + chr(0b10010 + 0o36), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'K'), '\144' + chr(0b110011 + 0o62) + chr(0b1001100 + 0o27) + chr(0b1011 + 0o144) + chr(3507 - 3407) + chr(8107 - 8006))(chr(0b1011 + 0o152) + '\x74' + chr(102) + chr(1445 - 1400) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def WAJVzBTIRTPX(ioiHzNeqdyqk, tlxzdTw4q2JZ=None, e1jVqMSBZ01Y=None, lUyROy3r_s_B=None, io9hWf5WVsGr=None, dH_03BBH451o=None): tFkKiTDCRqIv() kCjUuKWJNjx2 = wWDxueeMO6zE(ioiHzNeqdyqk, exit_on_fail=ehT0Px3KOsy9(chr(0b110000) + chr(10602 - 10491) + chr(1067 - 1018), 25135 - 25127)) ntKhkSa9XjIL = kCjUuKWJNjx2[xafqLlk3kkUe(SXOLrMavuUCe(b'\x06\xf7\xe48\xe9\x92}\x87~*\x8a'), '\x64' + chr(0b1001111 + 0o26) + chr(99) + chr(3783 - 3672) + chr(0b1001000 + 0o34) + chr(9653 - 9552))(chr(10367 - 10250) + chr(116) + chr(0b1001101 + 0o31) + chr(1882 - 1837) + '\x38')] ntKhkSa9XjIL = [MDhUNwDda7G9(RWHpzFEeviFP) for RWHpzFEeviFP in ntKhkSa9XjIL] nhPT7eP4nauC = dubtF9GfzOdC.DataFrame(ntKhkSa9XjIL) if not io9hWf5WVsGr: io9hWf5WVsGr = T0wy2snxNib6 if not dH_03BBH451o: dH_03BBH451o = TIgzLC2BNjAY dH_03BBH451o = [xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xfe\xf2/\xdd\x90w\x9de2\x8d\xa9\x9b`'), '\x64' + chr(0b1010110 + 0o17) + '\x63' + '\157' + chr(0b1100011 + 0o1) + chr(101))(chr(117) + chr(0b1110100) + chr(551 - 449) + '\x2d' + chr(0b10110 + 0o42)).V4roHaS3Ppej(OolUPRJhRaJd) for OolUPRJhRaJd in dH_03BBH451o] zby8r8BRRN90 = [OolUPRJhRaJd for OolUPRJhRaJd in YyaZ4tpXu4lf(io9hWf5WVsGr) + dH_03BBH451o if OolUPRJhRaJd in nhPT7eP4nauC] nhPT7eP4nauC = nhPT7eP4nauC[zby8r8BRRN90] if xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xfe\xf2/\xdd\x97b\x8aq*\x9c\xcc\x94t\x9bb'), '\144' + chr(0b1011 + 0o132) + chr(99) + chr(8310 - 8199) + chr(0b1011 + 0o131) + chr(101))(chr(10457 - 10340) + chr(116) + '\146' + chr(0b101101) + chr(0b101 + 0o63)) in nhPT7eP4nauC: with xafqLlk3kkUe(dubtF9GfzOdC, xafqLlk3kkUe(SXOLrMavuUCe(b'\n\xef\xf52\xed\x8cM\x8d\x7f0\x8d\xf6\x98i'), chr(100) + '\x65' + '\143' + chr(10233 - 10122) + '\x64' + chr(101))(chr(0b1110101) + chr(0b111101 + 0o67) + '\x66' + chr(45) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x08\xf0\xe5>\xac\x97a\x8bO7\x97\xf5\xbf|\x85X\xbf\x07\x05\xfe'), chr(5995 - 5895) + chr(0b1100000 + 0o5) + chr(0b1100011) + chr(0b11101 + 0o122) + chr(100) + chr(0b1011011 + 0o12))('\x75' + chr(0b111101 + 0o67) + chr(0b1100110) + '\055' + chr(0b11100 + 0o34)), ehT0Px3KOsy9(chr(0b101010 + 0o6) + '\x6f' + '\x31', 8)): zlUgi4rW__tr = nhPT7eP4nauC[xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xfe\xf2/\xdd\x97b\x8aq*\x9c\xcc\x94t\x9bb'), chr(0b11001 + 0o113) + chr(0b1100 + 0o131) + chr(99) + '\x6f' + chr(100) + '\145')(chr(587 - 470) + chr(0b1010101 + 0o37) + chr(6504 - 6402) + chr(45) + chr(1141 - 1085))].dropna() zlUgi4rW__tr = zlUgi4rW__tr.apply(lambda YeT3l7JgTbWR: zKdiQFzuryNR.fromtimestamp(YeT3l7JgTbWR).strftime(TM4rW11AHa_u)) nhPT7eP4nauC[xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xfe\xf2/\xdd\x97b\x8aq*\x9c\xcc\x94t\x9bb'), chr(100) + chr(101) + chr(99) + '\x6f' + '\144' + chr(0b100101 + 0o100))(chr(0b1110001 + 0o4) + chr(116) + chr(4102 - 4000) + '\x2d' + '\x38')] = zlUgi4rW__tr if xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xf0\xe6?\xeb\x90'), '\x64' + chr(0b1 + 0o144) + '\x63' + chr(111) + '\x64' + '\x65')(chr(4302 - 4185) + chr(0b101000 + 0o114) + chr(102) + '\055' + chr(56)) in nhPT7eP4nauC: nhPT7eP4nauC[xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xf0\xe6?\xeb\x90'), '\x64' + '\x65' + chr(6415 - 6316) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + '\146' + chr(1666 - 1621) + chr(2282 - 2226))] = nhPT7eP4nauC[xafqLlk3kkUe(SXOLrMavuUCe(b'\t\xf0\xe6?\xeb\x90'), chr(4375 - 4275) + '\x65' + '\143' + '\157' + '\144' + '\x65')(chr(117) + chr(0b1110100) + '\146' + '\055' + '\070')].str.replace(ioiHzNeqdyqk, xafqLlk3kkUe(SXOLrMavuUCe(b''), chr(0b1100100) + chr(101) + chr(99) + chr(1583 - 1472) + chr(0b1100100) + chr(101))('\x75' + chr(116) + chr(102) + '\055' + chr(0b111000))) if lUyROy3r_s_B: (Qa2uSJqQPT3w, C8dAr6Ujq2Tn, pQxH2D_k9sXQ) = lUyROy3r_s_B.split(xafqLlk3kkUe(SXOLrMavuUCe(b'E'), chr(100) + chr(0b1011001 + 0o14) + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1000100 + 0o42) + chr(45) + chr(56))) tsawQFQB3tvJ = nhPT7eP4nauC[Qa2uSJqQPT3w].jSV9IKnemH7K if SRlE6YMk7eL1(tsawQFQB3tvJ): pQxH2D_k9sXQ = kkSX4ccExqw4(pQxH2D_k9sXQ) elif Yg3npXqt7Ipc(tsawQFQB3tvJ): pQxH2D_k9sXQ = M8_cKLkHVB2V(pQxH2D_k9sXQ) else: raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'0\xf1\xf2.\xf2\x92}\x9cd;\x9d\xb3\x84i\x8fw\xb4R\x0f\xfd\xf2b.k\x1b\x11\xac\x18\xd4\x9c'), '\144' + chr(101) + '\x63' + chr(0b110001 + 0o76) + '\144' + '\x65')(chr(0b1110101) + chr(0b1100110 + 0o16) + chr(5068 - 4966) + chr(700 - 655) + chr(995 - 939)), xafqLlk3kkUe(SXOLrMavuUCe(b'3\xab\xf34\xca\x83A\xdd@.\x9c\xf9'), chr(9352 - 9252) + chr(0b110010 + 0o63) + '\x63' + '\x6f' + chr(100) + chr(4551 - 4450))(chr(0b1101 + 0o150) + chr(13306 - 13190) + chr(0b1001111 + 0o27) + '\055' + chr(0b11000 + 0o40)))(pQxH2D_k9sXQ, tsawQFQB3tvJ)) C8dAr6Ujq2Tn = s5kZbRZTl_HL[C8dAr6Ujq2Tn] AbrluannBESM = C8dAr6Ujq2Tn(nhPT7eP4nauC[Qa2uSJqQPT3w], pQxH2D_k9sXQ) nhPT7eP4nauC = nhPT7eP4nauC[AbrluannBESM] if tlxzdTw4q2JZ: if tlxzdTw4q2JZ not in nhPT7eP4nauC: raise RQ6CSRrFArYB(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b"6\xf0\xf3/\xa2\xab|\x8au&\xd9\xb1\x9b`\xd4'\xbf\x1d\x1d\xb2\xe9,60\x1dN"), chr(100) + chr(1152 - 1051) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1101101 + 0o10) + chr(116) + chr(0b111110 + 0o50) + chr(45) + chr(167 - 111)), xafqLlk3kkUe(SXOLrMavuUCe(b'3\xab\xf34\xca\x83A\xdd@.\x9c\xf9'), chr(8936 - 8836) + chr(2905 - 2804) + '\143' + chr(111) + '\x64' + chr(0b111100 + 0o51))('\x75' + '\164' + chr(8256 - 8154) + '\055' + chr(56)))(tlxzdTw4q2JZ, YyaZ4tpXu4lf(nhPT7eP4nauC))) nhPT7eP4nauC = nhPT7eP4nauC.sort_values(by=tlxzdTw4q2JZ) ni5gGfQbfX_h(nhPT7eP4nauC) if e1jVqMSBZ01Y: NMUX70P_BF5s = oqhJDdMJfuwx.path.splitext(e1jVqMSBZ01Y)[ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(0b1101111) + '\x31', 8)].lower() if NMUX70P_BF5s in (xafqLlk3kkUe(SXOLrMavuUCe(b'K\xef'), chr(2225 - 2125) + chr(0b1100101) + '\143' + chr(111) + '\x64' + chr(6926 - 6825))(chr(1397 - 1280) + '\164' + chr(8332 - 8230) + '\055' + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'K\xef\xea7'), chr(6352 - 6252) + chr(9463 - 9362) + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(6331 - 6214) + chr(0b1110100) + chr(0b1000 + 0o136) + chr(0b1 + 0o54) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'K\xef\xe88\xe9\x8ew'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(0b100111 + 0o76))(chr(0b1110101) + chr(116) + chr(4196 - 4094) + '\x2d' + chr(56))): xafqLlk3kkUe(nhPT7eP4nauC, xafqLlk3kkUe(SXOLrMavuUCe(b'\x11\xf0\xde+\xeb\x81y\x82u'), '\x64' + '\x65' + chr(0b1100011) + chr(8754 - 8643) + chr(0b1 + 0o143) + chr(1852 - 1751))('\165' + chr(0b1110100) + '\x66' + chr(1540 - 1495) + chr(0b11010 + 0o36)))(e1jVqMSBZ01Y) elif NMUX70P_BF5s == xafqLlk3kkUe(SXOLrMavuUCe(b'K\xfc\xf2-'), '\x64' + chr(101) + '\x63' + chr(0b1010 + 0o145) + chr(100) + '\145')(chr(117) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38'): xafqLlk3kkUe(nhPT7eP4nauC, xafqLlk3kkUe(SXOLrMavuUCe(b'\x11\xf0\xde8\xf1\x94'), '\x64' + '\x65' + '\x63' + '\157' + '\x64' + '\145')('\x75' + chr(2225 - 2109) + '\x66' + chr(0b10111 + 0o26) + '\070'))(e1jVqMSBZ01Y, index=ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110000), ord("\x08"))) else: raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'0\xf1\xf2.\xf2\x92}\x9cd;\x9d\xb3\x86t\x9ab\xa5\x0b\x19\xf7\xbabwm'), chr(0b1001100 + 0o30) + chr(0b1100101) + '\143' + chr(3808 - 3697) + chr(0b1100100) + chr(101))('\x75' + chr(8102 - 7986) + '\x66' + chr(0b10110 + 0o27) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'3\xab\xf34\xca\x83A\xdd@.\x9c\xf9'), chr(6887 - 6787) + '\145' + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(0b101101) + '\x38'))(e1jVqMSBZ01Y)) zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b'*\xea\xf5+\xf7\x962\x9dq(\x9c\xf7\xc0|\x82='), chr(0b1100100) + chr(6619 - 6518) + '\143' + chr(0b111010 + 0o65) + chr(100) + '\x65')('\x75' + '\x74' + '\x66' + chr(0b101101) + chr(0b100 + 0o64)), e1jVqMSBZ01Y)
ray-project/ray
python/ray/tune/commands.py
list_experiments
def list_experiments(project_path, sort=None, output=None, filter_op=None, info_keys=None): """Lists experiments in the directory subtree. Args: project_path (str): Directory where experiments are located. Corresponds to Experiment.local_dir. sort (str): Key to sort by. output (str): Name of file where output is saved. filter_op (str): Filter operation in the format "<column> <operator> <value>". info_keys (list): Keys that are displayed. """ _check_tabulate() base, experiment_folders, _ = next(os.walk(project_path)) experiment_data_collection = [] for experiment_dir in experiment_folders: experiment_state = _get_experiment_state( os.path.join(base, experiment_dir)) if not experiment_state: logger.debug("No experiment state found in %s", experiment_dir) continue checkpoints = pd.DataFrame(experiment_state["checkpoints"]) runner_data = experiment_state["runner_data"] # Format time-based values. time_values = { "start_time": runner_data.get("_start_time"), "last_updated": experiment_state.get("timestamp"), } formatted_time_values = { key: datetime.fromtimestamp(val).strftime(TIMESTAMP_FORMAT) if val else None for key, val in time_values.items() } experiment_data = { "name": experiment_dir, "total_trials": checkpoints.shape[0], "running_trials": (checkpoints["status"] == Trial.RUNNING).sum(), "terminated_trials": ( checkpoints["status"] == Trial.TERMINATED).sum(), "error_trials": (checkpoints["status"] == Trial.ERROR).sum(), } experiment_data.update(formatted_time_values) experiment_data_collection.append(experiment_data) if not experiment_data_collection: print("No experiments found!") sys.exit(0) info_df = pd.DataFrame(experiment_data_collection) if not info_keys: info_keys = DEFAULT_PROJECT_INFO_KEYS col_keys = [k for k in list(info_keys) if k in info_df] if not col_keys: print("None of keys {} in experiment data!".format(info_keys)) sys.exit(0) info_df = info_df[col_keys] if filter_op: col, op, val = filter_op.split(" ") col_type = info_df[col].dtype if is_numeric_dtype(col_type): val = float(val) elif is_string_dtype(col_type): val = str(val) # TODO(Andrew): add support for datetime and boolean else: raise ValueError("Unsupported dtype for \"{}\": {}".format( val, col_type)) op = OPERATORS[op] filtered_index = op(info_df[col], val) info_df = info_df[filtered_index] if sort: if sort not in info_df: raise KeyError("Sort Index \"{}\" not in: {}".format( sort, list(info_df))) info_df = info_df.sort_values(by=sort) print_format_output(info_df) if output: file_extension = os.path.splitext(output)[1].lower() if file_extension in (".p", ".pkl", ".pickle"): info_df.to_pickle(output) elif file_extension == ".csv": info_df.to_csv(output, index=False) else: raise ValueError("Unsupported filetype: {}".format(output)) print("Output saved at:", output)
python
def list_experiments(project_path, sort=None, output=None, filter_op=None, info_keys=None): """Lists experiments in the directory subtree. Args: project_path (str): Directory where experiments are located. Corresponds to Experiment.local_dir. sort (str): Key to sort by. output (str): Name of file where output is saved. filter_op (str): Filter operation in the format "<column> <operator> <value>". info_keys (list): Keys that are displayed. """ _check_tabulate() base, experiment_folders, _ = next(os.walk(project_path)) experiment_data_collection = [] for experiment_dir in experiment_folders: experiment_state = _get_experiment_state( os.path.join(base, experiment_dir)) if not experiment_state: logger.debug("No experiment state found in %s", experiment_dir) continue checkpoints = pd.DataFrame(experiment_state["checkpoints"]) runner_data = experiment_state["runner_data"] # Format time-based values. time_values = { "start_time": runner_data.get("_start_time"), "last_updated": experiment_state.get("timestamp"), } formatted_time_values = { key: datetime.fromtimestamp(val).strftime(TIMESTAMP_FORMAT) if val else None for key, val in time_values.items() } experiment_data = { "name": experiment_dir, "total_trials": checkpoints.shape[0], "running_trials": (checkpoints["status"] == Trial.RUNNING).sum(), "terminated_trials": ( checkpoints["status"] == Trial.TERMINATED).sum(), "error_trials": (checkpoints["status"] == Trial.ERROR).sum(), } experiment_data.update(formatted_time_values) experiment_data_collection.append(experiment_data) if not experiment_data_collection: print("No experiments found!") sys.exit(0) info_df = pd.DataFrame(experiment_data_collection) if not info_keys: info_keys = DEFAULT_PROJECT_INFO_KEYS col_keys = [k for k in list(info_keys) if k in info_df] if not col_keys: print("None of keys {} in experiment data!".format(info_keys)) sys.exit(0) info_df = info_df[col_keys] if filter_op: col, op, val = filter_op.split(" ") col_type = info_df[col].dtype if is_numeric_dtype(col_type): val = float(val) elif is_string_dtype(col_type): val = str(val) # TODO(Andrew): add support for datetime and boolean else: raise ValueError("Unsupported dtype for \"{}\": {}".format( val, col_type)) op = OPERATORS[op] filtered_index = op(info_df[col], val) info_df = info_df[filtered_index] if sort: if sort not in info_df: raise KeyError("Sort Index \"{}\" not in: {}".format( sort, list(info_df))) info_df = info_df.sort_values(by=sort) print_format_output(info_df) if output: file_extension = os.path.splitext(output)[1].lower() if file_extension in (".p", ".pkl", ".pickle"): info_df.to_pickle(output) elif file_extension == ".csv": info_df.to_csv(output, index=False) else: raise ValueError("Unsupported filetype: {}".format(output)) print("Output saved at:", output)
[ "def", "list_experiments", "(", "project_path", ",", "sort", "=", "None", ",", "output", "=", "None", ",", "filter_op", "=", "None", ",", "info_keys", "=", "None", ")", ":", "_check_tabulate", "(", ")", "base", ",", "experiment_folders", ",", "_", "=", "next", "(", "os", ".", "walk", "(", "project_path", ")", ")", "experiment_data_collection", "=", "[", "]", "for", "experiment_dir", "in", "experiment_folders", ":", "experiment_state", "=", "_get_experiment_state", "(", "os", ".", "path", ".", "join", "(", "base", ",", "experiment_dir", ")", ")", "if", "not", "experiment_state", ":", "logger", ".", "debug", "(", "\"No experiment state found in %s\"", ",", "experiment_dir", ")", "continue", "checkpoints", "=", "pd", ".", "DataFrame", "(", "experiment_state", "[", "\"checkpoints\"", "]", ")", "runner_data", "=", "experiment_state", "[", "\"runner_data\"", "]", "# Format time-based values.", "time_values", "=", "{", "\"start_time\"", ":", "runner_data", ".", "get", "(", "\"_start_time\"", ")", ",", "\"last_updated\"", ":", "experiment_state", ".", "get", "(", "\"timestamp\"", ")", ",", "}", "formatted_time_values", "=", "{", "key", ":", "datetime", ".", "fromtimestamp", "(", "val", ")", ".", "strftime", "(", "TIMESTAMP_FORMAT", ")", "if", "val", "else", "None", "for", "key", ",", "val", "in", "time_values", ".", "items", "(", ")", "}", "experiment_data", "=", "{", "\"name\"", ":", "experiment_dir", ",", "\"total_trials\"", ":", "checkpoints", ".", "shape", "[", "0", "]", ",", "\"running_trials\"", ":", "(", "checkpoints", "[", "\"status\"", "]", "==", "Trial", ".", "RUNNING", ")", ".", "sum", "(", ")", ",", "\"terminated_trials\"", ":", "(", "checkpoints", "[", "\"status\"", "]", "==", "Trial", ".", "TERMINATED", ")", ".", "sum", "(", ")", ",", "\"error_trials\"", ":", "(", "checkpoints", "[", "\"status\"", "]", "==", "Trial", ".", "ERROR", ")", ".", "sum", "(", ")", ",", "}", "experiment_data", ".", "update", "(", "formatted_time_values", ")", "experiment_data_collection", ".", "append", "(", "experiment_data", ")", "if", "not", "experiment_data_collection", ":", "print", "(", "\"No experiments found!\"", ")", "sys", ".", "exit", "(", "0", ")", "info_df", "=", "pd", ".", "DataFrame", "(", "experiment_data_collection", ")", "if", "not", "info_keys", ":", "info_keys", "=", "DEFAULT_PROJECT_INFO_KEYS", "col_keys", "=", "[", "k", "for", "k", "in", "list", "(", "info_keys", ")", "if", "k", "in", "info_df", "]", "if", "not", "col_keys", ":", "print", "(", "\"None of keys {} in experiment data!\"", ".", "format", "(", "info_keys", ")", ")", "sys", ".", "exit", "(", "0", ")", "info_df", "=", "info_df", "[", "col_keys", "]", "if", "filter_op", ":", "col", ",", "op", ",", "val", "=", "filter_op", ".", "split", "(", "\" \"", ")", "col_type", "=", "info_df", "[", "col", "]", ".", "dtype", "if", "is_numeric_dtype", "(", "col_type", ")", ":", "val", "=", "float", "(", "val", ")", "elif", "is_string_dtype", "(", "col_type", ")", ":", "val", "=", "str", "(", "val", ")", "# TODO(Andrew): add support for datetime and boolean", "else", ":", "raise", "ValueError", "(", "\"Unsupported dtype for \\\"{}\\\": {}\"", ".", "format", "(", "val", ",", "col_type", ")", ")", "op", "=", "OPERATORS", "[", "op", "]", "filtered_index", "=", "op", "(", "info_df", "[", "col", "]", ",", "val", ")", "info_df", "=", "info_df", "[", "filtered_index", "]", "if", "sort", ":", "if", "sort", "not", "in", "info_df", ":", "raise", "KeyError", "(", "\"Sort Index \\\"{}\\\" not in: {}\"", ".", "format", "(", "sort", ",", "list", "(", "info_df", ")", ")", ")", "info_df", "=", "info_df", ".", "sort_values", "(", "by", "=", "sort", ")", "print_format_output", "(", "info_df", ")", "if", "output", ":", "file_extension", "=", "os", ".", "path", ".", "splitext", "(", "output", ")", "[", "1", "]", ".", "lower", "(", ")", "if", "file_extension", "in", "(", "\".p\"", ",", "\".pkl\"", ",", "\".pickle\"", ")", ":", "info_df", ".", "to_pickle", "(", "output", ")", "elif", "file_extension", "==", "\".csv\"", ":", "info_df", ".", "to_csv", "(", "output", ",", "index", "=", "False", ")", "else", ":", "raise", "ValueError", "(", "\"Unsupported filetype: {}\"", ".", "format", "(", "output", ")", ")", "print", "(", "\"Output saved at:\"", ",", "output", ")" ]
Lists experiments in the directory subtree. Args: project_path (str): Directory where experiments are located. Corresponds to Experiment.local_dir. sort (str): Key to sort by. output (str): Name of file where output is saved. filter_op (str): Filter operation in the format "<column> <operator> <value>". info_keys (list): Keys that are displayed.
[ "Lists", "experiments", "in", "the", "directory", "subtree", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/commands.py#L211-L309
train
Returns a list of all experiments in the project_path.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW7yQuyEnJ6E,KOHQGQ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lvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(49) + chr(0b110001) + chr(51), 0o10), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b110100 + 0o73) + chr(0b110001) + chr(0b110001), 0b1000), ehT0Px3KOsy9('\x30' + chr(1650 - 1539) + chr(489 - 438) + chr(55) + '\063', 49287 - 49279), ehT0Px3KOsy9(chr(0b1101 + 0o43) + chr(2452 - 2341) + '\x32' + chr(49) + '\067', 0b1000), ehT0Px3KOsy9(chr(0b10100 + 0o34) + '\157' + chr(51) + '\061' + '\065', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(51) + '\x30' + chr(48), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1001110 + 0o41) + chr(1505 - 1454) + chr(50) + '\065', 0o10), ehT0Px3KOsy9(chr(1642 - 1594) + chr(0b101110 + 0o101) + chr(0b110010) + chr(0b110001 + 0o6) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x32' + chr(50), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(50) + chr(0b101 + 0o57) + '\x37', 0b1000), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(598 - 487) + '\063' + chr(1330 - 1278) + chr(978 - 926), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(50) + '\064', 0o10), ehT0Px3KOsy9(chr(239 - 191) + chr(298 - 187) + '\x31' + chr(2569 - 2518) + chr(0b110000), 8238 - 8230), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b10101 + 0o41) + chr(1118 - 1068), 7220 - 7212), ehT0Px3KOsy9('\060' + chr(7113 - 7002) + chr(53) + chr(0b110000 + 0o6), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(127 - 77) + chr(1080 - 1029) + chr(55), 50142 - 50134), ehT0Px3KOsy9(chr(0b110000) + chr(12315 - 12204) + chr(1963 - 1914) + '\060' + chr(49), 47934 - 47926), ehT0Px3KOsy9(chr(2196 - 2148) + '\157' + chr(402 - 351) + chr(2210 - 2159) + chr(1550 - 1502), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b110101 + 0o72) + chr(0b100100 + 0o16) + chr(75 - 26) + chr(49), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101100 + 0o5) + chr(0b1101 + 0o52) + '\x32', 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(10829 - 10718) + chr(50) + chr(0b110111) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b11011 + 0o26) + chr(1959 - 1906) + chr(0b110010), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + chr(0b110101) + chr(1062 - 1014), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1010110 + 0o31) + '\061' + chr(51) + chr(49), 0b1000), ehT0Px3KOsy9(chr(1043 - 995) + '\157' + chr(0b110010) + chr(0b11111 + 0o24) + '\x37', 8), ehT0Px3KOsy9(chr(0b110000) + chr(3122 - 3011) + '\x34' + chr(820 - 772), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(55) + chr(53), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(8997 - 8886) + chr(0b110001) + chr(54) + chr(1106 - 1052), 0b1000), ehT0Px3KOsy9('\x30' + '\157' + chr(73 - 22) + chr(2190 - 2137) + '\064', ord("\x08")), ehT0Px3KOsy9(chr(0b11000 + 0o30) + chr(9439 - 9328) + '\x34' + '\x32', 0o10), ehT0Px3KOsy9(chr(1356 - 1308) + '\157' + '\x31' + chr(0b110010) + chr(51), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b10111 + 0o33) + '\062' + chr(0b100000 + 0o22), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(2950 - 2839) + chr(49) + '\063' + chr(784 - 735), 8), ehT0Px3KOsy9(chr(1943 - 1895) + '\157' + chr(0b10000 + 0o43) + chr(922 - 867) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(111) + '\066' + chr(52), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b101011 + 0o7) + chr(1371 - 1320) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(0b1101111) + chr(2222 - 2171) + '\x37' + '\x35', 0b1000), ehT0Px3KOsy9('\060' + chr(6143 - 6032) + '\x31' + '\x32' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + chr(0b110001) + '\066' + chr(115 - 65), ord("\x08")), ehT0Px3KOsy9(chr(0b101 + 0o53) + '\157' + chr(0b110010) + chr(0b101011 + 0o13) + chr(48), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(3599 - 3488) + '\x35' + chr(0b110000), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'e'), chr(100) + chr(8426 - 8325) + '\143' + '\x6f' + '\144' + '\x65')('\x75' + chr(0b1001000 + 0o54) + '\x66' + chr(0b11100 + 0o21) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def UHckD2jsE0QR(pdKXk9B4WPYL, tlxzdTw4q2JZ=None, e1jVqMSBZ01Y=None, lUyROy3r_s_B=None, io9hWf5WVsGr=None): tFkKiTDCRqIv() (XLXqkmM_0GVx, bsCAb6ld_o4L, VNGQdHSFPrso) = nSwwHEeM4cxI(oqhJDdMJfuwx.walk(pdKXk9B4WPYL)) x_WYBLp3pcn0 = [] for HxHZieEw01N_ in bsCAb6ld_o4L: kCjUuKWJNjx2 = wWDxueeMO6zE(oqhJDdMJfuwx.path._oWXztVNnqHF(XLXqkmM_0GVx, HxHZieEw01N_)) if not kCjUuKWJNjx2: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'/l\x99\xfa\xaa'), chr(2922 - 2822) + '\x65' + '\143' + chr(0b1010011 + 0o34) + chr(5307 - 5207) + chr(5152 - 5051))(chr(777 - 660) + chr(400 - 284) + chr(3203 - 3101) + chr(231 - 186) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x05f\xdb\xea\xb5\xb0\xb0\xcd{\xca\x81z,\x12]\xeb \xac\xecZ\xd8\x05\x9d7\xfb\x00T\x18\xcc\x07 '), '\x64' + chr(101) + chr(0b1110 + 0o125) + '\157' + chr(0b1100100) + chr(0b10110 + 0o117))(chr(3916 - 3799) + chr(7540 - 7424) + '\146' + chr(0b101101) + chr(0b100110 + 0o22)), HxHZieEw01N_) continue ZoiWO7qyi1ja = dubtF9GfzOdC.DataFrame(kCjUuKWJNjx2[xafqLlk3kkUe(SXOLrMavuUCe(b'(a\x9e\xec\xa6\xb0\xba\xd6|\xd3\x97'), chr(100) + '\145' + chr(0b111010 + 0o51) + '\157' + chr(8583 - 8483) + '\x65')(chr(0b110010 + 0o103) + '\x74' + chr(102) + chr(0b100 + 0o51) + '\070')]) kRjRydvxcORe = kCjUuKWJNjx2[xafqLlk3kkUe(SXOLrMavuUCe(b'9|\x95\xe1\xa8\xb2\x8a\xdbs\xd3\x85'), chr(0b111100 + 0o50) + chr(4201 - 4100) + chr(0b1100011) + chr(111) + chr(0b1000111 + 0o35) + '\x65')('\x75' + chr(7890 - 7774) + '\146' + chr(0b101101) + '\x38')] j5v_I4DEh2jO = {xafqLlk3kkUe(SXOLrMavuUCe(b'8}\x9a\xfd\xb9\x9f\xa1\xd6\x7f\xc2'), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(100) + chr(0b10010 + 0o123))(chr(0b1110101) + '\164' + chr(102) + '\x2d' + chr(0b110001 + 0o7)): kRjRydvxcORe.get(xafqLlk3kkUe(SXOLrMavuUCe(b'\x14z\x8f\xee\xbf\xb4\x8a\xcb{\xca\x81'), chr(1737 - 1637) + chr(1958 - 1857) + chr(99) + chr(629 - 518) + chr(0b110001 + 0o63) + chr(0b101000 + 0o75))('\165' + chr(12945 - 12829) + chr(102) + '\x2d' + chr(56))), xafqLlk3kkUe(SXOLrMavuUCe(b"'h\x88\xfb\x92\xb5\xa5\xdbs\xd3\x81p"), '\x64' + chr(0b1100101) + chr(0b1010101 + 0o16) + chr(7877 - 7766) + chr(0b10011 + 0o121) + '\x65')(chr(0b1110101) + '\164' + chr(6926 - 6824) + chr(45) + '\x38'): kCjUuKWJNjx2.get(xafqLlk3kkUe(SXOLrMavuUCe(b'?`\x96\xea\xbe\xb4\xb4\xd2b'), chr(100) + chr(3486 - 3385) + chr(0b1001010 + 0o31) + chr(0b1101111) + '\x64' + chr(0b100110 + 0o77))(chr(12236 - 12119) + '\164' + chr(4450 - 4348) + chr(1915 - 1870) + chr(1821 - 1765)))} mIiWnFCISzmB = {K3J4ZwSlE0sT: zKdiQFzuryNR.fromtimestamp(pQxH2D_k9sXQ).strftime(TM4rW11AHa_u) if pQxH2D_k9sXQ else None for (K3J4ZwSlE0sT, pQxH2D_k9sXQ) in j5v_I4DEh2jO.NzveIZ3IlSH9()} fkxR7NJtKR2o = {xafqLlk3kkUe(SXOLrMavuUCe(b'%h\x96\xea'), chr(0b1100100) + '\x65' + chr(0b1010001 + 0o22) + chr(0b110000 + 0o77) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\164' + chr(0b10100 + 0o122) + chr(0b101101) + chr(0b110110 + 0o2)): HxHZieEw01N_, xafqLlk3kkUe(SXOLrMavuUCe(b'?f\x8f\xee\xa1\x9f\xa1\xcd{\xc6\x88g'), chr(0b100001 + 0o103) + '\x65' + chr(0b1100011) + chr(5308 - 5197) + chr(100) + chr(0b1100101))('\x75' + chr(0b101110 + 0o106) + chr(102) + chr(0b101101) + '\070'): ZoiWO7qyi1ja.nauYfLglTpcb[ehT0Px3KOsy9(chr(0b101010 + 0o6) + chr(0b1101111) + '\x30', 0o10)], xafqLlk3kkUe(SXOLrMavuUCe(b'9|\x95\xe1\xa4\xae\xb2\xe0f\xd5\x8du4A'), chr(0b101010 + 0o72) + chr(9729 - 9628) + '\143' + chr(0b11 + 0o154) + chr(0b10111 + 0o115) + '\x65')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000)): (ZoiWO7qyi1ja[xafqLlk3kkUe(SXOLrMavuUCe(b'8}\x9a\xfb\xb8\xb3'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(1870 - 1753) + '\x74' + '\146' + '\x2d' + chr(0b110111 + 0o1))] == bKgNCjeVNupv.RUNNING).xkxBmo49x2An(), xafqLlk3kkUe(SXOLrMavuUCe(b'?l\x89\xe2\xa4\xae\xb4\xcbw\xc3\xbb`*[O\xf32'), chr(0b1100100) + '\145' + chr(6792 - 6693) + chr(7780 - 7669) + chr(0b100001 + 0o103) + chr(0b1001011 + 0o32))(chr(3943 - 3826) + chr(12938 - 12822) + chr(4989 - 4887) + chr(45) + chr(933 - 877)): (ZoiWO7qyi1ja[xafqLlk3kkUe(SXOLrMavuUCe(b'8}\x9a\xfb\xb8\xb3'), chr(2692 - 2592) + chr(0b1100101) + chr(7985 - 7886) + '\157' + chr(6944 - 6844) + chr(0b1100101))(chr(117) + '\x74' + chr(2884 - 2782) + '\055' + chr(56))] == bKgNCjeVNupv.TERMINATED).xkxBmo49x2An(), xafqLlk3kkUe(SXOLrMavuUCe(b'.{\x89\xe0\xbf\x9f\xa1\xcd{\xc6\x88g'), chr(100) + '\145' + chr(0b1100011) + chr(4385 - 4274) + chr(100) + '\x65')(chr(0b1011011 + 0o32) + chr(0b101000 + 0o114) + chr(0b1100110) + chr(0b101101) + chr(0b1101 + 0o53)): (ZoiWO7qyi1ja[xafqLlk3kkUe(SXOLrMavuUCe(b'8}\x9a\xfb\xb8\xb3'), chr(338 - 238) + chr(1670 - 1569) + chr(0b1100011) + chr(111) + chr(0b100100 + 0o100) + chr(0b10110 + 0o117))(chr(0b1110101) + chr(116) + '\x66' + '\055' + '\x38')] == bKgNCjeVNupv.ERROR).xkxBmo49x2An()} xafqLlk3kkUe(fkxR7NJtKR2o, xafqLlk3kkUe(SXOLrMavuUCe(b'\x11}\xba\xca\xa4\x8e\x9f\xd1k\x93\x81$'), '\x64' + chr(0b1010001 + 0o24) + chr(7358 - 7259) + '\157' + '\144' + chr(0b1100101))(chr(6539 - 6422) + chr(0b1110100) + chr(0b1100110) + chr(1753 - 1708) + chr(0b100110 + 0o22)))(mIiWnFCISzmB) xafqLlk3kkUe(x_WYBLp3pcn0, xafqLlk3kkUe(SXOLrMavuUCe(b'*y\x8b\xea\xa3\xa4'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1000110 + 0o37))(chr(1476 - 1359) + chr(0b1110100) + '\x66' + chr(0b10001 + 0o34) + chr(0b111000)))(fkxR7NJtKR2o) if not x_WYBLp3pcn0: zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b'\x05f\xdb\xea\xb5\xb0\xb0\xcd{\xca\x81z,A\x0e\xf9.\xad\xe7\x1e\x9f'), '\x64' + '\145' + '\143' + chr(0b11001 + 0o126) + '\x64' + chr(0b101010 + 0o73))('\165' + chr(121 - 5) + '\x66' + chr(45) + chr(0b111000))) xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\x08D\xae\xeb\x97\xb4\xb4\xf0@\xd0\x8b '), '\x64' + chr(897 - 796) + '\143' + chr(0b1011 + 0o144) + chr(0b1010010 + 0o22) + '\145')(chr(1150 - 1033) + '\x74' + '\146' + '\x2d' + chr(0b100001 + 0o27)))(ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b1101111 + 0o0) + chr(0b110000), 8)) cP3nMXuQCh3y = dubtF9GfzOdC.DataFrame(x_WYBLp3pcn0) if not io9hWf5WVsGr: io9hWf5WVsGr = AXFQNUepf9Oj zby8r8BRRN90 = [OolUPRJhRaJd for OolUPRJhRaJd in YyaZ4tpXu4lf(io9hWf5WVsGr) if OolUPRJhRaJd in cP3nMXuQCh3y] if not zby8r8BRRN90: zLUzGokYBM2Z(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x05f\x95\xea\xed\xaf\xb3\x9fy\xc2\x9dgxIS\xbf(\xb6\xa9\x1f\xc6\x1a\x8d+\xf6MX\x18\x98\x027\xf3-\x99\x15'), chr(100) + '\145' + chr(6761 - 6662) + '\x6f' + chr(100) + chr(101))('\165' + '\164' + chr(102) + chr(45) + chr(0b10000 + 0o50)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x1d=\x89\xe0\x85\xa1\x86\x8cB\xd7\x81~'), '\x64' + chr(5881 - 5780) + chr(0b1000 + 0o133) + chr(111) + chr(0b1100100) + chr(395 - 294))(chr(117) + chr(1656 - 1540) + chr(0b1010 + 0o134) + chr(0b1 + 0o54) + chr(0b110100 + 0o4)))(io9hWf5WVsGr)) xafqLlk3kkUe(a2SYDDomXDZ2, xafqLlk3kkUe(SXOLrMavuUCe(b'\x08D\xae\xeb\x97\xb4\xb4\xf0@\xd0\x8b '), '\144' + chr(101) + chr(0b1010110 + 0o15) + chr(0b1101001 + 0o6) + '\x64' + chr(101))(chr(0b11101 + 0o130) + chr(0b1010 + 0o152) + chr(1961 - 1859) + chr(45) + chr(3048 - 2992)))(ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1437 - 1389), 8)) cP3nMXuQCh3y = cP3nMXuQCh3y[zby8r8BRRN90] if lUyROy3r_s_B: (Qa2uSJqQPT3w, C8dAr6Ujq2Tn, pQxH2D_k9sXQ) = lUyROy3r_s_B.split(xafqLlk3kkUe(SXOLrMavuUCe(b'k'), '\144' + chr(101) + chr(0b1100011) + chr(0b1011010 + 0o25) + chr(740 - 640) + chr(0b1100101))(chr(13502 - 13385) + '\x74' + '\x66' + chr(0b100000 + 0o15) + '\x38')) tsawQFQB3tvJ = cP3nMXuQCh3y[Qa2uSJqQPT3w].jSV9IKnemH7K if SRlE6YMk7eL1(tsawQFQB3tvJ): pQxH2D_k9sXQ = kkSX4ccExqw4(pQxH2D_k9sXQ) elif Yg3npXqt7Ipc(tsawQFQB3tvJ): pQxH2D_k9sXQ = M8_cKLkHVB2V(pQxH2D_k9sXQ) else: raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x1eg\x88\xfa\xbd\xb0\xba\xcdf\xc2\x804<FW\xef$\xf8\xef\x15\xccJ\xca"\xe2\x02\x07V\x97_'), '\144' + chr(586 - 485) + chr(99) + chr(0b100110 + 0o111) + chr(100) + chr(10194 - 10093))(chr(13501 - 13384) + '\164' + '\146' + chr(0b101101) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x1d=\x89\xe0\x85\xa1\x86\x8cB\xd7\x81~'), chr(100) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(3089 - 2987) + chr(1024 - 979) + chr(0b111000)))(pQxH2D_k9sXQ, tsawQFQB3tvJ)) C8dAr6Ujq2Tn = s5kZbRZTl_HL[C8dAr6Ujq2Tn] AbrluannBESM = C8dAr6Ujq2Tn(cP3nMXuQCh3y[Qa2uSJqQPT3w], pQxH2D_k9sXQ) cP3nMXuQCh3y = cP3nMXuQCh3y[AbrluannBESM] if tlxzdTw4q2JZ: if tlxzdTw4q2JZ not in cP3nMXuQCh3y: raise RQ6CSRrFArYB(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x18f\x89\xfb\xed\x89\xbb\xdbw\xdf\xc46#O\x0c\xbf/\xb7\xfdZ\xd7\x04\xd2y\xe4]'), chr(0b100 + 0o140) + '\x65' + chr(99) + '\x6f' + chr(0b11010 + 0o112) + '\x65')('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38'), xafqLlk3kkUe(SXOLrMavuUCe(b'\x1d=\x89\xe0\x85\xa1\x86\x8cB\xd7\x81~'), chr(100) + '\145' + chr(628 - 529) + '\x6f' + chr(100) + '\145')('\x75' + '\164' + '\x66' + '\x2d' + '\x38'))(tlxzdTw4q2JZ, YyaZ4tpXu4lf(cP3nMXuQCh3y))) cP3nMXuQCh3y = cP3nMXuQCh3y.sort_values(by=tlxzdTw4q2JZ) ni5gGfQbfX_h(cP3nMXuQCh3y) if e1jVqMSBZ01Y: NMUX70P_BF5s = oqhJDdMJfuwx.path.splitext(e1jVqMSBZ01Y)[ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(49), 0b1000)].lower() if NMUX70P_BF5s in (xafqLlk3kkUe(SXOLrMavuUCe(b'ey'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(7089 - 6989) + '\x65')('\x75' + '\164' + '\146' + chr(45) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'ey\x90\xe3'), chr(100) + chr(8361 - 8260) + '\x63' + chr(111) + '\144' + chr(101))(chr(3205 - 3088) + chr(0b100011 + 0o121) + '\146' + chr(0b100101 + 0o10) + '\070'), xafqLlk3kkUe(SXOLrMavuUCe(b'ey\x92\xec\xa6\xac\xb0'), '\x64' + '\145' + chr(1868 - 1769) + chr(0b1101111) + chr(100) + chr(0b111101 + 0o50))(chr(10389 - 10272) + chr(318 - 202) + chr(0b10011 + 0o123) + chr(0b101001 + 0o4) + '\x38')): xafqLlk3kkUe(cP3nMXuQCh3y, xafqLlk3kkUe(SXOLrMavuUCe(b'?f\xa4\xff\xa4\xa3\xbe\xd3w'), chr(0b1100100) + chr(101) + '\143' + '\157' + chr(100) + chr(101))('\x75' + chr(13176 - 13060) + '\x66' + chr(0b101101) + chr(56)))(e1jVqMSBZ01Y) elif NMUX70P_BF5s == xafqLlk3kkUe(SXOLrMavuUCe(b'ej\x88\xf9'), chr(0b1011010 + 0o12) + chr(101) + chr(4170 - 4071) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1011011 + 0o32) + chr(10034 - 9918) + chr(0b1001010 + 0o34) + '\055' + chr(0b1000 + 0o60)): xafqLlk3kkUe(cP3nMXuQCh3y, xafqLlk3kkUe(SXOLrMavuUCe(b'?f\xa4\xec\xbe\xb6'), chr(9955 - 9855) + chr(9393 - 9292) + chr(4023 - 3924) + '\x6f' + chr(3835 - 3735) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b100101 + 0o101) + chr(45) + chr(0b111000)))(e1jVqMSBZ01Y, index=ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b101110 + 0o2), 8)) else: raise q1QCh3W88sgk(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\x1eg\x88\xfa\xbd\xb0\xba\xcdf\xc2\x804>[B\xfa5\xa1\xf9\x1f\x84J\x93$'), chr(100) + chr(0b1100101) + chr(99) + chr(0b100101 + 0o112) + chr(100) + chr(7206 - 7105))(chr(0b11100 + 0o131) + chr(0b101010 + 0o112) + '\x66' + chr(0b11110 + 0o17) + chr(0b100011 + 0o25)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x1d=\x89\xe0\x85\xa1\x86\x8cB\xd7\x81~'), chr(100) + chr(6114 - 6013) + chr(99) + chr(0b100100 + 0o113) + chr(0b111010 + 0o52) + chr(0b111101 + 0o50))(chr(0b1101001 + 0o14) + '\164' + '\x66' + '\x2d' + '\x38'))(e1jVqMSBZ01Y)) zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b'\x04|\x8f\xff\xb8\xb4\xf5\xccs\xd1\x81pxSZ\xa5'), '\144' + chr(101) + chr(4931 - 4832) + chr(6835 - 6724) + chr(0b1100100) + '\145')('\165' + '\x74' + chr(6415 - 6313) + chr(735 - 690) + chr(0b111000)), e1jVqMSBZ01Y)
ray-project/ray
python/ray/tune/commands.py
add_note
def add_note(path, filename="note.txt"): """Opens a txt file at the given path where user can add and save notes. Args: path (str): Directory where note will be saved. filename (str): Name of note. Defaults to "note.txt" """ path = os.path.expanduser(path) assert os.path.isdir(path), "{} is not a valid directory.".format(path) filepath = os.path.join(path, filename) exists = os.path.isfile(filepath) try: subprocess.call([EDITOR, filepath]) except Exception as exc: logger.error("Editing note failed!") raise exc if exists: print("Note updated at:", filepath) else: print("Note created at:", filepath)
python
def add_note(path, filename="note.txt"): """Opens a txt file at the given path where user can add and save notes. Args: path (str): Directory where note will be saved. filename (str): Name of note. Defaults to "note.txt" """ path = os.path.expanduser(path) assert os.path.isdir(path), "{} is not a valid directory.".format(path) filepath = os.path.join(path, filename) exists = os.path.isfile(filepath) try: subprocess.call([EDITOR, filepath]) except Exception as exc: logger.error("Editing note failed!") raise exc if exists: print("Note updated at:", filepath) else: print("Note created at:", filepath)
[ "def", "add_note", "(", "path", ",", "filename", "=", "\"note.txt\"", ")", ":", "path", "=", "os", ".", "path", ".", "expanduser", "(", "path", ")", "assert", "os", ".", "path", ".", "isdir", "(", "path", ")", ",", "\"{} is not a valid directory.\"", ".", "format", "(", "path", ")", "filepath", "=", "os", ".", "path", ".", "join", "(", "path", ",", "filename", ")", "exists", "=", "os", ".", "path", ".", "isfile", "(", "filepath", ")", "try", ":", "subprocess", ".", "call", "(", "[", "EDITOR", ",", "filepath", "]", ")", "except", "Exception", "as", "exc", ":", "logger", ".", "error", "(", "\"Editing note failed!\"", ")", "raise", "exc", "if", "exists", ":", "print", "(", "\"Note updated at:\"", ",", "filepath", ")", "else", ":", "print", "(", "\"Note created at:\"", ",", "filepath", ")" ]
Opens a txt file at the given path where user can add and save notes. Args: path (str): Directory where note will be saved. filename (str): Name of note. Defaults to "note.txt"
[ "Opens", "a", "txt", "file", "at", "the", "given", "path", "where", "user", "can", "add", "and", "save", "notes", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/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iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b100100 + 0o14) + '\157' + chr(51) + '\060' + chr(0b110101), 20153 - 20145), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1407 - 1358) + '\x34' + '\x30', 0o10), ehT0Px3KOsy9(chr(479 - 431) + '\x6f' + chr(50) + chr(0b110111) + chr(0b101010 + 0o6), 0o10), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(111) + chr(0b1101 + 0o51), ord("\x08")), ehT0Px3KOsy9(chr(812 - 764) + '\157' + chr(548 - 498) + chr(1917 - 1866) + chr(0b100001 + 0o22), 0o10), ehT0Px3KOsy9('\060' + chr(0b11110 + 0o121) + chr(49) + '\062' + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + '\x33' + chr(48), 12604 - 12596), ehT0Px3KOsy9(chr(1177 - 1129) + chr(0b1101111) + chr(0b110001) + '\x32' + chr(0b11111 + 0o26), 0o10), ehT0Px3KOsy9('\x30' + '\157' + chr(795 - 746) + chr(0b10110 + 0o32) + chr(0b100110 + 0o20), 5405 - 5397), ehT0Px3KOsy9('\060' + chr(3274 - 3163) + '\x31' + chr(55) + '\063', 0o10), ehT0Px3KOsy9(chr(48) + chr(10371 - 10260) + chr(107 - 59), 0b1000), ehT0Px3KOsy9(chr(1749 - 1701) + chr(1910 - 1799) + '\x35', 54595 - 54587), ehT0Px3KOsy9('\x30' + '\x6f' + chr(160 - 110) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11 + 0o56) + chr(0b110101) + '\x37', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b100111 + 0o13) + chr(0b1 + 0o60) + chr(1901 - 1851), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b110101 + 0o72) + chr(49) + '\x31' + chr(0b101101 + 0o12), 0b1000), ehT0Px3KOsy9(chr(1244 - 1196) + chr(0b11000 + 0o127) + chr(0b110010 + 0o0) + chr(51) + chr(0b110011), 8), ehT0Px3KOsy9('\060' + chr(3939 - 3828) + '\x37' + chr(0b110010), 43983 - 43975), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + chr(0b11111 + 0o21) + chr(0b101101 + 0o10), 35390 - 35382), ehT0Px3KOsy9(chr(0b110000) + chr(0b101011 + 0o104) + chr(49) + chr(0b100110 + 0o20) + '\067', 0o10), ehT0Px3KOsy9('\x30' + chr(1197 - 1086) + chr(50) + chr(0b100101 + 0o17), 34951 - 34943), ehT0Px3KOsy9(chr(0b1001 + 0o47) + chr(111) + chr(1545 - 1495) + '\x36' + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(8217 - 8106) + chr(53) + '\064', 0o10), ehT0Px3KOsy9(chr(1151 - 1103) + '\157' + chr(52) + chr(1776 - 1722), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110010) + chr(1593 - 1545) + '\065', 8), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101101 + 0o6) + chr(2259 - 2204) + chr(0b110011), ord("\x08")), ehT0Px3KOsy9(chr(409 - 361) + chr(0b1101111) + chr(0b110110) + chr(2158 - 2110), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\061' + '\065', 12998 - 12990), ehT0Px3KOsy9('\x30' + chr(3421 - 3310) + chr(52) + chr(0b110011), 8389 - 8381), ehT0Px3KOsy9(chr(48) + chr(0b1101100 + 0o3) + chr(0b10 + 0o57) + '\062' + chr(51), 0o10), ehT0Px3KOsy9(chr(973 - 925) + '\x6f' + '\062' + chr(0b1011 + 0o51) + chr(52), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b110110 + 0o71) + chr(294 - 244) + chr(0b110011) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(0b10000 + 0o40) + chr(0b1101111) + '\x32' + chr(1632 - 1582) + '\066', ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(50) + '\x34' + chr(0b110000 + 0o1), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(751 - 700) + chr(92 - 44) + chr(50), 0b1000), ehT0Px3KOsy9(chr(1956 - 1908) + '\157' + '\x32' + '\064' + '\x32', 57511 - 57503), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b110001) + '\066' + chr(0b110001), ord("\x08")), ehT0Px3KOsy9(chr(1242 - 1194) + '\x6f' + chr(53) + '\x33', 0o10), ehT0Px3KOsy9('\060' + '\157' + '\x33' + chr(1878 - 1823) + '\x30', ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(0b100000 + 0o25) + '\060', 11583 - 11575)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xeb'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b111101 + 0o47) + chr(101))('\165' + chr(7758 - 7642) + chr(102) + chr(0b1110 + 0o37) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def LFPob564zvGx(EaCjyhZptSer, xw4DsBfIJ22E=xafqLlk3kkUe(SXOLrMavuUCe(b'\xab\x0f\xccc\xb5#\xe0!'), chr(100) + '\145' + '\143' + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + '\055' + '\070')): EaCjyhZptSer = oqhJDdMJfuwx.path.expanduser(EaCjyhZptSer) assert xafqLlk3kkUe(oqhJDdMJfuwx.path, xafqLlk3kkUe(SXOLrMavuUCe(b'\xac\x13\xdco\xe9'), chr(6610 - 6510) + chr(6993 - 6892) + chr(99) + chr(5306 - 5195) + chr(8494 - 8394) + chr(101))(chr(0b1010101 + 0o40) + chr(0b1110100) + chr(102) + '\x2d' + chr(2280 - 2224)))(EaCjyhZptSer), xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'\xbe\x1d\x98o\xe8w\xf6:2[a%a\x0e\xe6m+\xbb^\xec\x05q\xd7XI\xf7\x82\x1e'), chr(0b111010 + 0o52) + '\x65' + chr(9524 - 9425) + chr(8722 - 8611) + chr(0b1100100) + chr(0b1010110 + 0o17))(chr(9816 - 9699) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'\x93T\xcai\xd36\xcbf\x16\x0beo'), chr(0b1100100) + '\145' + chr(0b1011110 + 0o5) + '\157' + chr(0b1110 + 0o126) + '\x65')('\165' + chr(3482 - 3366) + chr(102) + chr(0b101000 + 0o5) + '\x38'))(EaCjyhZptSer) D3zslhgxMHWQ = oqhJDdMJfuwx.path._oWXztVNnqHF(EaCjyhZptSer, xw4DsBfIJ22E) OokEtH90qT4F = oqhJDdMJfuwx.path.isfile(D3zslhgxMHWQ) try: xafqLlk3kkUe(SorA9b5x63bd, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa6\x01\xd4j'), chr(0b101100 + 0o70) + chr(0b0 + 0o145) + chr(0b110000 + 0o63) + '\x6f' + chr(6890 - 6790) + chr(101))('\165' + '\164' + chr(688 - 586) + '\x2d' + '\x38'))([vZ88JZemYbIE, D3zslhgxMHWQ]) except jLmadlzMdunT as YitWAjCPw_g9: xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'\x805\xdcV\xfa#\xd7\x06w\x0cx5'), '\144' + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(0b10101 + 0o120))('\165' + chr(116) + chr(0b1100110) + chr(272 - 227) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x80\x04\xd1r\xf29\xffu(\x14t`7\t\xebm#\xfe^\xa4'), chr(0b1100100) + chr(9665 - 9564) + chr(99) + '\157' + chr(0b1100100) + chr(0b101011 + 0o72))('\165' + chr(7858 - 7742) + chr(0b100100 + 0o102) + chr(0b101101) + chr(56))) raise YitWAjCPw_g9 if OokEtH90qT4F: zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b'\x8b\x0f\xccc\xbb"\xe81\'\x0fea7\x0e\xfe>'), '\x64' + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(101))('\165' + chr(11579 - 11463) + chr(9703 - 9601) + '\x2d' + chr(56)), D3zslhgxMHWQ) else: zLUzGokYBM2Z(xafqLlk3kkUe(SXOLrMavuUCe(b"\x8b\x0f\xccc\xbb4\xea0'\x0fea7\x0e\xfe>"), chr(3458 - 3358) + '\145' + chr(0b1100011) + chr(963 - 852) + chr(7279 - 7179) + '\145')('\165' + chr(116) + chr(3661 - 3559) + chr(0b111 + 0o46) + chr(1817 - 1761)), D3zslhgxMHWQ)
ray-project/ray
python/ray/tune/automlboard/frontend/query.py
query_job
def query_job(request): """Rest API to query the job info, with the given job_id. The url pattern should be like this: curl http://<server>:<port>/query_job?job_id=<job_id> The response may be: { "running_trials": 0, "start_time": "2018-07-19 20:49:40", "current_round": 1, "failed_trials": 0, "best_trial_id": "2067R2ZD", "name": "asynchyperband_test", "job_id": "asynchyperband_test", "user": "Grady", "type": "RAY TUNE", "total_trials": 4, "end_time": "2018-07-19 20:50:10", "progress": 100, "success_trials": 4 } """ job_id = request.GET.get("job_id") jobs = JobRecord.objects.filter(job_id=job_id) trials = TrialRecord.objects.filter(job_id=job_id) total_num = len(trials) running_num = sum(t.trial_status == Trial.RUNNING for t in trials) success_num = sum(t.trial_status == Trial.TERMINATED for t in trials) failed_num = sum(t.trial_status == Trial.ERROR for t in trials) if total_num == 0: progress = 0 else: progress = int(float(success_num) / total_num * 100) if len(jobs) == 0: resp = "Unkonwn job id %s.\n" % job_id else: job = jobs[0] result = { "job_id": job.job_id, "name": job.name, "user": job.user, "type": job.type, "start_time": job.start_time, "end_time": job.end_time, "success_trials": success_num, "failed_trials": failed_num, "running_trials": running_num, "total_trials": total_num, "best_trial_id": job.best_trial_id, "progress": progress } resp = json.dumps(result) return HttpResponse(resp, content_type="application/json;charset=utf-8")
python
def query_job(request): """Rest API to query the job info, with the given job_id. The url pattern should be like this: curl http://<server>:<port>/query_job?job_id=<job_id> The response may be: { "running_trials": 0, "start_time": "2018-07-19 20:49:40", "current_round": 1, "failed_trials": 0, "best_trial_id": "2067R2ZD", "name": "asynchyperband_test", "job_id": "asynchyperband_test", "user": "Grady", "type": "RAY TUNE", "total_trials": 4, "end_time": "2018-07-19 20:50:10", "progress": 100, "success_trials": 4 } """ job_id = request.GET.get("job_id") jobs = JobRecord.objects.filter(job_id=job_id) trials = TrialRecord.objects.filter(job_id=job_id) total_num = len(trials) running_num = sum(t.trial_status == Trial.RUNNING for t in trials) success_num = sum(t.trial_status == Trial.TERMINATED for t in trials) failed_num = sum(t.trial_status == Trial.ERROR for t in trials) if total_num == 0: progress = 0 else: progress = int(float(success_num) / total_num * 100) if len(jobs) == 0: resp = "Unkonwn job id %s.\n" % job_id else: job = jobs[0] result = { "job_id": job.job_id, "name": job.name, "user": job.user, "type": job.type, "start_time": job.start_time, "end_time": job.end_time, "success_trials": success_num, "failed_trials": failed_num, "running_trials": running_num, "total_trials": total_num, "best_trial_id": job.best_trial_id, "progress": progress } resp = json.dumps(result) return HttpResponse(resp, content_type="application/json;charset=utf-8")
[ "def", "query_job", "(", "request", ")", ":", "job_id", "=", "request", ".", "GET", ".", "get", "(", "\"job_id\"", ")", "jobs", "=", "JobRecord", ".", "objects", ".", "filter", "(", "job_id", "=", "job_id", ")", "trials", "=", "TrialRecord", ".", "objects", ".", "filter", "(", "job_id", "=", "job_id", ")", "total_num", "=", "len", "(", "trials", ")", "running_num", "=", "sum", "(", "t", ".", "trial_status", "==", "Trial", ".", "RUNNING", "for", "t", "in", "trials", ")", "success_num", "=", "sum", "(", "t", ".", "trial_status", "==", "Trial", ".", "TERMINATED", "for", "t", "in", "trials", ")", "failed_num", "=", "sum", "(", "t", ".", "trial_status", "==", "Trial", ".", "ERROR", "for", "t", "in", "trials", ")", "if", "total_num", "==", "0", ":", "progress", "=", "0", "else", ":", "progress", "=", "int", "(", "float", "(", "success_num", ")", "/", "total_num", "*", "100", ")", "if", "len", "(", "jobs", ")", "==", "0", ":", "resp", "=", "\"Unkonwn job id %s.\\n\"", "%", "job_id", "else", ":", "job", "=", "jobs", "[", "0", "]", "result", "=", "{", "\"job_id\"", ":", "job", ".", "job_id", ",", "\"name\"", ":", "job", ".", "name", ",", "\"user\"", ":", "job", ".", "user", ",", "\"type\"", ":", "job", ".", "type", ",", "\"start_time\"", ":", "job", ".", "start_time", ",", "\"end_time\"", ":", "job", ".", "end_time", ",", "\"success_trials\"", ":", "success_num", ",", "\"failed_trials\"", ":", "failed_num", ",", "\"running_trials\"", ":", "running_num", ",", "\"total_trials\"", ":", "total_num", ",", "\"best_trial_id\"", ":", "job", ".", "best_trial_id", ",", "\"progress\"", ":", "progress", "}", "resp", "=", "json", ".", "dumps", "(", "result", ")", "return", "HttpResponse", "(", "resp", ",", "content_type", "=", "\"application/json;charset=utf-8\"", ")" ]
Rest API to query the job info, with the given job_id. The url pattern should be like this: curl http://<server>:<port>/query_job?job_id=<job_id> The response may be: { "running_trials": 0, "start_time": "2018-07-19 20:49:40", "current_round": 1, "failed_trials": 0, "best_trial_id": "2067R2ZD", "name": "asynchyperband_test", "job_id": "asynchyperband_test", "user": "Grady", "type": "RAY TUNE", "total_trials": 4, "end_time": "2018-07-19 20:50:10", "progress": 100, "success_trials": 4 }
[ "Rest", "API", "to", "query", "the", "job", "info", "with", "the", "given", "job_id", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/automlboard/frontend/query.py#L14-L71
train
Rest API to query the job info with the given job_id.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmN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ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b110000) + chr(0b1000111 + 0o50) + chr(1200 - 1151) + chr(0b100000 + 0o22) + chr(50), 0o10), ehT0Px3KOsy9('\060' + chr(0b110110 + 0o71) + '\x32' + chr(0b110010) + '\065', 0o10), ehT0Px3KOsy9(chr(961 - 913) + '\157' + chr(2089 - 2039) + chr(0b110010) + '\x35', 8), ehT0Px3KOsy9(chr(1832 - 1784) + chr(0b101001 + 0o106) + chr(0b1001 + 0o50) + chr(0b1000 + 0o55) + chr(52), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(1204 - 1154) + chr(49) + chr(0b110111), ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(8731 - 8620) + chr(213 - 162) + '\x34' + chr(1776 - 1724), ord("\x08")), ehT0Px3KOsy9(chr(0b10110 + 0o32) + chr(0b0 + 0o157) + chr(0b110001) + '\066', 0o10), ehT0Px3KOsy9(chr(0b110 + 0o52) + '\157' + chr(446 - 396) + '\x35' + '\061', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b110110 + 0o71) + '\066' + '\x37', 33177 - 33169), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(1534 - 1481) + '\x36', 43307 - 43299), ehT0Px3KOsy9('\x30' + chr(6706 - 6595) + chr(0b110001) + chr(0b110010) + chr(162 - 108), 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\061' + chr(0b110010) + '\x32', 8), ehT0Px3KOsy9(chr(48) + chr(0b1010100 + 0o33) + chr(0b11001 + 0o31) + chr(0b110101) + '\063', 44462 - 44454), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x37' + '\x31', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(54) + '\x35', 0b1000), ehT0Px3KOsy9(chr(1275 - 1227) + '\157' + '\x33' + chr(48) + chr(2393 - 2338), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\x30' + '\062', 0o10), ehT0Px3KOsy9('\060' + chr(2128 - 2017) + chr(0b110010) + chr(53) + chr(0b0 + 0o61), 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b101111 + 0o4) + '\064' + '\063', 0o10), ehT0Px3KOsy9(chr(0b1001 + 0o47) + '\x6f' + chr(49) + chr(51), 14289 - 14281), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + chr(0b110001) + chr(0b101010 + 0o10), 29267 - 29259), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + '\062' + '\064', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b1101 + 0o46) + chr(0b110111) + chr(54), 0o10), ehT0Px3KOsy9('\060' + chr(11079 - 10968) + '\x32' + '\061' + '\x33', 24396 - 24388), ehT0Px3KOsy9('\060' + chr(111) + chr(0b110010) + chr(0b110101) + chr(0b110110), 0b1000), ehT0Px3KOsy9('\060' + '\157' + chr(0b1110 + 0o43) + chr(783 - 734), 0b1000), ehT0Px3KOsy9(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b110 + 0o53) + '\x32' + chr(0b1000 + 0o57), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(111) + chr(50) + chr(1074 - 1022) + chr(1382 - 1331), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(569 - 518) + '\061' + '\x32', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110001) + chr(48) + chr(55), 57515 - 57507), ehT0Px3KOsy9(chr(992 - 944) + chr(0b1101111) + '\x32' + chr(0b110000 + 0o7) + chr(0b11110 + 0o27), ord("\x08")), ehT0Px3KOsy9(chr(0b1 + 0o57) + chr(2978 - 2867) + '\x35' + chr(0b11 + 0o61), 4316 - 4308), ehT0Px3KOsy9(chr(48) + chr(111) + chr(2472 - 2421) + chr(0b110101) + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(0b11001 + 0o27) + chr(0b111100 + 0o63) + chr(50) + '\066' + '\061', 0b1000), ehT0Px3KOsy9('\060' + chr(0b10111 + 0o130) + chr(0b11111 + 0o24) + '\x36', 0o10), ehT0Px3KOsy9('\060' + chr(11811 - 11700) + chr(52) + chr(0b110010), 7890 - 7882), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(111) + chr(0b101111 + 0o3) + '\x32' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + chr(7379 - 7268) + '\x32' + chr(50), 0o10), ehT0Px3KOsy9('\x30' + chr(0b10000 + 0o137) + chr(49) + chr(1306 - 1254) + chr(0b110110), 34982 - 34974), ehT0Px3KOsy9(chr(0b11111 + 0o21) + chr(0b1001110 + 0o41) + chr(0b101011 + 0o7) + '\061' + chr(0b110111), 8)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(3139 - 3028) + chr(0b110101) + '\060', ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'|'), chr(8470 - 8370) + chr(0b111110 + 0o47) + chr(0b101011 + 0o70) + chr(0b1101111) + chr(100) + '\x65')(chr(836 - 719) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b100100 + 0o24)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def sWOYtCPDcUeu(r9Xp41HGNpwj): AOypoRSNXRmB = r9Xp41HGNpwj.GET.get(xafqLlk3kkUe(SXOLrMavuUCe(b'8\xfa\xf73\xe6\x80'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + chr(100) + chr(0b111000 + 0o55))(chr(0b1100 + 0o151) + chr(4246 - 4130) + chr(0b1010110 + 0o20) + '\x2d' + chr(1648 - 1592))) lX2fmJEQIiDe = W7kCA761frwi.objects.hi1V0ySZcNds(job_id=AOypoRSNXRmB) i1GKrIxxsZwp = nGEagzBC6rVy.objects.hi1V0ySZcNds(job_id=AOypoRSNXRmB) _X_2A3jKJLHF = c2A0yzQpDQB3(i1GKrIxxsZwp) a9mG2p7KaBtZ = xkxBmo49x2An((YeT3l7JgTbWR.trial_status == bKgNCjeVNupv.RUNNING for YeT3l7JgTbWR in i1GKrIxxsZwp)) xwgEvi6x98j0 = xkxBmo49x2An((YeT3l7JgTbWR.trial_status == bKgNCjeVNupv.TERMINATED for YeT3l7JgTbWR in i1GKrIxxsZwp)) YRLcWrC3A4Vy = xkxBmo49x2An((YeT3l7JgTbWR.trial_status == bKgNCjeVNupv.ERROR for YeT3l7JgTbWR in i1GKrIxxsZwp)) if _X_2A3jKJLHF == ehT0Px3KOsy9('\x30' + chr(1194 - 1083) + '\060', 0o10): Vvaid42SSlzd = ehT0Px3KOsy9('\060' + '\x6f' + chr(1826 - 1778), 8) else: Vvaid42SSlzd = ehT0Px3KOsy9(kkSX4ccExqw4(xwgEvi6x98j0) / _X_2A3jKJLHF * ehT0Px3KOsy9(chr(1803 - 1755) + chr(111) + chr(0b1001 + 0o50) + chr(0b101100 + 0o10) + '\x34', 0o10)) if c2A0yzQpDQB3(lX2fmJEQIiDe) == ehT0Px3KOsy9(chr(48) + '\x6f' + '\060', 8): o76vgcEvX48n = xafqLlk3kkUe(SXOLrMavuUCe(b'\x07\xfb\xfe\x03\xe1\x93`\x89]A4r\xc2]\x15\xe2\xb1\x87\xe9'), '\x64' + '\145' + '\x63' + chr(0b1001100 + 0o43) + chr(0b110010 + 0o62) + '\x65')(chr(117) + chr(116) + chr(2452 - 2350) + chr(0b100010 + 0o13) + '\070') % AOypoRSNXRmB else: rsvzRk4MNCTJ = lX2fmJEQIiDe[ehT0Px3KOsy9(chr(48) + '\157' + chr(199 - 151), 8)] ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b'8\xfa\xf73\xe6\x80'), '\144' + '\145' + chr(5441 - 5342) + chr(8624 - 8513) + chr(0b1001 + 0o133) + chr(0b1100101))('\165' + '\x74' + chr(2723 - 2621) + chr(45) + chr(0b11111 + 0o31)): rsvzRk4MNCTJ.job_id, xafqLlk3kkUe(SXOLrMavuUCe(b'<\xf4\xf8\t'), '\x64' + chr(0b101010 + 0o73) + '\x63' + '\157' + '\x64' + '\x65')(chr(0b110001 + 0o104) + '\x74' + '\146' + chr(0b100101 + 0o10) + chr(450 - 394)): rsvzRk4MNCTJ.AIvJRzLdDfgF, xafqLlk3kkUe(SXOLrMavuUCe(b"'\xe6\xf0\x1e"), chr(0b100101 + 0o77) + chr(0b10 + 0o143) + '\143' + chr(0b1101111) + chr(5664 - 5564) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b101110 + 0o70) + chr(451 - 406) + chr(0b111000)): rsvzRk4MNCTJ.user, xafqLlk3kkUe(SXOLrMavuUCe(b'&\xec\xe5\t'), '\144' + chr(0b1100101) + chr(9440 - 9341) + chr(111) + chr(0b1010010 + 0o22) + '\x65')('\x75' + chr(11831 - 11715) + chr(0b1000001 + 0o45) + chr(0b101101) + chr(0b111000)): rsvzRk4MNCTJ.wmQmyeWBmUpv, xafqLlk3kkUe(SXOLrMavuUCe(b'!\xe1\xf4\x1e\xfb\xbbz\xc0ZK'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1001111 + 0o25) + '\145')('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(56)): rsvzRk4MNCTJ.start_time, xafqLlk3kkUe(SXOLrMavuUCe(b'7\xfb\xf13\xfb\x8dc\xcc'), chr(100) + '\x65' + '\x63' + '\157' + '\144' + chr(101))(chr(117) + chr(9904 - 9788) + '\x66' + chr(45) + chr(56)): rsvzRk4MNCTJ.uUD8Lnay0gGi, xafqLlk3kkUe(SXOLrMavuUCe(b'!\xe0\xf6\x0f\xea\x97}\xf6C\\?3\xc7J'), '\144' + chr(101) + chr(0b1100011) + chr(111) + chr(3422 - 3322) + chr(0b1001111 + 0o26))('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(1410 - 1354)): xwgEvi6x98j0, xafqLlk3kkUe(SXOLrMavuUCe(b'4\xf4\xfc\x00\xea\x80Q\xddEG7>\xd8'), chr(100) + '\145' + '\x63' + '\157' + chr(0b10110 + 0o116) + chr(0b101101 + 0o70))(chr(0b11 + 0o162) + '\x74' + chr(1742 - 1640) + chr(0b101101) + '\x38'): YRLcWrC3A4Vy, xafqLlk3kkUe(SXOLrMavuUCe(b' \xe0\xfb\x02\xe6\x8ai\xf6C\\?3\xc7J'), '\x64' + chr(2967 - 2866) + chr(0b1100011) + chr(3850 - 3739) + chr(0b1100100) + chr(3588 - 3487))('\165' + chr(0b1110100) + chr(6915 - 6813) + chr(0b101100 + 0o1) + chr(0b101010 + 0o16)): a9mG2p7KaBtZ, xafqLlk3kkUe(SXOLrMavuUCe(b'&\xfa\xe1\r\xe3\xbbz\xdb^O:!'), chr(0b1100100) + chr(0b100110 + 0o77) + chr(4255 - 4156) + '\x6f' + chr(0b110100 + 0o60) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(8093 - 7991) + '\055' + chr(2471 - 2415)): _X_2A3jKJLHF, xafqLlk3kkUe(SXOLrMavuUCe(b'0\xf0\xe6\x18\xd0\x90|\xc0VB\t;\xcf'), chr(0b100101 + 0o77) + chr(101) + '\143' + chr(973 - 862) + chr(0b1010100 + 0o20) + chr(0b1100101))(chr(117) + '\x74' + '\x66' + '\055' + chr(0b110111 + 0o1)): rsvzRk4MNCTJ.best_trial_id, xafqLlk3kkUe(SXOLrMavuUCe(b'"\xe7\xfa\x0b\xfd\x81}\xda'), '\x64' + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(3278 - 3177))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000)): Vvaid42SSlzd} o76vgcEvX48n = fXk443epxtd5.dumps(ShZmEKfTkAOZ) return dEnemCloU5NF(o76vgcEvX48n, content_type=xafqLlk3kkUe(SXOLrMavuUCe(b'3\xe5\xe5\x00\xe6\x87o\xdd^A8}\xc1JZ\xa9\xf9\xca\x8bj8\xe7\x9b\xff\x93|#\xc5\xe7\x7f'), chr(2548 - 2448) + chr(101) + chr(0b1100011) + '\157' + '\144' + chr(10170 - 10069))('\x75' + chr(0b1110 + 0o146) + chr(102) + chr(0b101101) + '\x38'))
ray-project/ray
python/ray/tune/automlboard/frontend/query.py
query_trial
def query_trial(request): """Rest API to query the trial info, with the given trial_id. The url pattern should be like this: curl http://<server>:<port>/query_trial?trial_id=<trial_id> The response may be: { "app_url": "None", "trial_status": "TERMINATED", "params": {'a': 1, 'b': 2}, "job_id": "asynchyperband_test", "end_time": "2018-07-19 20:49:44", "start_time": "2018-07-19 20:49:40", "trial_id": "2067R2ZD", } """ trial_id = request.GET.get("trial_id") trials = TrialRecord.objects \ .filter(trial_id=trial_id) \ .order_by("-start_time") if len(trials) == 0: resp = "Unkonwn trial id %s.\n" % trials else: trial = trials[0] result = { "trial_id": trial.trial_id, "job_id": trial.job_id, "trial_status": trial.trial_status, "start_time": trial.start_time, "end_time": trial.end_time, "params": trial.params } resp = json.dumps(result) return HttpResponse(resp, content_type="application/json;charset=utf-8")
python
def query_trial(request): """Rest API to query the trial info, with the given trial_id. The url pattern should be like this: curl http://<server>:<port>/query_trial?trial_id=<trial_id> The response may be: { "app_url": "None", "trial_status": "TERMINATED", "params": {'a': 1, 'b': 2}, "job_id": "asynchyperband_test", "end_time": "2018-07-19 20:49:44", "start_time": "2018-07-19 20:49:40", "trial_id": "2067R2ZD", } """ trial_id = request.GET.get("trial_id") trials = TrialRecord.objects \ .filter(trial_id=trial_id) \ .order_by("-start_time") if len(trials) == 0: resp = "Unkonwn trial id %s.\n" % trials else: trial = trials[0] result = { "trial_id": trial.trial_id, "job_id": trial.job_id, "trial_status": trial.trial_status, "start_time": trial.start_time, "end_time": trial.end_time, "params": trial.params } resp = json.dumps(result) return HttpResponse(resp, content_type="application/json;charset=utf-8")
[ "def", "query_trial", "(", "request", ")", ":", "trial_id", "=", "request", ".", "GET", ".", "get", "(", "\"trial_id\"", ")", "trials", "=", "TrialRecord", ".", "objects", ".", "filter", "(", "trial_id", "=", "trial_id", ")", ".", "order_by", "(", "\"-start_time\"", ")", "if", "len", "(", "trials", ")", "==", "0", ":", "resp", "=", "\"Unkonwn trial id %s.\\n\"", "%", "trials", "else", ":", "trial", "=", "trials", "[", "0", "]", "result", "=", "{", "\"trial_id\"", ":", "trial", ".", "trial_id", ",", "\"job_id\"", ":", "trial", ".", "job_id", ",", "\"trial_status\"", ":", "trial", ".", "trial_status", ",", "\"start_time\"", ":", "trial", ".", "start_time", ",", "\"end_time\"", ":", "trial", ".", "end_time", ",", "\"params\"", ":", "trial", ".", "params", "}", "resp", "=", "json", ".", "dumps", "(", "result", ")", "return", "HttpResponse", "(", "resp", ",", "content_type", "=", "\"application/json;charset=utf-8\"", ")" ]
Rest API to query the trial info, with the given trial_id. The url pattern should be like this: curl http://<server>:<port>/query_trial?trial_id=<trial_id> The response may be: { "app_url": "None", "trial_status": "TERMINATED", "params": {'a': 1, 'b': 2}, "job_id": "asynchyperband_test", "end_time": "2018-07-19 20:49:44", "start_time": "2018-07-19 20:49:40", "trial_id": "2067R2ZD", }
[ "Rest", "API", "to", "query", "the", "trial", "info", "with", "the", "given", "trial_id", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/automlboard/frontend/query.py#L74-L110
train
Rest API to query the trial info with the given trial_id.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,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D,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(848 - 800) + chr(111) + chr(0b1 + 0o60) + chr(1445 - 1396) + chr(54), 46542 - 46534), ehT0Px3KOsy9('\060' + chr(111) + chr(0b11001 + 0o31) + '\x36' + '\063', 28442 - 28434), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + chr(49) + chr(51), 0b1000), ehT0Px3KOsy9('\x30' + chr(0b100100 + 0o113) + '\x31' + '\x32' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(2125 - 2077) + chr(111) + chr(0b110001) + '\x33' + chr(0b0 + 0o61), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1101111) + '\x33' + chr(1579 - 1524) + chr(0b110000), 19051 - 19043), ehT0Px3KOsy9(chr(2151 - 2103) + '\x6f' + chr(1023 - 974) + '\060' + '\x37', 21090 - 21082), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + chr(55) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(819 - 769), 32016 - 32008), ehT0Px3KOsy9(chr(48) + chr(964 - 853) + chr(366 - 313) + chr(1027 - 972), 31922 - 31914), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + '\065' + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(739 - 691) + chr(111) + '\x35' + chr(0b1110 + 0o44), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + '\062' + chr(673 - 625), 0o10), ehT0Px3KOsy9(chr(1319 - 1271) + chr(0b1010000 + 0o37) + chr(0b110010) + chr(0b110101) + chr(0b110110), 0b1000), ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\x6f' + chr(51) + chr(0b110000) + '\062', 8198 - 8190), ehT0Px3KOsy9(chr(1679 - 1631) + '\157' + chr(331 - 281) + '\x33' + chr(0b101 + 0o56), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001) + '\063' + chr(1306 - 1255), 0o10), ehT0Px3KOsy9(chr(259 - 211) + '\x6f' + '\x33' + '\x36' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(251 - 203) + chr(0b1101111) + chr(130 - 80) + chr(0b11100 + 0o26) + chr(52), 63250 - 63242), ehT0Px3KOsy9(chr(0b10010 + 0o36) + chr(10788 - 10677) + '\062' + '\x32' + chr(0b110011), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(49) + chr(52) + '\x31', ord("\x08")), ehT0Px3KOsy9('\x30' + chr(6556 - 6445) + chr(2340 - 2290) + chr(0b110100 + 0o2) + '\x30', 0o10), ehT0Px3KOsy9(chr(48) + chr(0b101111 + 0o100) + chr(49) + '\x34' + '\066', 54395 - 54387), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + chr(0b11100 + 0o26) + '\066' + '\x30', 8), ehT0Px3KOsy9(chr(0b1011 + 0o45) + '\x6f' + chr(0b110011) + chr(519 - 465) + '\x34', 17681 - 17673), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\062' + chr(0b101010 + 0o7) + chr(1595 - 1542), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(1500 - 1445) + '\067', 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(0b110001) + chr(0b110111) + chr(55), ord("\x08")), ehT0Px3KOsy9(chr(2117 - 2069) + chr(0b1101111) + chr(53) + chr(52), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1101111 + 0o0) + '\x35' + chr(708 - 654), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x31' + chr(0b1100 + 0o51) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9(chr(557 - 509) + chr(111) + chr(0b110001) + '\062' + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b100000 + 0o20) + '\157' + chr(0b101100 + 0o5) + chr(435 - 385) + chr(53), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(697 - 648) + chr(48) + chr(48), 0b1000), ehT0Px3KOsy9(chr(1994 - 1946) + chr(111) + chr(0b110001) + chr(0b110001) + chr(0b110100), 0b1000), ehT0Px3KOsy9(chr(1479 - 1431) + chr(0b1101111) + chr(0b110011) + chr(0b11000 + 0o34) + '\064', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(718 - 668) + chr(0b100001 + 0o24) + '\067', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b10000 + 0o46) + chr(0b101011 + 0o7), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(50) + chr(0b101110 + 0o2) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110011) + chr(1646 - 1594) + chr(48), 0b1000)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(0b1000100 + 0o53) + '\x35' + '\x30', 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'`'), chr(100) + chr(101) + '\143' + chr(7817 - 7706) + '\x64' + '\x65')(chr(0b10001 + 0o144) + '\164' + chr(10128 - 10026) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def iEzXszPhquwb(r9Xp41HGNpwj): rv8CNRYETQhs = r9Xp41HGNpwj.GET.get(xafqLlk3kkUe(SXOLrMavuUCe(b':\xc1\xa225\xa7.\x9e'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b10110 + 0o137) + chr(8415 - 8299) + chr(0b1100110) + chr(759 - 714) + chr(0b111000))) i1GKrIxxsZwp = nGEagzBC6rVy.objects.filter(trial_id=rv8CNRYETQhs).order_by(xafqLlk3kkUe(SXOLrMavuUCe(b'c\xc0\xbf2+\x8c\x18\x8ekB\x08'), '\x64' + chr(101) + chr(0b110011 + 0o60) + '\x6f' + '\144' + chr(101))(chr(117) + '\x74' + '\x66' + '\x2d' + chr(0b111000))) if c2A0yzQpDQB3(i1GKrIxxsZwp) == ehT0Px3KOsy9('\x30' + chr(0b11001 + 0o126) + chr(0b110000), 0b1000): o76vgcEvX48n = xafqLlk3kkUe(SXOLrMavuUCe(b'\x1b\xdd\xa0<7\x8f)\xdav]\x04K|\x8e\xab\xff{\xd6\xe7\xbdk'), chr(752 - 652) + '\145' + chr(0b111010 + 0o51) + '\157' + chr(9849 - 9749) + '\145')(chr(117) + '\x74' + chr(6584 - 6482) + '\055' + chr(0b1000 + 0o60)) % i1GKrIxxsZwp else: Alvsa0ue91Fo = i1GKrIxxsZwp[ehT0Px3KOsy9(chr(1870 - 1822) + chr(12209 - 12098) + '\060', 8)] ShZmEKfTkAOZ = {xafqLlk3kkUe(SXOLrMavuUCe(b':\xc1\xa225\xa7.\x9e'), chr(100) + chr(0b101001 + 0o74) + chr(0b11001 + 0o112) + '\157' + chr(100) + chr(1881 - 1780))('\x75' + '\164' + chr(102) + '\x2d' + chr(1767 - 1711)): Alvsa0ue91Fo.trial_id, xafqLlk3kkUe(SXOLrMavuUCe(b'$\xdc\xa9\x0c0\x9c'), chr(4359 - 4259) + '\145' + '\143' + '\157' + chr(0b1100100) + chr(0b1100000 + 0o5))(chr(0b1110101) + chr(0b1011 + 0o151) + chr(7836 - 7734) + chr(0b101101) + '\070'): Alvsa0ue91Fo.job_id, xafqLlk3kkUe(SXOLrMavuUCe(b':\xc1\xa225\xa74\x8ec[\x18Y'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b11001 + 0o113) + '\145')(chr(2019 - 1902) + '\x74' + '\x66' + '\055' + chr(0b111000)): Alvsa0ue91Fo.trial_status, xafqLlk3kkUe(SXOLrMavuUCe(b'=\xc7\xaa!-\xa73\x93oJ'), chr(8729 - 8629) + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + '\x65')(chr(3277 - 3160) + '\164' + chr(10391 - 10289) + '\x2d' + chr(493 - 437)): Alvsa0ue91Fo.start_time, xafqLlk3kkUe(SXOLrMavuUCe(b'+\xdd\xaf\x0c-\x91*\x9f'), '\x64' + chr(101) + chr(99) + chr(0b101100 + 0o103) + '\144' + '\x65')('\165' + chr(2891 - 2775) + '\146' + chr(45) + '\x38'): Alvsa0ue91Fo.uUD8Lnay0gGi, xafqLlk3kkUe(SXOLrMavuUCe(b'>\xd2\xb924\x8b'), '\144' + chr(0b1100101) + '\143' + chr(3379 - 3268) + chr(100) + chr(0b1010001 + 0o24))(chr(0b1110101) + '\x74' + '\x66' + chr(1566 - 1521) + chr(0b111000)): Alvsa0ue91Fo.nEbJZ4wfte2w} o76vgcEvX48n = fXk443epxtd5.dumps(ShZmEKfTkAOZ) return dEnemCloU5NF(o76vgcEvX48n, content_type=xafqLlk3kkUe(SXOLrMavuUCe(b'/\xc3\xbb?0\x9b&\x8ek@\x03\x05z\xdd\xad\xf5`\x90\xfc\xf2\x13\xc3\x03\xc4\xc9\xf8\x8b\x19\x01\x16'), chr(100) + '\145' + chr(99) + '\x6f' + '\x64' + chr(5762 - 5661))('\x75' + '\164' + chr(0b1100110) + '\055' + chr(56)))
ray-project/ray
python/ray/tune/schedulers/median_stopping_rule.py
MedianStoppingRule.on_trial_result
def on_trial_result(self, trial_runner, trial, result): """Callback for early stopping. This stopping rule stops a running trial if the trial's best objective value by step `t` is strictly worse than the median of the running averages of all completed trials' objectives reported up to step `t`. """ if trial in self._stopped_trials: assert not self._hard_stop return TrialScheduler.CONTINUE # fall back to FIFO time = result[self._time_attr] self._results[trial].append(result) median_result = self._get_median_result(time) best_result = self._best_result(trial) if self._verbose: logger.info("Trial {} best res={} vs median res={} at t={}".format( trial, best_result, median_result, time)) if best_result < median_result and time > self._grace_period: if self._verbose: logger.info("MedianStoppingRule: " "early stopping {}".format(trial)) self._stopped_trials.add(trial) if self._hard_stop: return TrialScheduler.STOP else: return TrialScheduler.PAUSE else: return TrialScheduler.CONTINUE
python
def on_trial_result(self, trial_runner, trial, result): """Callback for early stopping. This stopping rule stops a running trial if the trial's best objective value by step `t` is strictly worse than the median of the running averages of all completed trials' objectives reported up to step `t`. """ if trial in self._stopped_trials: assert not self._hard_stop return TrialScheduler.CONTINUE # fall back to FIFO time = result[self._time_attr] self._results[trial].append(result) median_result = self._get_median_result(time) best_result = self._best_result(trial) if self._verbose: logger.info("Trial {} best res={} vs median res={} at t={}".format( trial, best_result, median_result, time)) if best_result < median_result and time > self._grace_period: if self._verbose: logger.info("MedianStoppingRule: " "early stopping {}".format(trial)) self._stopped_trials.add(trial) if self._hard_stop: return TrialScheduler.STOP else: return TrialScheduler.PAUSE else: return TrialScheduler.CONTINUE
[ "def", "on_trial_result", "(", "self", ",", "trial_runner", ",", "trial", ",", "result", ")", ":", "if", "trial", "in", "self", ".", "_stopped_trials", ":", "assert", "not", "self", ".", "_hard_stop", "return", "TrialScheduler", ".", "CONTINUE", "# fall back to FIFO", "time", "=", "result", "[", "self", ".", "_time_attr", "]", "self", ".", "_results", "[", "trial", "]", ".", "append", "(", "result", ")", "median_result", "=", "self", ".", "_get_median_result", "(", "time", ")", "best_result", "=", "self", ".", "_best_result", "(", "trial", ")", "if", "self", ".", "_verbose", ":", "logger", ".", "info", "(", "\"Trial {} best res={} vs median res={} at t={}\"", ".", "format", "(", "trial", ",", "best_result", ",", "median_result", ",", "time", ")", ")", "if", "best_result", "<", "median_result", "and", "time", ">", "self", ".", "_grace_period", ":", "if", "self", ".", "_verbose", ":", "logger", ".", "info", "(", "\"MedianStoppingRule: \"", "\"early stopping {}\"", ".", "format", "(", "trial", ")", ")", "self", ".", "_stopped_trials", ".", "add", "(", "trial", ")", "if", "self", ".", "_hard_stop", ":", "return", "TrialScheduler", ".", "STOP", "else", ":", "return", "TrialScheduler", ".", "PAUSE", "else", ":", "return", "TrialScheduler", ".", "CONTINUE" ]
Callback for early stopping. This stopping rule stops a running trial if the trial's best objective value by step `t` is strictly worse than the median of the running averages of all completed trials' objectives reported up to step `t`.
[ "Callback", "for", "early", "stopping", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/schedulers/median_stopping_rule.py#L56-L85
train
Callback for early stopping.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4U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lYI2Bx4,Y3jVKaC8LEDU,ehT0Px3KOsy9,PlSM16l2KDPD,J6u1YyThfhgG,ZdP978XkGspL,c2A0yzQpDQB3,I7ZO3Ma9cXBb,YyaZ4tpXu4lf,eHmS9durw_Vs,abA97kOQKaLo,tsdjvlgh9gDP,VTYZGD68sBIs,Dx22bkKPdt5d,nSwwHEeM4cxI,sR_24x3xd4bh,xmV2riMOClNT,_fwkIVCGgtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + '\x6f' + '\x32' + chr(0b101111 + 0o1), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1830 - 1779), 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(0b110011) + chr(0b110000 + 0o4) + '\060', 57531 - 57523), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(50) + '\060' + '\x35', ord("\x08")), ehT0Px3KOsy9(chr(1218 - 1170) + '\157' + chr(53) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(51) + chr(0b11 + 0o57) + chr(0b10110 + 0o32), 9417 - 9409), ehT0Px3KOsy9(chr(0b101100 + 0o4) + chr(111) + '\063' + chr(48) + chr(0b110001), 44850 - 44842), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + chr(2453 - 2400) + chr(53), 14513 - 14505), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110100) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b101001 + 0o12) + '\x32' + chr(0b11 + 0o60), 49533 - 49525), ehT0Px3KOsy9(chr(48) + chr(111) + chr(49) + '\x37' + chr(50), 30821 - 30813), ehT0Px3KOsy9(chr(48) + chr(0b1100001 + 0o16) + chr(0b110010) + chr(51) + '\065', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(584 - 473) + '\061' + chr(0b110000) + chr(53), 0o10), ehT0Px3KOsy9('\x30' + chr(8688 - 8577) + chr(565 - 515) + '\x35' + '\063', 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(12294 - 12183) + chr(0b1111 + 0o47) + chr(54), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110010) + chr(385 - 335) + chr(624 - 575), 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + '\061' + '\x32', 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(50), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110000 + 0o3), 8), ehT0Px3KOsy9(chr(1086 - 1038) + chr(111) + '\x34' + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + '\x33' + '\x36' + chr(49), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(428 - 379) + '\061' + chr(976 - 921), 0o10), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(49) + chr(51) + chr(0b1101 + 0o46), ord("\x08")), ehT0Px3KOsy9(chr(1339 - 1291) + chr(0b111000 + 0o67) + '\x32' + '\x33' + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b0 + 0o61) + '\x35' + '\x36', 54195 - 54187), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001), 49191 - 49183), ehT0Px3KOsy9(chr(0b1111 + 0o41) + chr(111) + '\065' + chr(0b110101), 8), ehT0Px3KOsy9(chr(1659 - 1611) + '\157' + '\061' + chr(0b11 + 0o63) + chr(0b1010 + 0o47), 0b1000), ehT0Px3KOsy9('\x30' + chr(9886 - 9775) + '\063' + '\060' + chr(0b110011), 0b1000), ehT0Px3KOsy9(chr(822 - 774) + chr(0b11011 + 0o124) + '\x33' + chr(0b1101 + 0o46) + '\x36', 38894 - 38886), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\x33' + chr(0b1101 + 0o51) + chr(0b110001), 8), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b100100 + 0o16) + chr(104 - 53) + chr(0b1011 + 0o45), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b11101 + 0o122) + chr(334 - 284) + chr(0b11001 + 0o33) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + chr(1649 - 1595), 0o10), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(0b1101111) + chr(0b110010) + '\x35' + '\061', 0o10), ehT0Px3KOsy9(chr(1555 - 1507) + chr(0b1010010 + 0o35) + chr(0b1110 + 0o43) + chr(0b110100) + '\x30', 20817 - 20809), ehT0Px3KOsy9('\x30' + chr(4805 - 4694) + chr(51) + chr(0b100111 + 0o16) + chr(0b110001), 26587 - 26579), ehT0Px3KOsy9('\x30' + chr(0b110100 + 0o73) + '\062' + '\066' + chr(0b110111), 33133 - 33125), ehT0Px3KOsy9('\060' + chr(10885 - 10774) + chr(0b110001 + 0o1) + chr(286 - 231) + '\061', 1065 - 1057), ehT0Px3KOsy9(chr(48) + '\x6f' + chr(972 - 922) + '\062' + chr(51), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\x30' + chr(4267 - 4156) + chr(1963 - 1910) + chr(0b110000), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'>'), chr(0b1100100) + chr(0b1011000 + 0o15) + '\143' + '\157' + chr(7408 - 7308) + chr(9222 - 9121))(chr(0b1100111 + 0o16) + chr(0b0 + 0o164) + chr(0b100111 + 0o77) + chr(1777 - 1732) + '\x38') + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def kSaU1hER9gA6(oVre8I6UXc3b, gcqmiCQ3I2cE, Alvsa0ue91Fo, ShZmEKfTkAOZ): if Alvsa0ue91Fo in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'Op\x94\xea]\xa0\xa4\x89}\xa7\x08\xf4$\xc7E'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + '\x64' + '\x65')('\165' + '\164' + chr(0b1000111 + 0o37) + '\055' + '\x38')): assert not xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'Ok\x81\xf7I\x8f\xb2\x99M\xa3'), '\x64' + '\x65' + '\x63' + chr(0b111001 + 0o66) + '\144' + chr(0b1100101))(chr(0b111111 + 0o66) + chr(0b1110100) + chr(0b10011 + 0o123) + '\055' + chr(0b111000))) return xafqLlk3kkUe(G3Y3UzuXN951, xafqLlk3kkUe(SXOLrMavuUCe(b'SL\xae\xd1d\x9e\x94\xa8'), chr(1199 - 1099) + '\x65' + chr(0b1010011 + 0o20) + chr(7713 - 7602) + chr(100) + chr(1130 - 1029))(chr(117) + chr(116) + chr(102) + chr(1422 - 1377) + chr(2439 - 2383))) ltvhPP4VhXre = ShZmEKfTkAOZ[oVre8I6UXc3b._time_attr] xafqLlk3kkUe(oVre8I6UXc3b._results[Alvsa0ue91Fo], xafqLlk3kkUe(SXOLrMavuUCe(b'qs\x90\xe0C\xb4'), '\x64' + '\145' + '\x63' + chr(0b10110 + 0o131) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1000000 + 0o46) + chr(45) + chr(0b101001 + 0o17)))(ShZmEKfTkAOZ) HI4XGmu_iqlH = oVre8I6UXc3b._get_median_result(ltvhPP4VhXre) mX8T5IOiK6PB = oVre8I6UXc3b._best_result(Alvsa0ue91Fo) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'|o\xaa\xb1E\x95\xa0\x8bf\x9e;\xf2'), '\144' + '\145' + chr(99) + '\x6f' + chr(9510 - 9410) + '\x65')('\165' + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000))): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'C4\xa8\xfdX\xb3\xa6\xdaH\xbf \xf6'), chr(4333 - 4233) + chr(0b100011 + 0o102) + chr(5509 - 5410) + chr(0b1101111) + chr(100) + '\145')(chr(10625 - 10508) + chr(116) + chr(0b101111 + 0o67) + chr(0b101101) + '\070'))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b'Dq\x89\xe4A\xf0\xba\x90\x02\xb1\x1f\xee1\x8bD\xf4\xb9?x]\xd19(\xba\x03dI\x18\xa2\xb0\xd1\xea\xc3u\x94\x1b\x94\x97\xd8\xe70w\xdd\xfeP'), '\144' + chr(5244 - 5143) + chr(0b1001001 + 0o32) + '\157' + chr(0b1100100) + chr(5915 - 5814))('\x75' + chr(10769 - 10653) + chr(102) + chr(0b101101) + chr(56)), xafqLlk3kkUe(SXOLrMavuUCe(b'F7\x92\xeae\xb1\x92\xder\xa3\x1f\xf7'), chr(100) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(101))(chr(5690 - 5573) + '\164' + chr(0b111100 + 0o52) + chr(206 - 161) + chr(0b111000)))(Alvsa0ue91Fo, mX8T5IOiK6PB, HI4XGmu_iqlH, ltvhPP4VhXre)) if mX8T5IOiK6PB < HI4XGmu_iqlH and ltvhPP4VhXre > xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'Od\x92\xe4N\xb5\x9e\x9dG\xa1\x13\xf2!'), chr(100) + '\x65' + chr(0b111100 + 0o47) + chr(10682 - 10571) + '\x64' + chr(0b1100101))(chr(117) + chr(3265 - 3149) + '\146' + chr(0b1111 + 0o36) + chr(56))): if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'|o\xaa\xb1E\x95\xa0\x8bf\x9e;\xf2'), '\x64' + chr(0b1100101) + chr(0b101100 + 0o67) + chr(5924 - 5813) + chr(7535 - 7435) + chr(4247 - 4146))(chr(5095 - 4978) + '\164' + '\146' + '\x2d' + '\x38')): xafqLlk3kkUe(hdK8qOUhR6Or, xafqLlk3kkUe(SXOLrMavuUCe(b'C4\xa8\xfdX\xb3\xa6\xdaH\xbf \xf6'), chr(4593 - 4493) + chr(101) + '\x63' + chr(2454 - 2343) + chr(9376 - 9276) + chr(0b1100101))('\x75' + chr(116) + chr(4623 - 4521) + chr(45) + chr(2087 - 2031)))(xafqLlk3kkUe(xafqLlk3kkUe(SXOLrMavuUCe(b']f\x84\xecL\xbe\x92\x99M\xa3\n\xf4+\xccd\xe4\xa6g9\x00\x94.)\xf6\x17!^\x05\xac\xae\x81\xf1\xc8a\x89\x1b\x94'), chr(0b1100100) + chr(4078 - 3977) + chr(0b1100011) + chr(111) + chr(100) + '\x65')(chr(0b1011000 + 0o35) + chr(0b1100110 + 0o16) + chr(0b101011 + 0o73) + chr(45) + chr(0b111000)), xafqLlk3kkUe(SXOLrMavuUCe(b'F7\x92\xeae\xb1\x92\xder\xa3\x1f\xf7'), chr(0b1100100) + '\145' + '\x63' + chr(0b1010011 + 0o34) + '\x64' + chr(0b1001111 + 0o26))('\165' + chr(0b1110100) + chr(0b1100110) + chr(371 - 326) + chr(0b1001 + 0o57)))(Alvsa0ue91Fo)) xafqLlk3kkUe(oVre8I6UXc3b._stopped_trials, xafqLlk3kkUe(SXOLrMavuUCe(b'eI\xd0\xf4\x14\xb3\x86\xd8x\x9c(\xae'), '\x64' + chr(0b1011110 + 0o7) + '\x63' + '\157' + '\x64' + chr(0b1011100 + 0o11))(chr(5802 - 5685) + chr(116) + chr(0b1100110) + '\x2d' + '\070'))(Alvsa0ue91Fo) if xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'Ok\x81\xf7I\x8f\xb2\x99M\xa3'), '\x64' + chr(0b111 + 0o136) + '\x63' + chr(0b1100 + 0o143) + chr(100) + '\145')(chr(0b1110101) + '\x74' + '\x66' + chr(839 - 794) + chr(705 - 649))): return xafqLlk3kkUe(G3Y3UzuXN951, xafqLlk3kkUe(SXOLrMavuUCe(b'CW\xaf\xd5'), chr(0b1001100 + 0o30) + chr(0b1000010 + 0o43) + chr(0b1100011) + chr(0b1101111) + chr(0b1000011 + 0o41) + chr(0b101101 + 0o70))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(0b100101 + 0o23))) else: return xafqLlk3kkUe(G3Y3UzuXN951, xafqLlk3kkUe(SXOLrMavuUCe(b'@B\xb5\xd6h'), chr(4196 - 4096) + '\x65' + '\143' + chr(0b1101111) + chr(100) + chr(101))(chr(117) + chr(0b1001 + 0o153) + chr(0b110001 + 0o65) + chr(1635 - 1590) + chr(1622 - 1566))) else: return xafqLlk3kkUe(G3Y3UzuXN951, xafqLlk3kkUe(SXOLrMavuUCe(b'SL\xae\xd1d\x9e\x94\xa8'), chr(0b11010 + 0o112) + '\x65' + chr(99) + chr(0b1101111) + '\x64' + chr(0b100111 + 0o76))(chr(0b1110101) + chr(0b101000 + 0o114) + chr(0b111010 + 0o54) + chr(0b100110 + 0o7) + chr(1102 - 1046)))
ray-project/ray
python/ray/tune/schedulers/median_stopping_rule.py
MedianStoppingRule.on_trial_remove
def on_trial_remove(self, trial_runner, trial): """Marks trial as completed if it is paused and has previously ran.""" if trial.status is Trial.PAUSED and trial in self._results: self._completed_trials.add(trial)
python
def on_trial_remove(self, trial_runner, trial): """Marks trial as completed if it is paused and has previously ran.""" if trial.status is Trial.PAUSED and trial in self._results: self._completed_trials.add(trial)
[ "def", "on_trial_remove", "(", "self", ",", "trial_runner", ",", "trial", ")", ":", "if", "trial", ".", "status", "is", "Trial", ".", "PAUSED", "and", "trial", "in", "self", ".", "_results", ":", "self", ".", "_completed_trials", ".", "add", "(", "trial", ")" ]
Marks trial as completed if it is paused and has previously ran.
[ "Marks", "trial", "as", "completed", "if", "it", "is", "paused", "and", "has", "previously", "ran", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/schedulers/median_stopping_rule.py#L91-L94
train
Mark trial as completed if paused and has previously ran.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,Z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rCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(0b10000 + 0o40) + '\157' + '\x33' + chr(0b100001 + 0o26) + chr(939 - 891), 0b1000), ehT0Px3KOsy9('\060' + chr(111) + '\x33' + chr(0b110001) + '\x31', 0b1000), ehT0Px3KOsy9('\060' + '\x6f' + '\063' + chr(0b110111) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b100011 + 0o15) + chr(0b1101111) + '\x31' + chr(0b110001) + chr(0b110111), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b110001 + 0o1) + chr(49) + '\065', 0o10), ehT0Px3KOsy9('\060' + chr(4120 - 4009) + chr(0b110010) + '\065' + '\063', 4075 - 4067), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(2362 - 2308) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110011) + '\066' + '\060', ord("\x08")), ehT0Px3KOsy9(chr(125 - 77) + chr(4741 - 4630) + '\063' + chr(54) + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\x30' + '\157' + '\061' + '\063' + chr(51), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(50) + chr(49), 58860 - 58852), ehT0Px3KOsy9(chr(0b11011 + 0o25) + chr(0b101000 + 0o107) + chr(0b1101 + 0o46) + chr(0b100111 + 0o17) + chr(0b100101 + 0o13), 8), ehT0Px3KOsy9(chr(337 - 289) + chr(0b110000 + 0o77) + chr(0b101000 + 0o11) + '\061' + '\063', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(0b1010011 + 0o34) + chr(1469 - 1420) + '\060' + '\x30', 0b1000), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(0b110010) + chr(53), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + chr(0b110110) + '\x33', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1000000 + 0o57) + chr(0b110010) + '\x32' + chr(874 - 820), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b1111 + 0o42) + chr(0b110111) + '\x37', ord("\x08")), ehT0Px3KOsy9(chr(390 - 342) + '\157' + chr(1622 - 1573) + '\x32' + chr(0b101001 + 0o7), 0b1000), ehT0Px3KOsy9(chr(0b10111 + 0o31) + '\x6f' + chr(0b1000 + 0o51) + '\064' + chr(0b110110), 64164 - 64156), ehT0Px3KOsy9('\060' + chr(0b1101111) + chr(553 - 498) + chr(2225 - 2174), 0o10), ehT0Px3KOsy9(chr(1533 - 1485) + chr(11801 - 11690) + chr(1903 - 1851) + chr(0b110111), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b110100) + chr(942 - 894), 0o10), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b101111 + 0o4) + chr(0b11111 + 0o23) + '\x32', ord("\x08")), ehT0Px3KOsy9(chr(1299 - 1251) + chr(0b101000 + 0o107) + chr(0b110010) + chr(53) + chr(53), 39281 - 39273), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\x33' + '\x37', 17664 - 17656), ehT0Px3KOsy9('\x30' + '\157' + chr(1112 - 1061) + chr(0b10111 + 0o32) + chr(0b11011 + 0o26), 8), ehT0Px3KOsy9(chr(48) + chr(0b1111 + 0o140) + '\x32' + '\x30' + chr(0b11000 + 0o35), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(1592 - 1481) + chr(50) + chr(0b110011), 0o10), ehT0Px3KOsy9(chr(0b100001 + 0o17) + chr(931 - 820) + '\062' + '\x37', 1970 - 1962), ehT0Px3KOsy9('\x30' + chr(0b1101111) + '\061' + chr(0b110111) + chr(51), 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(1237 - 1186) + chr(1219 - 1171), 43890 - 43882), ehT0Px3KOsy9('\x30' + chr(0b1101111) + chr(0b110001) + chr(49), 0b1000), ehT0Px3KOsy9(chr(0b100001 + 0o17) + '\x6f' + chr(0b11001 + 0o30) + chr(0b101110 + 0o3) + '\x30', ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b100110 + 0o13) + chr(0b1001 + 0o47) + chr(48), 8), ehT0Px3KOsy9('\060' + '\157' + chr(49) + '\064' + chr(48), 50215 - 50207), ehT0Px3KOsy9('\x30' + '\x6f' + chr(1686 - 1637) + '\064' + '\x30', 8), ehT0Px3KOsy9(chr(0b10111 + 0o31) + chr(1013 - 902) + chr(0b110100) + chr(49), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(450 - 339) + '\x33' + '\065' + '\x33', 26051 - 26043), ehT0Px3KOsy9(chr(1294 - 1246) + chr(111) + chr(0b110011) + '\060' + chr(0b111 + 0o53), 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9(chr(0b100110 + 0o12) + '\157' + '\065' + chr(0b1100 + 0o44), 0b1000)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xd6'), chr(0b111010 + 0o52) + '\145' + chr(99) + chr(8622 - 8511) + chr(5794 - 5694) + chr(0b11110 + 0o107))('\x75' + chr(0b110010 + 0o102) + chr(0b1100110) + '\055' + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def LYPmdEQneCXK(oVre8I6UXc3b, gcqmiCQ3I2cE, Alvsa0ue91Fo): if xafqLlk3kkUe(Alvsa0ue91Fo, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8e\x8b\x8d\x02\xda\xe3\x07\x97\xb4\x1ew\x89'), chr(0b1100100) + '\145' + chr(4548 - 4449) + chr(0b1101101 + 0o2) + '\144' + chr(0b1001100 + 0o31))(chr(0b1000 + 0o155) + '\164' + chr(102) + chr(0b101101) + '\070')) is xafqLlk3kkUe(bKgNCjeVNupv, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa8\x88\xab\x1c\xc8\xef'), chr(100) + '\145' + chr(5842 - 5743) + chr(0b10111 + 0o130) + chr(2080 - 1980) + chr(101))('\x75' + chr(9761 - 9645) + chr(0b1100110) + '\055' + chr(0b111000))) and Alvsa0ue91Fo in xafqLlk3kkUe(oVre8I6UXc3b, xafqLlk3kkUe(SXOLrMavuUCe(b'\xa7\xbb\x9b<\xf8\xc7G\x83'), chr(100) + '\x65' + '\143' + chr(0b100011 + 0o114) + chr(0b1100100) + chr(0b110101 + 0o60))(chr(0b101001 + 0o114) + '\164' + '\x66' + '\x2d' + chr(56))): xafqLlk3kkUe(oVre8I6UXc3b._completed_trials, xafqLlk3kkUe(SXOLrMavuUCe(b'\x8d\x83\xce>\xb4\xc8t\xc5\xaf\x14C\xc3'), chr(0b1100100) + chr(0b1100101) + chr(7636 - 7537) + chr(0b1101111) + chr(9929 - 9829) + '\x65')(chr(117) + chr(116) + chr(0b1100 + 0o132) + chr(0b10100 + 0o31) + chr(1622 - 1566)))(Alvsa0ue91Fo)
ray-project/ray
python/ray/tune/automlboard/models/models.py
JobRecord.from_json
def from_json(cls, json_info): """Build a Job instance from a json string.""" if json_info is None: return None return JobRecord( job_id=json_info["job_id"], name=json_info["job_name"], user=json_info["user"], type=json_info["type"], start_time=json_info["start_time"])
python
def from_json(cls, json_info): """Build a Job instance from a json string.""" if json_info is None: return None return JobRecord( job_id=json_info["job_id"], name=json_info["job_name"], user=json_info["user"], type=json_info["type"], start_time=json_info["start_time"])
[ "def", "from_json", "(", "cls", ",", "json_info", ")", ":", "if", "json_info", "is", "None", ":", "return", "None", "return", "JobRecord", "(", "job_id", "=", "json_info", "[", "\"job_id\"", "]", ",", "name", "=", "json_info", "[", "\"job_name\"", "]", ",", "user", "=", "json_info", "[", "\"user\"", "]", ",", "type", "=", "json_info", "[", "\"type\"", "]", ",", "start_time", "=", "json_info", "[", "\"start_time\"", "]", ")" ]
Build a Job instance from a json string.
[ "Build", "a", "Job", "instance", "from", "a", "json", "string", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/automlboard/models/models.py#L20-L29
train
Build a Job instance from a json string.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwDASQ0Qkq,NL8dtWOpbcjF,_bikzMuRfbJG,sznFqDbNBHlx,ZsDPvpP4xdo3,cW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dqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1111 + 0o43) + chr(2159 - 2107) + chr(54), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(111) + '\x31' + chr(0b110100) + chr(1142 - 1091), 10319 - 10311), ehT0Px3KOsy9('\060' + chr(0b1011 + 0o144) + chr(0b110011) + '\x36', 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\063' + '\x34' + chr(1803 - 1751), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(1329 - 1279) + chr(49), 0b1000), ehT0Px3KOsy9(chr(2056 - 2008) + chr(111) + chr(1589 - 1540) + chr(51), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(708 - 658) + chr(54) + chr(51), 50754 - 50746), ehT0Px3KOsy9('\060' + chr(111) + '\061' + chr(0b110000) + chr(50), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(111) + chr(1757 - 1707) + chr(50) + '\063', ord("\x08")), ehT0Px3KOsy9(chr(0b100101 + 0o13) + chr(5619 - 5508) + chr(250 - 200) + chr(50) + '\x34', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b111 + 0o52) + chr(0b100010 + 0o25) + chr(2869 - 2814), ord("\x08")), ehT0Px3KOsy9(chr(1926 - 1878) + chr(111) + chr(49) + '\x30' + '\060', ord("\x08")), ehT0Px3KOsy9(chr(796 - 748) + '\x6f' + chr(2254 - 2204) + chr(52) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b110001) + chr(50) + chr(0b110000), 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11000 + 0o31) + chr(0b10000 + 0o46) + '\065', 14788 - 14780), ehT0Px3KOsy9(chr(0b110000) + '\x6f' + chr(0b101101 + 0o6) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b110000 + 0o0) + chr(111) + '\x33' + '\x33' + chr(51), 0b1000), ehT0Px3KOsy9('\x30' + chr(111) + chr(51) + '\063' + chr(1316 - 1265), 8), ehT0Px3KOsy9(chr(984 - 936) + chr(111) + '\x33' + chr(0b110111) + chr(276 - 228), 37329 - 37321), ehT0Px3KOsy9(chr(0b110000) + chr(584 - 473) + chr(51) + chr(0b110001) + '\x33', ord("\x08")), ehT0Px3KOsy9(chr(48) + chr(2489 - 2378) + '\x33' + '\063' + chr(0b110110), 60812 - 60804), ehT0Px3KOsy9('\x30' + chr(0b1101010 + 0o5) + chr(50) + chr(0b10111 + 0o33) + '\x32', 0o10), ehT0Px3KOsy9(chr(2284 - 2236) + chr(8356 - 8245) + chr(0b1110 + 0o45) + chr(0b1100 + 0o51) + '\067', 8654 - 8646), ehT0Px3KOsy9(chr(0b110000) + chr(0b1011110 + 0o21) + chr(0b110001) + '\x32' + '\x36', ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b10 + 0o63) + '\063', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(51) + chr(0b110011) + chr(1676 - 1627), 13915 - 13907), ehT0Px3KOsy9(chr(0b101110 + 0o2) + chr(0b1101111) + chr(50) + '\x35' + chr(51), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(556 - 507) + chr(0b110111) + '\x33', 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(51) + '\064', 0b1000), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b11001 + 0o33) + chr(1129 - 1078), 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b110110 + 0o71) + chr(0b10010 + 0o37) + chr(0b111 + 0o54) + chr(2881 - 2827), 0o10), ehT0Px3KOsy9(chr(48) + '\157' + chr(0b110010) + chr(0b100011 + 0o23) + chr(0b110001), 4102 - 4094), ehT0Px3KOsy9(chr(1011 - 963) + '\157' + chr(1922 - 1873) + '\x35' + '\x37', 0o10), ehT0Px3KOsy9('\060' + '\x6f' + chr(0b101101 + 0o6), 0o10), ehT0Px3KOsy9('\060' + '\157' + chr(1555 - 1506) + chr(711 - 659) + chr(0b101100 + 0o10), 0o10), ehT0Px3KOsy9(chr(0b11010 + 0o26) + chr(11795 - 11684) + chr(0b110001) + '\061' + chr(0b110101), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b10001 + 0o136) + chr(0b110011) + '\064' + chr(0b100110 + 0o14), 0o10), ehT0Px3KOsy9('\x30' + chr(0b101111 + 0o100) + chr(50) + '\x35' + '\x33', 8), ehT0Px3KOsy9(chr(48) + chr(111) + chr(51) + chr(0b110000) + chr(2374 - 2325), 0b1000), ehT0Px3KOsy9('\x30' + chr(1168 - 1057) + '\x33' + '\060' + chr(0b101 + 0o56), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1100011 + 0o14) + '\x35' + chr(0b110000 + 0o0), ord("\x08"))] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x88'), '\144' + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1010000 + 0o45) + chr(0b1110100) + chr(2986 - 2884) + '\x2d' + chr(0b111000)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def cJERseHjddQ9(NSstowUUZlxS, _F3BQIukWs2E): if _F3BQIukWs2E is None: return None return W7kCA761frwi(job_id=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xcc\x0c|\xbbxo'), chr(100) + chr(101) + chr(0b101101 + 0o66) + '\x6f' + chr(0b1100100) + '\x65')('\x75' + chr(0b1001100 + 0o50) + chr(3113 - 3011) + chr(0b10 + 0o53) + chr(3056 - 3000))], name=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b"\xcc\x0c|\xbb\x7fj\xde'"), chr(2525 - 2425) + '\x65' + chr(99) + chr(111) + '\144' + '\x65')(chr(0b1110101) + '\x74' + chr(0b1000010 + 0o44) + chr(45) + chr(56))], user=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3\x10{\x96'), '\144' + '\145' + '\143' + '\157' + chr(0b111010 + 0o52) + chr(0b1100101))(chr(4265 - 4148) + chr(0b101000 + 0o114) + chr(0b10011 + 0o123) + chr(45) + chr(0b111000))], type=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xd2\x1an\x81'), '\144' + chr(0b1100101) + chr(0b111110 + 0o45) + '\157' + '\x64' + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(56))], start_time=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xd5\x17\x7f\x96eT\xc7+\xfe\xf1'), chr(6392 - 6292) + chr(0b11001 + 0o114) + '\143' + chr(0b10011 + 0o134) + '\x64' + chr(0b1100101))('\x75' + chr(0b110011 + 0o101) + chr(0b1100110) + chr(1498 - 1453) + chr(56))])
ray-project/ray
python/ray/tune/automlboard/models/models.py
TrialRecord.from_json
def from_json(cls, json_info): """Build a Trial instance from a json string.""" if json_info is None: return None return TrialRecord( trial_id=json_info["trial_id"], job_id=json_info["job_id"], trial_status=json_info["status"], start_time=json_info["start_time"], params=json_info["params"])
python
def from_json(cls, json_info): """Build a Trial instance from a json string.""" if json_info is None: return None return TrialRecord( trial_id=json_info["trial_id"], job_id=json_info["job_id"], trial_status=json_info["status"], start_time=json_info["start_time"], params=json_info["params"])
[ "def", "from_json", "(", "cls", ",", "json_info", ")", ":", "if", "json_info", "is", "None", ":", "return", "None", "return", "TrialRecord", "(", "trial_id", "=", "json_info", "[", "\"trial_id\"", "]", ",", "job_id", "=", "json_info", "[", "\"job_id\"", "]", ",", "trial_status", "=", "json_info", "[", "\"status\"", "]", ",", "start_time", "=", "json_info", "[", "\"start_time\"", "]", ",", "params", "=", "json_info", "[", "\"params\"", "]", ")" ]
Build a Trial instance from a json string.
[ "Build", "a", "Trial", "instance", "from", "a", "json", "string", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/automlboard/models/models.py#L48-L57
train
Build a Trial instance from a json string.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8L0MH5qfg,koCeDPYTrOFe,qqrhSmCSbbqk,pz9FlfzsWoy1,BXIwD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oxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\x30' + '\157' + chr(0b10100 + 0o36) + chr(1032 - 980) + chr(0b1111 + 0o50), ord("\x08")), ehT0Px3KOsy9(chr(1171 - 1123) + chr(9431 - 9320) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\063' + '\x31' + chr(0b110111), 59244 - 59236), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(0b1000011 + 0o54) + '\x31' + chr(52) + chr(0b110110 + 0o1), ord("\x08")), ehT0Px3KOsy9(chr(0b1 + 0o57) + '\x6f' + '\061' + '\x33' + chr(421 - 368), ord("\x08")), ehT0Px3KOsy9(chr(2100 - 2052) + '\x6f' + chr(2130 - 2081) + '\066' + '\060', ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b1000111 + 0o50) + chr(51) + chr(0b101010 + 0o13) + '\061', 0o10), ehT0Px3KOsy9('\x30' + '\x6f' + '\x33' + chr(0b10000 + 0o43) + chr(165 - 116), ord("\x08")), ehT0Px3KOsy9(chr(296 - 248) + '\157' + '\064' + chr(1669 - 1620), 53570 - 53562), ehT0Px3KOsy9(chr(1926 - 1878) + chr(0b1011010 + 0o25) + '\x32' + chr(0b10010 + 0o36) + chr(0b101010 + 0o10), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(0b1001 + 0o51) + chr(52) + chr(0b110111), 8), ehT0Px3KOsy9('\060' + chr(111) + '\066' + '\x37', 0o10), ehT0Px3KOsy9(chr(2265 - 2217) + chr(111) + chr(0b110010) + chr(0b110111) + chr(521 - 468), 0o10), ehT0Px3KOsy9(chr(48) + chr(0b1001111 + 0o40) + '\x33' + chr(0b100101 + 0o20) + chr(0b100011 + 0o21), ord("\x08")), ehT0Px3KOsy9('\060' + '\x6f' + chr(54), 8), ehT0Px3KOsy9('\x30' + chr(4477 - 4366) + chr(0b10101 + 0o41) + '\060', 0o10), ehT0Px3KOsy9(chr(1865 - 1817) + chr(111) + chr(50) + chr(51) + '\065', 0b1000), ehT0Px3KOsy9(chr(1372 - 1324) + chr(0b11111 + 0o120) + chr(0b110001) + '\x34' + '\066', 0o10), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b110010) + '\062' + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + chr(51) + chr(54) + chr(0b110001), 0o10), ehT0Px3KOsy9(chr(0b10011 + 0o35) + chr(0b1001101 + 0o42) + '\064' + chr(0b1010 + 0o54), 51498 - 51490), ehT0Px3KOsy9('\x30' + chr(8047 - 7936) + '\061' + chr(0b101000 + 0o14) + chr(48), ord("\x08")), ehT0Px3KOsy9(chr(853 - 805) + chr(111) + '\x37', 15572 - 15564), ehT0Px3KOsy9('\x30' + '\x6f' + '\063' + '\x33' + '\060', 12781 - 12773), ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + chr(1390 - 1336) + chr(0b110001), 55731 - 55723), ehT0Px3KOsy9(chr(48) + chr(0b1000011 + 0o54) + chr(0b100110 + 0o15) + '\063' + '\066', 64110 - 64102), ehT0Px3KOsy9(chr(48) + chr(4743 - 4632) + chr(0b100110 + 0o14) + chr(48) + '\060', 0b1000), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b100000 + 0o24) + chr(0b110100), ord("\x08")), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + '\x31' + '\x30', 0b1000), ehT0Px3KOsy9(chr(48) + '\x6f' + '\x33' + chr(0b100011 + 0o17) + chr(0b110111), 0b1000), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(313 - 202) + chr(0b11001 + 0o30) + chr(50) + '\065', 0b1000), ehT0Px3KOsy9(chr(0b100100 + 0o14) + chr(2180 - 2069) + chr(50) + chr(0b101010 + 0o13) + '\x36', 0o10), ehT0Px3KOsy9(chr(213 - 165) + chr(0b1100001 + 0o16) + chr(0b101101 + 0o10) + chr(0b10111 + 0o32), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(5501 - 5390) + '\x34' + chr(1954 - 1905), 8), ehT0Px3KOsy9('\060' + chr(111) + '\x31' + chr(0b110111) + chr(0b110011 + 0o1), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(111) + '\x32' + '\064' + chr(0b100001 + 0o17), 39379 - 39371), ehT0Px3KOsy9(chr(0b100 + 0o54) + '\157' + '\062' + chr(2808 - 2754) + chr(0b1000 + 0o53), 13693 - 13685), ehT0Px3KOsy9(chr(0b100101 + 0o13) + '\x6f' + chr(0b101 + 0o56) + chr(0b110000) + chr(0b101000 + 0o17), ord("\x08")), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(1054 - 1003) + chr(0b110010) + chr(0b101101 + 0o4), 30853 - 30845), ehT0Px3KOsy9('\x30' + chr(0b10001 + 0o136) + chr(2178 - 2125), ord("\x08"))][WVxHKyX45z_L % ehT0Px3KOsy9(chr(48) + '\157' + chr(53) + chr(48), 0o10)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\x89'), chr(6382 - 6282) + '\x65' + chr(0b1000011 + 0o40) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b0 + 0o165) + chr(116) + chr(0b111111 + 0o47) + chr(45) + chr(56)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def cJERseHjddQ9(NSstowUUZlxS, _F3BQIukWs2E): if _F3BQIukWs2E is None: return None return nGEagzBC6rVy(trial_id=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xd3t\xa6\x061/\x80\xbd'), '\x64' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(1016 - 916) + chr(0b1001101 + 0o30))(chr(4860 - 4743) + chr(0b1110100) + chr(5639 - 5537) + chr(0b11110 + 0o17) + '\x38')], job_id=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xcdi\xad84\x14'), chr(0b1100011 + 0o1) + chr(0b110110 + 0o57) + chr(6228 - 6129) + chr(0b101 + 0o152) + '\x64' + chr(7167 - 7066))(chr(117) + chr(116) + chr(0b101010 + 0o74) + chr(0b100110 + 0o7) + '\x38')], trial_status=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4r\xae\x13(\x03'), chr(100) + chr(0b1000100 + 0o41) + chr(0b10010 + 0o121) + '\157' + '\x64' + chr(5190 - 5089))('\x75' + chr(0b1010 + 0o152) + chr(0b1001101 + 0o31) + '\x2d' + chr(56))], start_time=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xd4r\xae\x15)/\x9d\xb0L\xe7'), '\144' + chr(101) + chr(7230 - 7131) + '\157' + chr(6938 - 6838) + '\145')(chr(0b1010111 + 0o36) + '\164' + '\146' + chr(45) + chr(0b100000 + 0o30))], params=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\xd7g\xbd\x060\x03'), '\x64' + chr(8031 - 7930) + chr(0b1100011) + chr(111) + chr(3600 - 3500) + chr(0b1100100 + 0o1))(chr(117) + chr(0b10100 + 0o140) + chr(0b1100110) + chr(726 - 681) + chr(0b110011 + 0o5))])
ray-project/ray
python/ray/tune/automlboard/models/models.py
ResultRecord.from_json
def from_json(cls, json_info): """Build a Result instance from a json string.""" if json_info is None: return None return ResultRecord( trial_id=json_info["trial_id"], timesteps_total=json_info["timesteps_total"], done=json_info.get("done", None), episode_reward_mean=json_info.get("episode_reward_mean", None), mean_accuracy=json_info.get("mean_accuracy", None), mean_loss=json_info.get("mean_loss", None), trainning_iteration=json_info.get("training_iteration", None), timesteps_this_iter=json_info.get("timesteps_this_iter", None), time_this_iter_s=json_info.get("time_this_iter_s", None), time_total_s=json_info.get("time_total_s", None), date=json_info.get("date", None), hostname=json_info.get("hostname", None), node_ip=json_info.get("node_ip", None), config=json_info.get("config", None))
python
def from_json(cls, json_info): """Build a Result instance from a json string.""" if json_info is None: return None return ResultRecord( trial_id=json_info["trial_id"], timesteps_total=json_info["timesteps_total"], done=json_info.get("done", None), episode_reward_mean=json_info.get("episode_reward_mean", None), mean_accuracy=json_info.get("mean_accuracy", None), mean_loss=json_info.get("mean_loss", None), trainning_iteration=json_info.get("training_iteration", None), timesteps_this_iter=json_info.get("timesteps_this_iter", None), time_this_iter_s=json_info.get("time_this_iter_s", None), time_total_s=json_info.get("time_total_s", None), date=json_info.get("date", None), hostname=json_info.get("hostname", None), node_ip=json_info.get("node_ip", None), config=json_info.get("config", None))
[ "def", "from_json", "(", "cls", ",", "json_info", ")", ":", "if", "json_info", "is", "None", ":", "return", "None", "return", "ResultRecord", "(", "trial_id", "=", "json_info", "[", "\"trial_id\"", "]", ",", "timesteps_total", "=", "json_info", "[", "\"timesteps_total\"", "]", ",", "done", "=", "json_info", ".", "get", "(", "\"done\"", ",", "None", ")", ",", "episode_reward_mean", "=", "json_info", ".", "get", "(", "\"episode_reward_mean\"", ",", "None", ")", ",", "mean_accuracy", "=", "json_info", ".", "get", "(", "\"mean_accuracy\"", ",", "None", ")", ",", "mean_loss", "=", "json_info", ".", "get", "(", "\"mean_loss\"", ",", "None", ")", ",", "trainning_iteration", "=", "json_info", ".", "get", "(", "\"training_iteration\"", ",", "None", ")", ",", "timesteps_this_iter", "=", "json_info", ".", "get", "(", "\"timesteps_this_iter\"", ",", "None", ")", ",", "time_this_iter_s", "=", "json_info", ".", "get", "(", "\"time_this_iter_s\"", ",", "None", ")", ",", "time_total_s", "=", "json_info", ".", "get", "(", "\"time_total_s\"", ",", "None", ")", ",", "date", "=", "json_info", ".", "get", "(", "\"date\"", ",", "None", ")", ",", "hostname", "=", "json_info", ".", "get", "(", "\"hostname\"", ",", "None", ")", ",", "node_ip", "=", "json_info", ".", "get", "(", "\"node_ip\"", ",", "None", ")", ",", "config", "=", "json_info", ".", "get", "(", "\"config\"", ",", "None", ")", ")" ]
Build a Result instance from a json string.
[ "Build", "a", "Result", "instance", "from", "a", "json", "string", "." ]
4eade036a0505e244c976f36aaa2d64386b5129b
https://github.com/ray-project/ray/blob/4eade036a0505e244c976f36aaa2d64386b5129b/python/ray/tune/automlboard/models/models.py#L80-L98
train
Build a Result instance from a json string.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGLtp_O,sR2sPcm7Zrfn,yROw0HWBk0Qc,j9rjMYnN2BMp,hIlP7994qj8O,_fsda0v2_OKU,o0CgT5HPthxA,DXjfarvgFnbl,RQ6CSRrFArYB,RouZF7bjEXAv,jIl9qoALCRyb,bdLuls3EQFSd,FXUco0R3m83n,V5s4UV3vwoyK,Q6d3QdTENfxw,sbc9gub6LIFp,QWgp4ELTmqy4,_zJ24Vce7wp0,KlPSljPzIJ_u,N5Ee6d9YGQ_x,yDcnbVVBZ5VZ,OTstrxJfIC1n,GXwwnDRMCHJX,a9IKoVgO_m3w,GNd6AVvhYicE,ixtrydDuthdu,n0ZkatoveZpF,eh4BeXwijHpf,ZMHESMWYyt8h,hr2QaoivbFQ2,Iiw8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gtAN,Jp8aZ6mjyZZT,eO8Xfv8UVFey,zLUzGokYBM2Z,FL7SmUoxlR9h,k6bl9sLammpH,vQr8gNKaIaWE,S6hV9M2g7fO0,RFiwrCZH9Ie6,jB_HdqgHmVpI,MVEN8G6CxlvR,t0rOMsrOC7R_,W3g84rNiEdDQ,vUlqIvNSaRMa,gDnh40_OUDCn,M8_cKLkHVB2V,xkxBmo49x2An,KNx0Ujaz9UM0,KNyTy8rYcwji,wmQmyeWBmUpv,p1G5VS3dE_Ss,pZ0NK2y6HRbn,HByLaO1XdVEe,pgRJLRS7Iy8j,OZYzwAeSQh7N,tmzuw0hjv33u,RwRZiUMA3VWp,Gbej4oZqKLA6,TqkAMbUz4aLg,rw68imZ2Ikxp=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ SXOLrMavuUCe = lambda XbwU38w7NW8n: QOfmzcVJsrp8([OeWW0F1dBPRQ ^ [ehT0Px3KOsy9('\060' + chr(111) + chr(0b111 + 0o54) + chr(0b110110) + chr(416 - 363), 0o10), ehT0Px3KOsy9(chr(0b110000) + '\157' + '\061' + chr(0b11001 + 0o31) + '\x34', 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(1283 - 1232) + chr(0b110110), ord("\x08")), ehT0Px3KOsy9(chr(728 - 680) + chr(0b100111 + 0o110) + chr(0b1111 + 0o42) + '\067' + chr(180 - 130), 0o10), ehT0Px3KOsy9(chr(1230 - 1182) + '\157' + chr(0b110010) + '\062' + chr(0b110011 + 0o4), ord("\x08")), ehT0Px3KOsy9('\x30' + chr(0b1100000 + 0o17) + '\x32' + chr(0b110110) + chr(54), ord("\x08")), ehT0Px3KOsy9(chr(0b100110 + 0o12) + chr(111) + chr(0b110011) + '\x30' + chr(0b1100 + 0o51), 31971 - 31963), ehT0Px3KOsy9('\060' + '\x6f' + chr(1467 - 1416) + chr(0b110011) + chr(0b10110 + 0o37), 0b1000), ehT0Px3KOsy9('\x30' + chr(10767 - 10656) + chr(51) + chr(0b110110) + '\062', ord("\x08")), ehT0Px3KOsy9(chr(0b101111 + 0o1) + chr(0b1001001 + 0o46) + '\063' + '\062' + '\064', 0o10), ehT0Px3KOsy9(chr(0b111 + 0o51) + chr(111) + chr(0b110001) + chr(1813 - 1760) + chr(380 - 330), ord("\x08")), ehT0Px3KOsy9(chr(2101 - 2053) + chr(111) + chr(0b10000 + 0o44) + '\x31', 33072 - 33064), ehT0Px3KOsy9(chr(1935 - 1887) + chr(111) + chr(50) + chr(0b110010) + chr(0b110111), 8), ehT0Px3KOsy9(chr(1379 - 1331) + '\157' + '\x32' + chr(2052 - 1999), ord("\x08")), ehT0Px3KOsy9(chr(48) + '\157' + chr(50) + chr(527 - 472) + chr(0b110010), 44425 - 44417), ehT0Px3KOsy9(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(48) + chr(1211 - 1158), 8), ehT0Px3KOsy9(chr(0b100010 + 0o16) + chr(0b1101111) + chr(1289 - 1238) + chr(0b110011) + '\x31', 0b1000), ehT0Px3KOsy9(chr(1507 - 1459) + '\157' + '\061' + chr(0b1110 + 0o47) + chr(711 - 657), 0b1000), ehT0Px3KOsy9(chr(48) + chr(111) + chr(0b1000 + 0o51) + chr(51), 36736 - 36728), ehT0Px3KOsy9(chr(1538 - 1490) + chr(111) + '\x32' + chr(2241 - 2186) + chr(1643 - 1595), 0o10), ehT0Px3KOsy9(chr(0b110000) + chr(0b11011 + 0o124) + '\x32' + chr(54) + chr(2617 - 2564), 0b1000), ehT0Px3KOsy9(chr(48) + chr(655 - 544) + chr(780 - 729) + chr(52) + chr(2458 - 2404), 41957 - 41949), ehT0Px3KOsy9(chr(0b0 + 0o60) + chr(11602 - 11491) + chr(0b101000 + 0o11) + chr(0b110010) + chr(50), 0b1000), ehT0Px3KOsy9(chr(0b1011 + 0o45) + chr(0b1101111) + chr(49) + '\x34' + chr(0b1001 + 0o56), ord("\x08")), ehT0Px3KOsy9(chr(1145 - 1097) + chr(0b1100000 + 0o17) + chr(1761 - 1712) + chr(2641 - 2587) + '\x31', 3070 - 3062), ehT0Px3KOsy9('\x30' + chr(0b1010101 + 0o32) + chr(52) + chr(49), 8), ehT0Px3KOsy9(chr(0b100 + 0o54) + '\157' + chr(0b110110) + chr(1618 - 1569), 13718 - 13710), ehT0Px3KOsy9('\x30' + chr(111) + '\x32' + '\065' + chr(0b110001), 25773 - 25765), ehT0Px3KOsy9('\060' + '\x6f' + chr(51) + chr(0b110110) + chr(49), ord("\x08")), ehT0Px3KOsy9('\060' + '\157' + '\061' + chr(0b1111 + 0o47) + chr(0b110010), 0b1000), ehT0Px3KOsy9(chr(48) + chr(0b1101111) + chr(0b110101) + chr(48), 0b1000), ehT0Px3KOsy9(chr(0b100111 + 0o11) + chr(111) + '\062' + chr(51) + chr(0b111 + 0o54), 0o10), ehT0Px3KOsy9('\060' + chr(0b111101 + 0o62) + chr(51) + chr(0b101100 + 0o4) + chr(0b110010), 0o10), ehT0Px3KOsy9(chr(0b101011 + 0o5) + chr(11967 - 11856) + chr(698 - 648) + '\x37' + chr(464 - 413), ord("\x08")), ehT0Px3KOsy9('\060' + chr(0b11101 + 0o122) + '\x32' + chr(2267 - 2212) + '\x32', 8), ehT0Px3KOsy9(chr(0b110000) + chr(111) + chr(50) + '\061' + chr(0b100010 + 0o20), 0o10), ehT0Px3KOsy9(chr(0b1000 + 0o50) + chr(111) + chr(0b110011) + chr(50) + chr(0b110000 + 0o2), 0o10), ehT0Px3KOsy9(chr(48) + '\x6f' + '\064' + chr(50), 0o10), ehT0Px3KOsy9('\x30' + chr(111) + chr(0b10010 + 0o37) + chr(0b110000) + chr(55), 13174 - 13166), ehT0Px3KOsy9('\x30' + '\x6f' + chr(0b110011) + chr(1930 - 1876) + '\x30', 0o10)][WVxHKyX45z_L % ehT0Px3KOsy9('\060' + chr(0b1110 + 0o141) + chr(53) + chr(0b110000), 8)] for (WVxHKyX45z_L, OeWW0F1dBPRQ) in YlkZvXL8qwsX(XbwU38w7NW8n)]) def NPPHb59961Bv(RqocVGOryNPv, _CF03Rifpmdh): try: return jFWsnpHpAUWz(RqocVGOryNPv + xafqLlk3kkUe(SXOLrMavuUCe(b'\xdb'), '\144' + '\145' + chr(0b1100011) + '\157' + '\x64' + chr(7213 - 7112))('\x75' + chr(3039 - 2923) + '\146' + chr(0b101101) + chr(1983 - 1927)) + _CF03Rifpmdh) except yROw0HWBk0Qc: return jFWsnpHpAUWz(RqocVGOryNPv) def cJERseHjddQ9(NSstowUUZlxS, _F3BQIukWs2E): if _F3BQIukWs2E is None: return None return VqjUZo_4U4Xt(trial_id=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\x81&w\x1b\xfb\xe9\xac\xb9'), chr(2957 - 2857) + chr(0b1100101) + chr(99) + '\157' + chr(100) + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + chr(56))], timesteps_total=_F3BQIukWs2E[xafqLlk3kkUe(SXOLrMavuUCe(b'\x81=s\x1f\xe4\xc2\xa0\xad\x81\x8b\x1eN\xe3t\xd6'), chr(100) + chr(0b11110 + 0o107) + '\143' + '\157' + chr(0b1 + 0o143) + chr(0b10001 + 0o124))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(56))], done=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), chr(4958 - 4858) + chr(0b1001111 + 0o26) + '\x63' + chr(111) + chr(100) + chr(0b111100 + 0o51))(chr(1565 - 1448) + chr(0b1110100) + chr(102) + '\x2d' + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x91;p\x1f'), chr(100) + '\145' + chr(99) + '\157' + chr(0b1001111 + 0o25) + '\x65')(chr(0b10110 + 0o137) + chr(116) + chr(2413 - 2311) + chr(0b101001 + 0o4) + chr(0b101110 + 0o12)), None), episode_reward_mean=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), '\x64' + '\145' + chr(1611 - 1512) + chr(111) + chr(0b1100100) + chr(0b110011 + 0o62))('\165' + '\x74' + '\x66' + chr(45) + chr(0b11011 + 0o35)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x90$w\t\xf8\xd2\xa0\x82\x80\xb1\x1d@\xe5q\xe5\xa8\xbc\x0fe'), chr(0b1000010 + 0o42) + '\145' + '\x63' + '\x6f' + chr(100) + chr(101))(chr(194 - 77) + chr(0b1110100) + chr(0b1100110) + chr(713 - 668) + chr(0b0 + 0o70)), None), mean_accuracy=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), chr(100) + chr(0b1011100 + 0o11) + '\x63' + chr(4980 - 4869) + chr(100) + chr(4114 - 4013))('\165' + '\164' + chr(0b11 + 0o143) + chr(45) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x981\x7f\x14\xc8\xd7\xa6\xbe\x87\xa6\x0bB\xee'), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(6616 - 6499) + '\164' + chr(10068 - 9966) + '\x2d' + chr(0b111000)), None), mean_loss=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), chr(0b1000100 + 0o40) + chr(6663 - 6562) + chr(0b1100000 + 0o3) + chr(111) + '\144' + '\x65')(chr(0b101 + 0o160) + chr(0b11011 + 0o131) + chr(102) + chr(499 - 454) + chr(2996 - 2940)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x981\x7f\x14\xc8\xda\xaa\xae\x81'), '\144' + chr(0b1100101) + chr(99) + '\157' + chr(3981 - 3881) + chr(101))('\x75' + '\x74' + '\146' + chr(0b1010 + 0o43) + chr(2967 - 2911)), None), trainning_iteration=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), chr(100) + '\145' + chr(99) + '\157' + chr(0b1001010 + 0o32) + '\145')(chr(117) + '\164' + chr(102) + chr(45) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x81&\x7f\x13\xf9\xdf\xab\xba\xad\xbd\x1eD\xe5t\xce\xac\xb6\x00'), chr(8882 - 8782) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101 + 0o0))(chr(117) + chr(0b1110100) + chr(0b101011 + 0o73) + chr(820 - 775) + '\070'), None), timesteps_this_iter=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), '\144' + '\145' + '\x63' + '\x6f' + '\144' + chr(0b1100100 + 0o1))(chr(0b1110101) + '\164' + '\x66' + chr(45) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x81=s\x1f\xe4\xc2\xa0\xad\x81\x8b\x1eI\xfef\xe5\xac\xad\x0by'), chr(595 - 495) + '\145' + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))(chr(0b100011 + 0o122) + '\164' + chr(102) + '\x2d' + '\x38'), None), time_this_iter_s=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), '\144' + chr(0b1100101) + '\143' + chr(10616 - 10505) + chr(0b1100100) + chr(1221 - 1120))(chr(0b1011 + 0o152) + '\164' + chr(10178 - 10076) + chr(45) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x81=s\x1f\xc8\xc2\xad\xb4\x81\x8b\x03U\xf2g\xe5\xb6'), chr(100) + chr(0b1100101) + chr(0b100000 + 0o103) + chr(111) + '\144' + chr(0b1011 + 0o132))(chr(0b111011 + 0o72) + chr(0b1110001 + 0o3) + '\x66' + chr(45) + '\x38'), None), time_total_s=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), '\x64' + chr(2045 - 1944) + chr(0b1100011) + chr(111) + chr(100) + '\x65')('\165' + chr(116) + '\146' + '\055' + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x81=s\x1f\xc8\xc2\xaa\xa9\x93\xb85R'), '\x64' + '\x65' + chr(0b111110 + 0o45) + chr(111) + '\144' + chr(0b1100101))('\165' + '\x74' + chr(0b1101 + 0o131) + chr(0b101101) + chr(879 - 823)), None), date=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), chr(199 - 99) + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(8512 - 8411))('\165' + chr(0b10 + 0o162) + chr(0b1100110) + chr(209 - 164) + chr(56)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x915j\x1f'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + '\x65')('\165' + '\x74' + '\146' + '\055' + chr(0b11101 + 0o33)), None), hostname=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), '\144' + '\x65' + '\x63' + chr(0b1100110 + 0o11) + '\x64' + chr(0b1100101))('\x75' + chr(0b111 + 0o155) + chr(0b1011010 + 0o14) + chr(0b1111 + 0o36) + '\x38'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9d;m\x0e\xf9\xd7\xa8\xb8'), chr(0b1100100) + '\145' + chr(0b0 + 0o143) + '\x6f' + chr(0b1111 + 0o125) + chr(101))(chr(117) + chr(4577 - 4461) + chr(458 - 356) + '\055' + '\070'), None), node_ip=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), '\144' + chr(5800 - 5699) + chr(0b1100011) + chr(5408 - 5297) + chr(0b1100100) + chr(0b1100101))(chr(3599 - 3482) + chr(0b1110100) + chr(973 - 871) + chr(0b101101) + '\070'))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x9b;z\x1f\xc8\xdf\xb5'), chr(0b10111 + 0o115) + chr(101) + chr(0b111110 + 0o45) + chr(0b1101010 + 0o5) + chr(100) + chr(4799 - 4698))(chr(0b1100010 + 0o23) + chr(6560 - 6444) + '\x66' + '\x2d' + '\070'), None), config=xafqLlk3kkUe(_F3BQIukWs2E, xafqLlk3kkUe(SXOLrMavuUCe(b'\x921j'), '\144' + '\x65' + chr(0b1100011) + chr(111) + chr(8252 - 8152) + chr(9303 - 9202))(chr(117) + chr(0b1111 + 0o145) + chr(102) + '\055' + chr(0b1101 + 0o53)))(xafqLlk3kkUe(SXOLrMavuUCe(b'\x96;p\x1c\xfe\xd1'), chr(7367 - 7267) + chr(101) + '\143' + '\157' + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)), None))