Created by: hedaoyuan
Bug fix for sparse matrix multiplication (C = alpha * A * B + beta * C). If beta is zero, C does not have to be a valid input. Note: The layer.output_ alloc by reserveOutput may be not a vaild input.