def print_attributes(): s = "" if InteractiveModule.was_param_set('customParams'): attrs = InteractiveModule.get_param('customParams') for i in range(1, len(attrs) + 1): s = s + " {}. {}\n".format(i, attrs[i - 1][1]) return s
def print_ir_attrs(): s = '' if InteractiveModule.was_param_set('supportedAttrs'): s = s + "Parameters included in IR: " for sup_attr in InteractiveModule.get_param('supportedAttrs'): s = s + '{}, '.format(sup_attr[1]) s = s + '\n' return s
def is_layername_set_and_opname_not_set(): return not InteractiveModule.was_param_set( 'opName') and InteractiveModule.was_param_set('name')
def is_not_set_opname(): return not InteractiveModule.was_param_set('opName')
def is_gpu_and_supported_not_empty(): return InteractiveModule.get_param('plugin') == 'cldnn' and \ (InteractiveModule.was_param_set('supportedAttrs') and len(InteractiveModule.get_param('supportedAttrs')) != 0 or not InteractiveModule.was_param_set('supportedAttrs') and (InteractiveModule.was_param_set('customParams') and len(InteractiveModule.get_param('customParams')) != 0 or not InteractiveModule.was_param_set('customParams')))
def check_not_internalattrs_and_not_pythonic(): return not InteractiveModule.was_param_set('internalAttrs') and \ not InteractiveModule.get_param('isPythonic') and \ (InteractiveModule.was_param_set('customParams') and len(InteractiveModule.get_param('customParams')) != 0 or not InteractiveModule.was_param_set('customParams'))
def check_set_customparams_and_not_pythonic(): return InteractiveModule.was_param_set('customParams') and \ len(InteractiveModule.get_param('customParams')) != 0 and \ not InteractiveModule.get_param('isPythonic')