cntk.contrib.crosstalk.crosstalk_cntk module

class CNTKCrosstalk[source]

Bases: cntk.contrib.crosstalk.Crosstalk

CNTK implementation for crosstalk

is_param(name)[source]

Check if var with name is a parameter

Parameters:name (str) – Variable name to check
load_all_params()[source]

Load all parameters from files in working directory

save_all_params()[source]

Save all parameters to files in working directory

set_data(data)[source]

Set mapped data for variable evaluation

Parameters:data – The input data as arguments parameter in eval()
find_func_param(func, name=None, shape=None, allow_not_found=False)[source]

Find a single parameter in a function by name or by shape when the function has multiple parameters. If the function only has one parameter it’s directly returned.

Parameters:
  • func (Function) – The function to search parameter for
  • name (string) – The name of the parameter
  • shape (tuple) – The shape of the parameter
  • allow_not_found (bool) – Set to True to avoid raise exception when not found
Returns:

The Parameter that is found