Skip to content

Commit 0492bdc

Browse files
committed
vulkan : clean whitespaces (#0)
ggml-ci
1 parent d3eb1ae commit 0492bdc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ static vk_op_unary_push_constants vk_op_unary_push_constants_init(const ggml_ten
721721
p.nb11 = (uint32_t)(dst->nb[1] / dst_tsize);
722722
p.nb12 = (uint32_t)(dst->nb[2] / dst_tsize);
723723
p.nb13 = (uint32_t)(dst->nb[3] / dst_tsize);
724-
724+
725725
return p; // fastdiv values and offsets are initialized later in ggml_vk_op
726726
}
727727

ggml/src/ggml-vulkan/vulkan-shaders/upscale.comp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ float fetch_bilinear(ivec2 c0, ivec2 c1, vec2 d, uint i12, uint i13) {
4242
const float v10 = data_a[base + c1.y * p.nb01 + c0.x * p.nb00];
4343
const float v11 = data_a[base + c1.y * p.nb01 + c1.x * p.nb00];
4444

45-
return
45+
return
4646
v00 * (1.0-d.x) * (1.0-d.y) +
4747
v01 * d.x * (1.0-d.y) +
4848
v10 * (1.0-d.x) * d.y +
@@ -57,7 +57,7 @@ float interpolate_bilinear(uint i10, uint i11, uint i12, uint i13) {
5757
const vec2 d = c - c0f;
5858
const ivec2 c0 = max(ivec2(c0f), 0);
5959
const ivec2 c1 = min(ivec2(c0f + 1), ne0 - 1);
60-
60+
6161
return fetch_bilinear(c0, c1, d, i12, i13);
6262
}
6363

0 commit comments

Comments
 (0)