pytorch / 2 / generated / torch.ao.quantization.default_eval_fn.html

default_eval_fn

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

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

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