From a4f80e1e411a361b58a6f64d5bf9d1a5c9d2f32e Mon Sep 17 00:00:00 2001 From: RazvanN7 Date: Tue, 27 Jun 2023 11:19:25 +0300 Subject: [PATCH] Delete override on templated methods --- 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;}