文件编辑列表允许1000字符
This commit is contained in:
parent
8a4cc0527e
commit
889e54fe12
|
|
@ -0,0 +1,18 @@
|
|||
import torch
|
||||
|
||||
# 获取 PyTorch 版本
|
||||
pytorch_version = torch.__version__
|
||||
# 获取 CUDA 版本
|
||||
cuda_version = torch.version.cuda
|
||||
# 获取 cuDNN 版本
|
||||
cudnn_version = torch.backends.cudnn.version()
|
||||
|
||||
print(f"PyTorch 版本: {pytorch_version}")
|
||||
print(f"CUDA 版本: {cuda_version}")
|
||||
print(f"cuDNN 版本: {cudnn_version}")
|
||||
|
||||
# 检查是否可以访问 CUDA
|
||||
if torch.cuda.is_available():
|
||||
print("CUDA is available. GPU name:", torch.cuda.get_device_name(0))
|
||||
else:
|
||||
print("CUDA is not available. Please check your installation.")
|
||||
|
|
@ -397,6 +397,8 @@ def knowledge_base_page(api: ApiRequest, is_lite: bool = None):
|
|||
flex=1,
|
||||
cellEditor="agLargeTextCellEditor",
|
||||
cellEditorPopup=True,
|
||||
autoWidth=True,
|
||||
cellEditorParams= { "maxLength": 1000}
|
||||
)
|
||||
gb.configure_column(
|
||||
"to_del",
|
||||
|
|
|
|||
Loading…
Reference in New Issue