57a90c815b43fdfa6031597bbafa9fbcbfc00fe6,polyaxon_cli/cli/cluster.py,,get_node_info,#Any#,34
Before Change
click.secho("Node GPUs:", fg="yellow")
gpus_items = OrderedDict()
for gpu in gpus:
for k, v in six.iteritems(gpu):
if k in gpus_items:
gpus_items[k].append(v)
else:
gpus_items[k] = [v]
if gpus_items:
headers = six.iterkeys(gpu)
// remove the cluster_node uuid
gpus_items.pop("cluster_node")
After Change
def get_node_info(node_config):
if not node_config:
Printer.print_error("No node was found.")
sys.exit(0)
node = node_config.to_dict()
gpus = node.pop("gpus", [])
Printer.print_header("Node info:")
dict_tabulate(node)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: polyaxon/polyaxon
Commit Name: 57a90c815b43fdfa6031597bbafa9fbcbfc00fe6
Time: 2017-12-13
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/cluster.py
Class Name:
Method Name: get_node_info
Project Name: daniellerch/aletheia
Commit Name: c80eafd9442885085fc5f4adb448a78162d5cc3a
Time: 2021-03-02
Author: dlerch@gmail.com
File Name: aletheialib/models.py
Class Name: NN
Method Name: valid_generator
Project Name: gooofy/zamia-speech
Commit Name: 79aebeb14bf19333e61ee305b99f91dd191942d7
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name: