parameters: (*size, local_device, tensor_properties: TensorProperties)
return_statement: return torch.empty(
          *size, dtype=dtype, layout=layout,
          device=local_device, requires_grad=requires_grad,
          memory_format=memory_format, pin_memory=pin_memory
      )
docstring: Helper to construct tensor from size, device and common params.
docstring_summary: Helper to construct tensor from size, device and common params.
docstring_tokens: Helper to construct tensor from size device and common params .
function: def _create_tensor_from_params(*size, local_device, tensor_properties: TensorProperties):
      """ Helper to construct tensor from size, device and common params. """
      dtype = tensor_properties.dtype
      layout = tensor_properties.layout
      requires_grad = tensor_properties.requires_grad
      memory_format = tensor_properties.memory_format
      pin_memory = tensor_properties.pin_memory
  
      return torch.empty(
          *size, dtype=dtype, layout=layout,
          device=local_device, requires_grad=requires_grad,
          memory_format=memory_format, pin_memory=pin_memory
      )
function_tokens: def _create_tensor_from_params ( * size , local_device , tensor_properties : TensorProperties ) : dtype = tensor_properties . dtype layout = tensor_properties . layout requires_grad = tensor_properties . requires_grad memory_format = tensor_properties . memory_format pin_memory = tensor_properties . pin_memory return torch . empty ( * size , dtype = dtype , layout = layout , device = local_device , requires_grad = requires_grad , memory_format = memory_format , pin_memory = pin_memory )