Skip to content

Commit

Permalink
More robust test.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Aug 29, 2023
1 parent e549b59 commit 40d542e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candle-examples/examples/stable-diffusion/attention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl AttentionBlock {
let num_heads = channels / num_head_channels;
let group_norm =
nn::group_norm(config.num_groups, channels, config.eps, vs.pp("group_norm"))?;
let (q_path, k_path, v_path, out_path) = if vs.dtype() == DType::F16 {
let (q_path, k_path, v_path, out_path) = if vs.contains_tensor("to_q.weight") {
("to_q", "to_k", "to_v", "to_out.0")
} else {
("query", "key", "value", "proj_attn")
Expand Down

0 comments on commit 40d542e

Please sign in to comment.