Yahoo Search Búsqueda en la Web

Resultado de búsqueda

  1. Hace 3 días · How to create a tensor based on another one - PyTorch Forums. VictorVidigal (Victor Vidigal Ribeiro) May 10, 2024, 1:53pm 1. I’m studying IA using PyTorch and implementing some toy examples. First, I created a one-dimensional tensor (X) and a second tensor (y), derived from the first one: X = torch.arange(0, 100, 1.0).unsqueeze(dim=1)

  2. Hace 1 día · While experimenting with PyTorch for neural network training, we encounter a choice: Should we load data in batches using PyTorch's DataLoader, or should we input the entire dataset at once directl...

  3. Hace 6 días · import torch import numpy as np data = np.arange(0, 100, 1) def shift_data(window_size, data): x = [] y = [] for i in range(len(data) - window_size): x.append(data[i:i+window_size]) y.append(data[i+window_size]) return np.array(x), np.array(y) x, y = shift_data(10, data) class dataset(torch.utils.data.Dataset): def __init__(self, x ...

  4. Hace 2 días · PyTorch version: 2.3.0+cu121 Is debug build: False CUDA used to build PyTorch: 12.1 ROCM used to build PyTorch: N/A OS: Ubuntu 22.04.2 LTS (x86_64) GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Clang version: Could not collect CMake version: version 3.29.2 Libc version: glibc-2.35 Python version: 3.11.9 (main, Apr 19 2024, 16:48:06) [GCC 11.2.0] (64-bit runtime) Python platform: Linux-5. ...

  5. Hace 5 horas · 简洁版都是降维展开操作不同在于numpyndarray.flattenndarray.flattenndarray.flatten只能返回一维数组参数是字符串可设置按行或按列 - 学新通技术网

  6. Hace 1 día · 卷积神经网络(Convolutional Neural Networks,简称CNN)是一种特殊类型的神经网络,特别适合于处理具有网格结构的数据,如图像和视频。. CNN的设计灵感来源于生物视觉系统,特别是大脑视觉皮层对视觉信息的处理方式。. 关键组件:. 卷积层(Convolutional Layer) :这 ...

  7. Hace 3 días · 可以使用numpy中的`numpy.newaxis`或`numpy.expand_dims`函数来增加维度。 `numpy.newaxis`可以在数组中插入一个新的轴,从而增加数组的维度。例如,对于一个一维数组,可以使用`arr[:, np.newaxis]`将其转换为二维数组。 `numpy.expand_dims`函数也可以在指定的轴上增加新维度。