示例#1
0
    def get_infrastructure(self):
        hardware = info.get_system_characteristics()
        hardware_info = ''
        for key in hardware:
            hardware_info += '{}: {}, '.format(key, hardware[key])
        hardware_info = hardware_info[:-2]

        return hardware_info
示例#2
0
 def get_infrastructure(self):
     sys.path.append(
         os.path.join(os.path.dirname(os.path.realpath(__file__)), '..',
                      'node_info'))
     import node_info as info  # noqa: E402 pylint: disable=E0401
     hardware = info.get_system_characteristics()
     hardware_info = ''
     for key in hardware:
         hardware_info += '{}: {}, '.format(key, hardware[key])
     hardware_info = hardware_info[:-2]
     return hardware_info
def create_table_row(model, dataset, param, average_time, latency, fps):
    hardware = info.get_system_characteristics()
    hardware_info = ''
    for key in hardware:
        hardware_info += '{}: {}, '.format(key, hardware[key])
    hardware_info = hardware_info[:-2]
    other_param = 'Plugin: {}, Async request count: {}, Iteration count: {}, Thread count: {}, Min inference time (s): {}'.format(param.plugin,
        param.async_request, param.iteration, param.nthreads, param.min_inference_time)
    table_row = '{};{};{};{};{};{};{};{};{};{};'.format(model.name, model.datatype,
        dataset.name, param.batch_size, param.mode, other_param, hardware_info,
        average_time, latency, fps)
    return table_row