Imported from https://github.com/linxi159/TCN