# tinker.types.CustomLossInput *Generated from tinker 0.40.0 at commit [`3e952a8`](https://github.com/thinking-machines-lab/tinker/tree/3e952a8b979654cacc9dc68aadeb50bc418036a7). Source links point at that snapshot.* ## *class* [**tinker.types.CustomLossInput**](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/custom_loss_input.py#L11)(*[StrictBase](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/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/3e952a8b979654cacc9dc68aadeb50bc418036a7/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/3e952a8b979654cacc9dc68aadeb50bc418036a7/src/tinker/types/custom_loss_input.py#L17) (*[CustomLossInputRank](https://github.com/thinking-machines-lab/tinker/blob/3e952a8b979654cacc9dc68aadeb50bc418036a7/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)