Skip to content

Commit 53f2e8e

Browse files
committed
lora: Remove tensor->name check which is never NULL
1 parent 4a5ee2f commit 53f2e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-lora-training.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ struct llama_adapter_lora * llama_lora_training_init(
290290
bool llama_opt_param_filter_lora(const struct ggml_tensor * tensor, void * userdata) {
291291
(void) userdata; // Unused param
292292

293-
if (!tensor || !tensor->name) {
293+
if (!tensor) {
294294
return false;
295295
}
296296

0 commit comments

Comments
 (0)