-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlay_wrapper.m
More file actions
26 lines (21 loc) · 764 Bytes
/
lay_wrapper.m
File metadata and controls
26 lines (21 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
classdef lay_wrapper
%LAY_WRAPPER Summary of this class goes here
% Detailed explanation goes here
properties
layer
end
methods
function obj = lay_wrapper(layer)%This is the dumbest fucking thing ive ever done. Fuck this langauge
obj.layer = layer;
end
function x = lw_forward(obj,x)
x = lay_forward(obj.layer, x);
end
function obj = lw_backward_mul(obj, update_fxn, running_grad)
obj.layer = lay_backward_mul(obj.layer, update_fxn, running_grad);
end
function obj = lw_backward_add(obj, update_fxn, running_grad)
obj.layer = lay_backward_add(obj.layer, update_fxn, running_grad);
end
end
end