Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Open
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
7 changes: 0 additions & 7 deletions d2go/runner/default_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,6 @@ def prepare_fb_model(cfg: CfgNode, model: torch.nn.Module) -> torch.nn.Module:
return model


@fb_overwritable()
def prepare_fb_model_for_eval(cfg: CfgNode, model: torch.nn.Module) -> torch.nn.Module:
return model


class BaseRunner(object):
def __init__(self):
identifier = f"D2Go.Runner.{self.__class__.__name__}"
Expand Down Expand Up @@ -424,8 +419,6 @@ def _get_inference_dir_name(base_dir, inference_type, dataset_name):
)

attach_profilers(cfg, model)
if is_final:
prepare_fb_model_for_eval(cfg, model)

results = OrderedDict()
results[model_tag] = OrderedDict()
Expand Down