Skip to content

Commit b3b4dbe

Browse files
chyomin06fracape
authored andcommitted
[fix] datatype conversion on for image split inference
1 parent a58353c commit b3b4dbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compressai_vision/pipelines/split_inference/image_split_inference.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ def __call__(
119119
self.update_time_elapsed("nn_part_1", (time_measure() - start))
120120

121121
# datatype conversion
122-
# featureT["data"] = {k : v.type(getattr(torch, self.datatype)) for k, v in featureT["data"].items()}
123-
122+
featureT["data"] = {
123+
k: v.type(getattr(torch, self.datatype))
124+
for k, v in featureT["data"].items()
125+
}
124126
featureT["org_input_size"] = org_img_size
125127

126128
start = time_measure()

0 commit comments

Comments
 (0)