diff --git a/predtuner/pipedbin.py b/predtuner/pipedbin.py index 069b42c0913c294240a1b2d6fa04f093611fb90a..b2bdbe548e9fca597a3c59bb539d0aebe867ac00 100644 --- a/predtuner/pipedbin.py +++ b/predtuner/pipedbin.py @@ -33,8 +33,10 @@ class PipedBinaryApp(ModeledApp): model_storage_folder: Optional[PathLike] = None, ): self.app_name = app_name - self.binary_path = Path(binary_path) - self.base_dir = self.binary_path.parent if base_dir is None else Path(base_dir) + self.binary_path = Path(binary_path).absolute() + self.base_dir = ( + self.binary_path.parent if base_dir is None else Path(base_dir).absolute() + ) metadata_file = Path(metadata_path) self.qos_file = self.base_dir / qos_relpath with metadata_file.open() as f: @@ -109,7 +111,7 @@ class PipedBinaryApp(ModeledApp): self, lambda conf: self._run_on_knobs(conf, False)[0], self._compute_accuracy, - p1_storage + p1_storage, ), QoSModelP2(self, p2_storage), ] @@ -260,7 +262,7 @@ class HPVMConfigBuilder: "maxpool": "pool_max", "linear": "mul", "avgpool": "pool_mean", - "depthwise_convolution": "group_conv" + "depthwise_convolution": "group_conv", } knob_name_to_range = {