Register a callback function to be invoked when deserializing a user- defined function with the corresponding op name.

register_udf_deserialize_callback(op_name, callback)

Arguments

callback

Details

When loading a model, CNTK will try to automatically reconstruct any (non-native) user-defined functions by invoking a static deserialize() method of the corresponding UserFunction sub-class. This method allows to override default UDF deserialization behavior by specifying a user- defined function op name and the corresponding callback that should be invoked instead of the deserialize method.