Skip to content

Commit

Permalink
[Bug] Fix error in merging
Browse files Browse the repository at this point in the history
  • Loading branch information
ephoris committed Sep 30, 2024
1 parent e2d57e1 commit 8daec8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endure/lcm/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def create_input_from_types(
out = one_hot_lcm_classic_distinct(data, categories, size_ratio, policy)
elif design.policy == Policy.KHybrid:
ks = [k - 1 if k > 0 else 0 for k in design.K]
inputs = wl + sys + [design.h, size_ratio] + ks
inputs = wl + sys + [design.h, size_ratio_idx] + ks
data = torch.Tensor(inputs)
num_feats = 1 + len(design.K)
out = one_hot_lcm(data, len(inputs), num_feats, categories)
Expand Down

0 comments on commit 8daec8f

Please sign in to comment.