W3cubDocs

/PyTorch 2.9

default_eval_fn

class torch.ao.quantization.default_eval_fn(model, calib_data) [source]

Define the default evaluation function.

Default evaluation function takes a torch.utils.data.Dataset or a list of input Tensors and run the model on the dataset

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.ao.quantization.default_eval_fn.html