Ejemplo n.º 1
0
    def get_noisefree_tile(self, out_size, in_size):
        """Return a tile of the specified dimensions with noisiness turned off."""
        rpu_config = None

        if 'FloatingPoint' not in self.parameter:
            rpu_config = SingleRPUConfig(
                forward=IOParameters(is_perfect=True),
                backward=IOParameters(is_perfect=True),
                device=IdealDevice())

        python_tile = self.get_tile(out_size, in_size, rpu_config)
        self.set_init_weights(python_tile)

        return python_tile
Ejemplo n.º 2
0
 def get_rpu_config(self):
     rpu_config = SingleRPUConfig(device=IdealDevice())
     rpu_config.forward.is_perfect = True
     rpu_config.backward.is_perfect = True
     return rpu_config
Ejemplo n.º 3
0
 def get_rpu_config(self):
     return SingleRPUConfig(device=IdealDevice())