Skip to content
Snippets Groups Projects
Commit 1af19c83 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Fixed absolute path problem

parent e51606a4
No related branches found
No related tags found
No related merge requests found
......@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment