def build_image_encoder(tparams, options):
 opt_ret = dict()
 trng = RandomStreams(1234)
 im = tensor.matrix('im', dtype='float32')
 images = get_layer('ff')[1](tparams, im, options, prefix='ff_image', activ='linear')
 images = l2norm(images)
 return (trng, [im], images)

def build_image_encoder ( tparams , options ) : opt_ret = dict ( ) trng = RandomStreams ( 1234 ) im = tensor . matrix ( 'im' , dtype = 'float32' ) images = get_layer ( 'ff' ) [ 1 ] ( tparams , im , options , prefix = 'ff_image' , activ = 'linear' ) images = l2norm ( images ) return ( trng , [ im ] , images )
encoder only .