-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuartnetBlock.h
46 lines (37 loc) · 946 Bytes
/
QuartnetBlock.h
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
//#pragma once
#include <flashlight/flashlight.h>
#include <string>
#include <vector>
#include <iostream>
//namespace w2l {
class QuartznetBlock : public fl::Container {
public:
bool residual = true;
// fl::Sequential convList;
explicit QuartznetBlock(
int inChannels,
int outChannels,
int repeat,
int kernelSize,
int stride,
int dilation,
double dropout,
bool residual,
bool separabel,
std::string residualMode,
bool lNormIncludeTime);
std::vector<fl::Variable> forward(const std::vector<fl::Variable>& inputs) override;
std::string prettyString() const override;
fl::Sequential getConvNormLayer(
int inChannels,
int outChannels,
int kernelSize,
int stride,
int dilation,
int padding,
bool separable,
bool normIncludeTime);
fl::Sequential getActivationAndDropoutLayer(double dropOut);
// fl::Module getConvLayer();
};
//}