def register_free_parameters(self, *free_parameters):
        return self.free_parameters.extend(free_parameters)
Convert state to dictionary to save in task payload.
dataset/ETHPy150Open zomux/deepy/deepy/layers/layer.py/NeuralLayer.register_free_parameters--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/model.py/TransientShardState.to_dict