GPU-accelerated library for tensor contraction