(self, d_ff, n_buckets, n_hashes=4, mode='train',
               kernel_initializer=init.GlorotUniformInitializer(),
               bias_initializer=init.RandomNormalInitializer(1e-6))
Returns a LSH feed-forward block.
Returns a LSH feed-forward block.
Returns a LSH feed - forward block .
def __init__(self, d_ff, n_buckets, n_hashes=4, mode='train',
               kernel_initializer=init.GlorotUniformInitializer(),
               bias_initializer=init.RandomNormalInitializer(1e-6)):
    """Returns a LSH feed-forward block."""
    super().__init__(name=f'LSHFF_{d_ff}')
    self._mode = mode
    self._d_ff = d_ff
    self._n_buckets = n_buckets
    self._n_hashes = n_hashes
    self._kernel_initializer = kernel_initializer
    self._bias_initializer = bias_initializer
def __init__ ( self , d_ff , n_buckets , n_hashes = 4 , mode = 'train' , kernel_initializer = init . GlorotUniformInitializer ( ) , bias_initializer = init . RandomNormalInitializer ( 1e-6 ) ) : super ( ) . __init__ ( name = f'LSHFF_{d_ff}' ) self . _mode = mode self . _d_ff = d_ff self . _n_buckets = n_buckets self . _n_hashes = n_hashes self . _kernel_initializer = kernel_initializer self . _bias_initializer = bias_initializer