original_docstring: convert PIL Image to torch.Tensor
  	
docstring: convert PIL Image to torch.Tensor
docstring_tokens: convert PIL Image to torch . Tensor
code: def load_pil(img):
  	'''convert PIL Image to torch.Tensor
  	'''
  	t = transforms.Compose([transforms.ToTensor(), transforms.Normalize(mean=(0.5,0.5,0.5),std=(0.5,0.5,0.5))])
  	return t(img).unsqueeze(0)
code_tokens: def load_pil ( img ) : t = transforms . Compose ( [ transforms . ToTensor ( ) , transforms . Normalize ( mean = ( 0.5 , 0.5 , 0.5 ) , std = ( 0.5 , 0.5 , 0.5 ) ) ] ) return t ( img ) . unsqueeze ( 0 )
short_docstring: convert PIL Image to torch.Tensor
short_docstring_tokens: convert PIL Image to torch . Tensor
comment: '''convert PIL Image to torch.Tensor
  	'''