added new Tensor APIs