Skip to content

Commit f89fdb7

Browse files
committed
Moved function in class definition
1 parent 21915e2 commit f89fdb7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,11 @@ struct vk_matmul_pipeline_struct {
146146
vk_pipeline l, m, s;
147147
vk_pipeline a_l, a_m, a_s;
148148
// Returns true when all member pipelines are null
149-
bool is_empty() const;
149+
bool is_empty() const {
150+
return l == nullptr && m == nullptr && s == nullptr &&
151+
a_l == nullptr && a_m == nullptr && a_s == nullptr;
152+
}
150153
};
151-
152-
bool vk_matmul_pipeline_struct::is_empty() const {
153-
return l == nullptr && m == nullptr && s == nullptr &&
154-
a_l == nullptr && a_m == nullptr && a_s == nullptr;
155-
}
156-
157154
typedef std::shared_ptr<vk_matmul_pipeline_struct> vk_matmul_pipeline;
158155

159156
struct vk_matmul_pipeline2 {

0 commit comments

Comments
 (0)