Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tftrt/examples/image-classification/image_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def after_run(self, run_context, run_values):
self.batch_size / self.iter_times[-1]))

def run(frozen_graph, model, data_files, batch_size,
num_iterations, num_warmup_iterations, use_synthetic, display_every=100, run_calibration=False):
num_iterations, num_warmup_iterations, use_synthetic=False, display_every=100, run_calibration=False):
"""Evaluates a frozen graph

This function evaluates a graph on the ImageNet validation set.
Expand Down Expand Up @@ -489,7 +489,7 @@ def get_frozen_graph(
print('Calibrating INT8...')
start_time = time.time()
run(calib_graph, model, calib_files, batch_size,
num_calib_inputs // batch_size, 0, False, run_calibration=True)
num_calib_inputs // batch_size, 0, use_synthetic=use_synthetic, run_calibration=True)
times['trt_calibration'] = time.time() - start_time

start_time = time.time()
Expand Down