-
Notifications
You must be signed in to change notification settings - Fork 19
/
trans_basic.m
47 lines (35 loc) · 1.04 KB
/
trans_basic.m
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
classdef trans_basic
%TRANS_BASIC Summary of this class goes here
% Detailed explanation goes here
properties
szs_in;
% [a,b,c]. size of a single input map (for just one instance)
szs_out;
% [aa,bb,cc]. size of a single output map (for just one instance)
is_tr;
% [1]. Logical. Ture if training, false if testing
end
methods
function obj = trans_basic()
obj.is_tr = true;
end
function [obj, data_o] = ff(obj, data_i, data_o)
error('Should not be called in a base class!\n');
end
function data_in = deriv_input(obj, data_in, data_out)
error('Should not be called in a base class!\n');
end
function obj = deriv_param(obj, data_in, data_out)
end
function obj = update_param(obj, t)
% Update parameter
% Do nothing here
% Input:
% t: [1]. epoch count
end
function obj = init_param(obj, szs_in_)
% szs_in_: [Hi,Wi,Mi, N].
error('Should not be called in a base class!\n');
end
end
end