def encoder(input_, hps, n_scale, use_batch_norm=True, weight_norm=True, train=True):
 res = input_
 log_diff = tf.zeros_like(input_)
 (res, inc_log_diff) = rec_masked_conv_coupling(input_=res, hps=hps, scale_idx=0, n_scale=n_scale, use_batch_norm=use_batch_norm, weight_norm=weight_norm, train=train)
 log_diff += inc_log_diff
 return (res, log_diff)

def encoder ( input_ , hps , n_scale , use_batch_norm = True , weight_norm = True , train = True ) : res = input_ log_diff = tf . zeros_like ( input_ ) ( res , inc_log_diff ) = rec_masked_conv_coupling ( input_ = res , hps = hps , scale_idx = 0 , n_scale = n_scale , use_batch_norm = use_batch_norm , weight_norm = weight_norm , train = train ) log_diff += inc_log_diff return ( res , log_diff )
encode the given c{unicode} string using the imap4 specific variation of utf-7 .