765d470c409dec3f599858b6a8ec7199eb8f2fa8,python/ray/state.py,GlobalState,object_table,#GlobalState#Any#,291
Before Change
return self._object_table(object_id)
else:
// Return the entire object table.
object_keys = self._keys(gcs_utils.TablePrefix_OBJECT_string + "*")
object_ids_binary = {
key[len(gcs_utils.TablePrefix_OBJECT_string):]
for key in object_keys
}
results = {}
for object_id_binary in object_ids_binary:
results[binary_to_object_id(object_id_binary)] = (
self._object_table(binary_to_object_id(object_id_binary)))
return results
def _actor_table(self, actor_id):
Fetch and parse the actor table information for a single actor ID.
After Change
if object_id is not None:
object_id = ray.ObjectID(hex_to_binary(object_id))
object_info = self.global_state_accessor.get_object_info(object_id)
if object_info is None:
return {}
else:
object_location_info = gcs_utils.ObjectLocationInfo.FromString(
object_info)
return self._gen_object_info(object_location_info)
else:
object_table = self.global_state_accessor.get_object_table()
results = {}
for i in range(len(object_table)):
object_location_info = gcs_utils.ObjectLocationInfo.FromString(
object_table[i])
results[binary_to_hex(object_location_info.object_id)] = \
self._gen_object_info(object_location_info)
return results
def _gen_object_info(self, object_location_info):
Parse object location info.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: ray-project/ray
Commit Name: 765d470c409dec3f599858b6a8ec7199eb8f2fa8
Time: 2020-05-25
Author: 869218239a@zju.edu.cn
File Name: python/ray/state.py
Class Name: GlobalState
Method Name: object_table
Project Name: mozilla/TTS
Commit Name: d733b902552295be41b1f88c8343b5e7b4ff8a9b
Time: 2020-09-16
Author: nicolas.mueller@aisec.fraunhofer.de
File Name: TTS/speaker_encoder/dataset.py
Class Name: MyDataset
Method Name: __parse_items
Project Name: pfnet/optuna
Commit Name: ccdd6a0cb1df06715d556705255f05a94e414146
Time: 2020-10-13
Author: syameimaru_kurumi@pku.edu.cn
File Name: optuna/visualization/_contour.py
Class Name:
Method Name: _generate_contour_subplot