T in (tensor(double), tensor(float), tensor(float16)) : Constrain input and output types to float or half tensors.