Weak Galerkin finite element method for a class of time fractional generalized Burgers' equation