'Create additional optimizer state such as momentum.
Parameters
weight : NDArray
The weight data'

def create_state(self, index, weight):

    if (self.momentum == 0.0):
        return None
    else:
        return zeros(weight.shape, weight.context, dtype=weight.dtype)
