cntk.default_options module

Default options of CNTK functions.

Usage:

  • with default_options():, and
  • with default_options_for():
default_options(**kwargs)[source]
default_options_for(functions, **kwargs)[source]
class default_override_or(value)[source]

Bases: object

get_default_override(function_or_class, **kwargs)[source]

Looks up an option default override. Meant to be used inside functions that use this facility.

Parameters:function

the function that calls this. For example:

def Convolution(args, init=default_override_or(glorot_uniform()), activation=default_override_or(identity), pad=default_override_or(False)):
init = _get_default_override(Convolution, init=init) # pass default under the same name
get_global_option(key, default_value)[source]
is_default_override(value)[source]
set_global_option(key, value)[source]