Esempio n. 1
0
 def _output(cls, im, guide, coeffs):
     with tf.device('/gpu:0'):
         out = bilateral_slice_apply(coeffs,
                                     guide,
                                     im,
                                     has_offset=True,
                                     name='slice')
     return out
Esempio n. 2
0
 def _output(cls, im, guide, coeffs):
   with tf.device('/gpu:0'):
     out = bilateral_slice_apply(coeffs, guide, im, has_offset=True, name='slice')
   return out
Esempio n. 3
0
 def _output(cls, im, guide, coeffs):
   # Uncomment if build gpu version
   # with tf.device('/gpu:0'):
   out = bilateral_slice_apply(coeffs, guide, im, has_offset=True, name='slice')
   return out