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
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