otx.cli.utils.nncf# NNCF-related utils. Functions get_number_of_fakequantizers_in_xml(path_to_xml) Return number of FakeQuantize layers. is_checkpoint_nncf(path) Check if checkpoint is NNCF checkpoint. otx.cli.utils.nncf.get_number_of_fakequantizers_in_xml(path_to_xml: str) → int[source]# Return number of FakeQuantize layers. Return number of FakeQuantize layers in the model by parsing file without loading model. Parameters: path_to_xml (str) – Path to xml file. Returns: Number of FakeQuantize layers. Return type: int otx.cli.utils.nncf.is_checkpoint_nncf(path: str) → bool[source]# Check if checkpoint is NNCF checkpoint. The function uses metadata stored in a checkpoint to check if the checkpoint was the result of training of NNCF-compressed model.