01 2023 档案
摘要:from scapy.all import * packet0 = rdpcap('G:/testcic/input/ubuntu_chrome_discord_7.pcap') import os #读取dir_path目录下的文件dir_path = r'G:/testcic/input/'fi
阅读全文
摘要:pytorch中,出现的错误: return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing) expected
阅读全文
摘要:# !pip install matplotlib==3.0.0 import matplotlib.pyplot as plt z = [] # 生成数据 for i in range(50): z.append(random.randint(-100, 100)) plt.title('hell
阅读全文
摘要:torch.utils.data.TensorDataset 这个类可以初始化数据集 例子: import torch from torch.utils import data # torch.utils.data.dataset 类的使用 x = torch.arange(12, dtype=to
阅读全文