Skip to content

Commit da442bd

Browse files
committed
[fix] device type = dict for nn_parts
1 parent ca88ccc commit da442bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compressai_vision/config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ def create_evaluator(
127127
)
128128

129129

130-
def create_pipline(conf: DictConfig, device: str):
130+
def create_pipline(conf: DictConfig, device: DictConfig):
131131
if conf.type == "":
132132
pipeline_type = conf.name
133133
else:
134134
pipeline_type = conf.type + "-" + conf.name
135135

136-
return PIPELINES[pipeline_type](dict(conf), device)
136+
return PIPELINES[pipeline_type](dict(conf), dict(device))
137137

138138

139139
def create_codec(conf: DictConfig, vision_model: nn.Module, dataset: DictConfig):

0 commit comments

Comments
 (0)