pytorch / 1 / generated / torch.quantization.default_eval_fn.html

default_eval_fn

class torch.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/1.13/generated/torch.quantization.default_eval_fn.html