From 590c9e465e2e95345b41ecbd74c9eb44bbf0f78a Mon Sep 17 00:00:00 2001 From: Carsten Schlote Date: Sun, 29 Sep 2024 23:03:08 +0200 Subject: [PATCH] Fix deprecations Removed deprecated override keywords for template functions. --- src/vectorflow/layers.d | 2 +- src/vectorflow/neurallayer.d | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vectorflow/layers.d b/src/vectorflow/layers.d index b42d1c6..aeb4123 100644 --- a/src/vectorflow/layers.d +++ b/src/vectorflow/layers.d @@ -473,7 +473,7 @@ class ReLU : NeuralLayer { } } - override void accumulate_grad(V)(V[] grad) + void accumulate_grad(V)(V[] grad) if ((is(V == float) || is(V == SparseF))) { ulong offset = 0; diff --git a/src/vectorflow/neurallayer.d b/src/vectorflow/neurallayer.d index e7eab5c..0ab8e34 100644 --- a/src/vectorflow/neurallayer.d +++ b/src/vectorflow/neurallayer.d @@ -240,10 +240,10 @@ abstract class InputLayer : NeuralLayer abstract override void predict(); - override void accumulate_grad(V)(V[] grad) pure + void accumulate_grad(V)(V[] grad) pure if ((is(V == float) || is(V == SparseF))) {} - override void backward_prop(V)(V[] grad) pure + void backward_prop(V)(V[] grad) pure if ((is(V == float) || is(V == SparseF))) {} override @property ulong num_params(){return 0;}