Пример #1
0
def re_exact_match(s):
  return re.compile('^' + re.escape(s) + '$')

linkcheck_anchors_ignore = [
  # Important: Github Wiki anchors (for sections refs) yield errors in
  # link-checking and need to be manually checked. Current exception to make
  # the build pass are listed here:
  re_exact_match('21-data-parallel-training-with-1-bit-sgd'),
  re_exact_match('22-block-momentum-sgd'),
  re_exact_match('converting-learning-rate-and-momentum-parameters-from-other-toolkits'),
  re_exact_match('for-python'),
  re_exact_match('base64imagedeserializer-options'),
]

source_prefix = 'https://github.com/Microsoft/CNTK/blob/'
if module_is_unreleased():
    source_prefix += 'master'
else:
    # TODO temporary
    source_prefix += 'v%s' % (cntk.__version__.replace("rc", ".rc"))

# sphinx.ext.extlinks options
extlinks = {
    'cntk': (source_prefix + '/%s', ''),
    'cntktut': (source_prefix + '/Tutorials/%s.ipynb', ''),
    # CNTK Wiki has moved to a new site:
    'cntkwiki': ('https://docs.microsoft.com/en-us/cognitive-toolkit/%s', 'CNTK Doc - ')
}

# sphinx.ext.napoleon options
napoleon_google_docstring = True
Пример #2
0

linkcheck_anchors_ignore = [
    # Important: Github Wiki anchors (for sections refs) yield errors in
    # link-checking and need to be manually checked. Current exception to make
    # the build pass are listed here:
    re_exact_match('21-data-parallel-training-with-1-bit-sgd'),
    re_exact_match('22-block-momentum-sgd'),
    re_exact_match(
        'converting-learning-rate-and-momentum-parameters-from-other-toolkits'
    ),
    re_exact_match('for-python'),
]

source_prefix = 'https://github.com/Microsoft/CNTK/blob/'
if module_is_unreleased():
    source_prefix += 'master'
else:
    # TODO temporary
    source_prefix += 'v%s' % (cntk.__version__.replace("rc", ".rc"))

# sphinx.ext.extlinks options
extlinks = {
    'cntk': (source_prefix + '/%s', ''),
    'cntktut': (source_prefix + '/Tutorials/%s.ipynb', ''),
    'cntkwiki': ('https://github.com/Microsoft/CNTK/wiki/%s', 'CNTK Wiki - ')
}

# sphinx.ext.napoleon options
napoleon_google_docstring = True
napoleon_numpy_docstring = False