文件编辑列表允许1000字符

This commit is contained in:
weiweiw 2025-01-14 16:17:38 +08:00
parent 8a4cc0527e
commit 889e54fe12
2 changed files with 20 additions and 0 deletions

18
cudatest.py Normal file
View File

@ -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.")

View File

@ -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",