Exemplo n.º 1
0
 def get_config(self):
     base_config = Layer.get_config(self)
     config = {'sphereCoords': self.sphereCoords,
               'vec_start': self.vec_start,
               'weight_output' : self.weight_output}
     
     return dict(list(base_config.items()) + list(config.items()))
Exemplo n.º 2
0
 def get_config(self):
     base_config = Layer.get_config(self)
     config = {
         'std_stats': self.std_stats,
         'take_particles': self.take_particles,
         'take_HLF': self.take_HLF
     }
     return dict(list(base_config.items()) + list(config.items()))
Exemplo n.º 3
0
 def get_config(self):
     config = {
         'rep': self.rep,
         'axis': self.axis,
         'batch_size': self.batch_size
     }
     base_config = Layer.get_config(self)
     # dict.items() will return a set-like object
     return dict(base_config.items() | config.items())
Exemplo n.º 4
0
    def get_config(self):
        base_config = Layer.get_config(self)
        config = {'split_str': self.split_str}
        return dict(list(base_config.items()) + list(config.items()))


# s = Slice("[:2 ,3:4 ,1 , 25:, 0:10:2]")
# out = s.get_output_shape_for((100,5,3, 50, 50,50))
# print(out)
Exemplo n.º 5
0
 def get_config(self):
     base_config = Layer.get_config(self)
     config = {
         'attention_width': self.attention_width,
         'implementation': self.implementation,
         'seq_len': self.seq_len,
         'sparsity_coeff': self.sparsity_coeff
     }
     return dict(list(base_config.items()) + list(config.items()))
Exemplo n.º 6
0
 def get_config(self):
     base_config = Layer.get_config(self)
     config = {'seq_len': self.seq_len}
     return dict(list(base_config.items()) + list(config.items()))
Exemplo n.º 7
0
 def get_config(self):
     base_config = Layer.get_config(self)
     config = {'mapping': self.mapping_name,
               'initial_beta': self.initial_beta,
               'nb_out': self.nb_out}
     return dict(list(base_config.items()) + list(config.items()))