Make sure tensor declaration passes compilation