Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. [Pytorch函数].repeat()

[Pytorch函数].repeat()

  • Post author:xfxia
  • Post published:2023年9月30日
  • Post category:其他


import torch
x = torch.tensor([1, 2, 3])
print(x.repeat(4))
print("###################################")
print(x.repeat(4, 1))

运行结果如下:

在这里插入图片描述

import torch
x = torch.tensor([1, 2, 3])
print(x.repeat(4, 1))
print("###################################")
print(x.repeat(4, 2))

运行结果如下:

在这里插入图片描述

import torch
x = torch.tensor([1, 2, 3])
print(x.repeat(4, 1))
print("###################################")
print(x.repeat(4, 2, 1))

在这里插入图片描述


你可能也喜欢

np.newaxis作用

数据库连接错误: The provider did not return a ProviderManifestToken string.

dubbo整合springcloud实现RPC远程调用

PostgreSQL 列转行问题

关于访问后端接口报404的问题——全网最详细的404错误详解

阿里云简介

阿里巴巴制定了这 16 条设计规约!

VS2019直接编译cmake项目

angular4 nz-zorro table嵌套table

unity 手写板 截取游戏画面 识别手写文字 全家桶

下拉框动态获取数据库值:树形结构写法

c++——Unicode、UTF-8、UTF-16

使用任意循环语句(练习)

Spring 统一功能处理(拦截器)

10.使用 EventSource 实时获取消息数,用来角标显示数量

MAC 上搭建lua

对gitlab安全的一些思考

ThreadPool + CountDownLatch + Semaphore的使用,处理批量任务

公路车后轮编圈

大数据平台测试-git常用操作(白盒测试基础)

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单