Skip to content

Commit

Permalink
adjust node names in projection test
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Sep 15, 2023
1 parent b851c23 commit 3137a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/tests/convert/diffusion/test_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ def test_unmatched_block(self):

def test_output_projection(self):
nodes = {
"output_block_proj_o.lora_down.weight": {},
"output_block_proj_out.lora_down.weight": {},
}
fixed = fix_xl_names(nodes, [
NodeProto(name="/up_blocks_proj_o/MatMul"),
NodeProto(name="/up_blocks_proj_out/MatMul"),
])

self.assertEqual(fixed, {
"up_blocks_proj_out": nodes["output_block_proj_o.lora_down.weight"],
"up_blocks_proj_out": nodes["output_block_proj_out.lora_down.weight"],
})


Expand Down

0 comments on commit 3137a46

Please sign in to comment.