[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.estimator.experimental.call_logit_fn\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/estimator/tree/master/tensorflow_estimator/python/estimator/model_fn.py#L562-L607) |\n\nCalls logit_fn (experimental). (deprecated)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n\\`tf.compat.v1.estimator.experimental.call_logit_fn\\`\n\n\u003cbr /\u003e\n\n tf.estimator.experimental.call_logit_fn(\n logit_fn, features, mode, params, config\n )\n\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.keras instead.\n\nTHIS FUNCTION IS EXPERIMENTAL. Keras layers/models are the recommended APIs\nfor logit and model composition.\n\nA utility function that calls the provided logit_fn with the relevant subset\nof provided arguments. Similar to tf.estimator._call_model_fn().\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|----------------------------------|\n| `logit_fn` | A logit_fn as defined above. |\n| `features` | The features dict. |\n| `mode` | TRAIN / EVAL / PREDICT ModeKeys. |\n| `params` | The hyperparameter dict. |\n| `config` | The configuration object. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A logit Tensor, the output of logit_fn. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|----------------------------------------------------------------------------------|\n| `ValueError` | if logit_fn does not return a Tensor or a dictionary mapping strings to Tensors. |\n\n\u003cbr /\u003e"]]