Rate this Page

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