File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -3000,8 +3000,6 @@ def inplace_abn(input,
30003000 'inplace_abn')
30013001 dtype = helper.input_dtype()
30023002
3003- if core.is_compiled_with_rocm():
3004- dtype = 'float32'
30053003 input_shape = input.shape
30063004 if data_layout == 'NCHW':
30073005 channel_num = input_shape[1]
Original file line number Diff line number Diff line change @@ -265,10 +265,9 @@ def grid_sample(x,
265265
266266 cudnn_version = get_cudnn_version ()
267267 use_cudnn = False
268- if (
268+ if not core . is_compiled_with_rocm () and (
269269 cudnn_version is not None
270- ) and align_corners and mode == 'bilinear' and padding_mode == 'zeros' and not core .is_compiled_with_rocm (
271- ):
270+ ) and align_corners and mode == 'bilinear' and padding_mode == 'zeros' :
272271 use_cudnn = True
273272 # CUDNN always computes gradients for all inputs
274273 x .stop_gradient = False
You can’t perform that action at this time.
0 commit comments