コード例 #1
0
 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
コード例 #2
0
    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
コード例 #3
0
 def is_layername_set_and_opname_not_set():
     return not InteractiveModule.was_param_set(
         'opName') and InteractiveModule.was_param_set('name')
コード例 #4
0
 def is_not_set_opname():
     return not InteractiveModule.was_param_set('opName')
コード例 #5
0
 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')))
コード例 #6
0
 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'))
コード例 #7
0
 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')