# tinker.types.CustomLossInput *Generated from tinker 0.38.0 at commit [`4fb85c7`](https://github.com/thinking-machines-lab/tinker/tree/4fb85c7a2be46300f340cedd16ef2fab881c0c38). Source links point at that snapshot.* ## *class* [**tinker.types.CustomLossInput**](https://github.com/thinking-machines-lab/tinker/blob/4fb85c7a2be46300f340cedd16ef2fab881c0c38/src/tinker/types/custom_loss_input.py#L11)(*[StrictBase](https://github.com/thinking-machines-lab/tinker/blob/4fb85c7a2be46300f340cedd16ef2fab881c0c38/src/tinker/_models.py#L76)*) One input of a custom loss, with the rank every datum's value has. **Fields:** - [**name**](https://github.com/thinking-machines-lab/tinker/blob/4fb85c7a2be46300f340cedd16ef2fab881c0c38/src/tinker/types/custom_loss_input.py#L14) (*str*) – `logprobs`, or the `loss_fn_inputs` key the loss reads. - [**rank**](https://github.com/thinking-machines-lab/tinker/blob/4fb85c7a2be46300f340cedd16ef2fab881c0c38/src/tinker/types/custom_loss_input.py#L17) (*[CustomLossInputRank](https://github.com/thinking-machines-lab/tinker/blob/4fb85c7a2be46300f340cedd16ef2fab881c0c38/src/tinker/types/custom_loss_input.py#L7)*) ## Referenced by - [tinker.types.CreateCustomLossRequest](https://tinker-docs.thinkingmachines.ai/tinker/api-reference/types/createcustomlossrequest/index.md)