parameters: ()
return_statement: return not explicitly_on_cpu and gpus_available
docstring: Check whether the current scope supports NCHW ops.
  
    TensorFlow does not support NCHW on CPU. Therefore we check if we are not
    explicitly put on
    CPU, and have GPUs available. In this case there will be soft-placing on the
    GPU device.
  
    Returns:
        bool: if the current scope device placement would support nchw
docstring_summary: Check whether the current scope supports NCHW ops.
docstring_tokens: Check whether the current scope supports NCHW ops .
function: def _has_nchw_support():
    """Check whether the current scope supports NCHW ops.
  
    TensorFlow does not support NCHW on CPU. Therefore we check if we are not
    explicitly put on
    CPU, and have GPUs available. In this case there will be soft-placing on the
    GPU device.
  
    Returns:
        bool: if the current scope device placement would support nchw
    """
    explicitly_on_cpu = _is_current_explicit_device('CPU')
    gpus_available = bool(_get_available_gpus())
    return not explicitly_on_cpu and gpus_available
function_tokens: def _has_nchw_support ( ) : explicitly_on_cpu = _is_current_explicit_device ( 'CPU' ) gpus_available = bool ( _get_available_gpus ( ) ) return not explicitly_on_cpu and gpus_available