def METHOD_NAME(self, ray_samples: RaySamples, compute_normals: bool = False):
    """Evaluates the field at points along the ray.
    Args:
        ray_samples: Samples to evaluate field on.
    """
    if compute_normals:
        with torch.enable_grad():
            density, density_embedding = self.get_density(ray_samples)
    else:
        density, density_embedding = self.get_density(ray_samples)
    field_outputs = self.get_outputs(ray_samples, density_embedding=density_embedding)
    field_outputs[FieldHeadNames.DENSITY] = density  # type: ignore
    if compute_normals:
        with torch.enable_grad():
            normals = self.get_normals()
        field_outputs[FieldHeadNames.NORMALS] = normals  # type: ignore
    return field_outputs