Module: CNTK::Initializer

Defined in:
lib/cntk/initializer.rb

Class Method Summary collapse

Class Method Details

.bilinear(kernel_width, kernel_height) ⇒ Object



55
56
57
# File 'lib/cntk/initializer.rb', line 55

def bilinear(kernel_width, kernel_height)
  CNTK.__bilinear_initializer__(kernel_width, kernel_height)
end

.constantObject



5
6
7
# File 'lib/cntk/initializer.rb', line 5

def constant
  CNTK.__constant_initializer__
end

.glorot_normal(scale = CNTK.DefaultParamInitScale, output_rank: CNTK.SentinelValueForInferParamInitRank, filter_rank: CNTK.SentinelValueForInferParamInitRank, seed: CNTK.SentinelValueForAutoSelectRandomSeed) ⇒ Object



27
28
29
30
31
32
# File 'lib/cntk/initializer.rb', line 27

def glorot_normal(scale = CNTK.DefaultParamInitScale,
                  output_rank: CNTK.SentinelValueForInferParamInitRank,
                  filter_rank: CNTK.SentinelValueForInferParamInitRank,
                  seed:        CNTK.SentinelValueForAutoSelectRandomSeed)
  CNTK.__glorot_normal_initializer__(scale, output_rank, filter_rank, seed)
end

.glorot_uniform(scale = CNTK.DefaultParamInitScale, output_rank: CNTK.SentinelValueForInferParamInitRank, filter_rank: CNTK.SentinelValueForInferParamInitRank, seed: CNTK.SentinelValueForAutoSelectRandomSeed) ⇒ Object



20
21
22
23
24
25
# File 'lib/cntk/initializer.rb', line 20

def glorot_uniform(scale = CNTK.DefaultParamInitScale,
                   output_rank: CNTK.SentinelValueForInferParamInitRank,
                   filter_rank: CNTK.SentinelValueForInferParamInitRank,
                   seed:        CNTK.SentinelValueForAutoSelectRandomSeed)
  CNTK.__glorot_uniform_initializer__(scale, output_rank, filter_rank, seed)
end

.he_normal(scale = CNTK.DefaultParamInitScale, output_rank: CNTK.SentinelValueForInferParamInitRank, filter_rank: CNTK.SentinelValueForInferParamInitRank, seed: CNTK.SentinelValueForAutoSelectRandomSeed) ⇒ Object



48
49
50
51
52
53
# File 'lib/cntk/initializer.rb', line 48

def he_normal(scale = CNTK.DefaultParamInitScale,
              output_rank: CNTK.SentinelValueForInferParamInitRank,
              filter_rank: CNTK.SentinelValueForInferParamInitRank,
              seed:        CNTK.SentinelValueForAutoSelectRandomSeed)
  CNTK.__he_normal_initializer__(scale, output_rank, filter_rank, seed)
end

.he_uniform(scale = CNTK.DefaultParamInitScale, output_rank: CNTK.SentinelValueForInferParamInitRank, filter_rank: CNTK.SentinelValueForInferParamInitRank, seed: CNTK.SentinelValueForAutoSelectRandomSeed) ⇒ Object



41
42
43
44
45
46
# File 'lib/cntk/initializer.rb', line 41

def he_uniform(scale = CNTK.DefaultParamInitScale,
               output_rank: CNTK.SentinelValueForInferParamInitRank,
               filter_rank: CNTK.SentinelValueForInferParamInitRank,
               seed:        CNTK.SentinelValueForAutoSelectRandomSeed)
  CNTK.__he_uniform_initializer__(scale, output_rank, filter_rank, seed)
end

.initializer_with_rank(initializer, output_rank: CNTK.SentinelValueForInferParamInitRank, filter_rank: CNTK.SentinelValueForInferParamInitRank) ⇒ Object



59
60
61
62
63
# File 'lib/cntk/initializer.rb', line 59

def initializer_with_rank(initializer,
                          output_rank: CNTK.SentinelValueForInferParamInitRank,
                          filter_rank: CNTK.SentinelValueForInferParamInitRank)
  CNTK.__random_initializer_with_rank__(initializer, output_rank, filter_rank)
end

.normal(scale, output_rank: CNTK.SentinelValueForInferParamInitRank, filter_rank: CNTK.SentinelValueForInferParamInitRank, seed: CNTK.SentinelValueForAutoSelectRandomSeed) ⇒ Object



13
14
15
16
17
18
# File 'lib/cntk/initializer.rb', line 13

def normal(scale,
           output_rank: CNTK.SentinelValueForInferParamInitRank,
           filter_rank: CNTK.SentinelValueForInferParamInitRank,
           seed:        CNTK.SentinelValueForAutoSelectRandomSeed)
  CNTK.__normal_initializer__(scale, output_rank, filter_rank, seed)
end

.uniform(scale, seed = CNTK.SentinelValueForAutoSelectRandomSeed) ⇒ Object



9
10
11
# File 'lib/cntk/initializer.rb', line 9

def uniform(scale, seed = CNTK.SentinelValueForAutoSelectRandomSeed)
    CNTK.__uniform_initializer__(scale, seed)
end

.xavier(scale, output_rank: CNTK.SentinelValueForInferParamInitRank, filter_rank: CNTK.SentinelValueForInferParamInitRank, seed: CNTK.SentinelValueForAutoSelectRandomSeed) ⇒ Object



34
35
36
37
38
39
# File 'lib/cntk/initializer.rb', line 34

def xavier(scale,
           output_rank: CNTK.SentinelValueForInferParamInitRank,
           filter_rank: CNTK.SentinelValueForInferParamInitRank,
           seed:        CNTK.SentinelValueForAutoSelectRandomSeed)
  CNTK.__xavier_initializer__(scale, output_rank, filter_rank, seed)
end