Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions python/paddle/nn/quant/quantized_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from paddle.base.data_feeder import check_dtype
from paddle.device import (
is_compiled_with_cuda,
is_compiled_with_rocm,
)
from paddle.device.cuda import get_device_capability
from paddle.framework import (
Expand All @@ -43,7 +42,7 @@

def _get_arch_info():
# Get SMVersion from device.
if is_compiled_with_cuda() or is_compiled_with_rocm():
if is_compiled_with_cuda():
cuda_version = paddle.version.cuda()
if (
cuda_version is not None and cuda_version != 'False'
Expand Down
Loading