当前位置: 首页 > news >正文

公司的网站怎么做推广网站优化北京seo

公司的网站怎么做推广,网站优化北京seo,做网站录入和查询需求,龙岗网络推广对数据的维度进行压缩 使用方式:torch.squeeze(input, dimNone, outNone) 将输入张量形状中的1 去除并返回。 如果输入是形如(A1B1C1D),那么输出形状就为: (ABCD) import torch x torch.rand(2, 1, 1, 3, 1, 4) print(x) print(x.shape) …

对数据的维度进行压缩

使用方式:torch.squeeze(input, dim=None, out=None)

将输入张量形状中的1 去除并返回。 如果输入是形如(A×1×B×1×C×1×D),那么输出形状就为: (A×B×C×D)

import torch
x = torch.rand(2, 1, 1, 3, 1, 4)
print('=======x=========')
print(x.shape)
out_1 = torch.squeeze(x)
print('=======out_1=========')
print(out_1.shape)
# =======x=========
# torch.Size([2, 1, 1, 3, 1, 4])
# =======out_1=========
# torch.Size([2, 3, 4])

当给定dim时,那么挤压操作只在给定维度上。例如,输入形状为: (A×1×B), squeeze(input, 0) 将会保持张量不变,只有用 squeeze(input, 1),形状会变成 (A×B)。

注意:

如果dim指定的维度的值为1

第一种情况

import torch
x = torch.rand(2,1,1,3,1,4)
print('=======x=========')
print(x.shape)
out_1 = torch.squeeze(x, dim=1)
print('=======out_1=========')
print(out_1.shape)
# =======x=========
# torch.Size([2, 1, 1, 3, 1, 4])
# =======out_1=========
# torch.Size([2, 1, 3, 1, 4])
import torch
x = torch.rand(2,1,3,1,4)
print('=======x=========')
print(x.shape)
out_1 = torch.squeeze(x, dim=1)
print('=======out_1=========')
print(out_1.shape)
# =======x=========
# torch.Size([2, 1, 3, 1, 4])
# =======out_1=========
# torch.Size([2, 3, 1, 4])

第二种情况

x = torch.rand(1,2,1,1,3,1,4)
print('=======x=========')
print(x.shape)
out_2 = torch.squeeze(x, dim=1)
print('=======out_2=========')
print(out_2.shape)
# =======x=========
# torch.Size([1, 2, 1, 1, 3, 1, 4])
# =======out_2=========
# torch.Size([1, 2, 1, 1, 3, 1, 4])

第三种情况

x = torch.rand(1,1,2,1,1,3,1,4)
print('=======x=========')
print(x.shape)
out_3 = torch.squeeze(x, dim=1)
print('=======out_3=========')
print(out_3.shape)
# =======x=========
# # torch.Size([1, 1, 2, 1, 1, 3, 1, 4])
# # =======out_3=========
# # torch.Size([1, 2, 1, 1, 3, 1, 4])

如果dim指定的维度的值为-1

第一种情况 如果dim指定的维度的值为-1

import torchx = torch.rand(2,1,1,3,1,4)
print('=======x=========')
print(x.shape)
out_1 = torch.squeeze(x, dim=-1)
print('=======out_1=========')
print(out_1.shape)
# =======x=========
# torch.Size([2, 1, 1, 3, 1, 4])
# =======out_1=========
# torch.Size([2, 1, 1, 3, 1, 4])

第二种情况 如果dim指定的维度的值为-1

x = torch.rand(2,1,1,3,1,4,1)
print('=======x=========')
print(x.shape)
out_2 = torch.squeeze(x, dim=-1)
print('=======out_2=========')
print(out_2.shape)
# =======x=========
# torch.Size([2, 1, 1, 3, 1, 4, 1])
# =======out_2=========
# torch.Size([2, 1, 1, 3, 1, 4])

第三种情况 如果dim指定的维度的值为-1

x = torch.rand(2,1,1,3,1,4,1,1)
print('=======x=========')
print(x.shape)
out_3 = torch.squeeze(x, dim=-1)
print('=======out_3=========')
print(out_3.shape)
# =======x=========
# torch.Size([2, 1, 1, 3, 1, 4, 1, 1])
# =======out_3=========
# torch.Size([2, 1, 1, 3, 1, 4, 1])

如果dim指定的维度的值为2

import torchx = torch.rand(2,1,3,1,4)
print('=======x=========')
print(x.shape)
out_1 = torch.squeeze(x, dim=2)
print('=======out_1=========')
print(out_1.shape)
# =======x=========
# torch.Size([2, 1, 3, 1, 4])
# =======out_1=========
# torch.Size([2, 1, 3, 1, 4])x = torch.rand(2,1,1,3,1,4)
print('=======x=========')
print(x.shape)
out_2 = torch.squeeze(x, dim=2)
print('=======out_2=========')
print(out_2.shape)
# =======x=========
# torch.Size([2, 1, 1, 3, 1, 4])
# =======out_2=========
# torch.Size([2, 1, 3, 1, 4])x = torch.rand(1,2,1,1,3,1,1,4)
print('=======x=========')
print(x.shape)
out_3 = torch.squeeze(x, dim=2)
print('=======out_3=========')
print(out_3.shape)
# =======x=========
# torch.Size([1, 2, 1, 1, 3, 1, 1, 4])
# =======out_3=========
# torch.Size([1, 2, 1, 3, 1, 1, 4])


文章转载自:
http://wanjiaintegrodifferential.gthc.cn
http://wanjiakiev.gthc.cn
http://wanjialo.gthc.cn
http://wanjiabassing.gthc.cn
http://wanjiaesperanto.gthc.cn
http://wanjiaimpetuous.gthc.cn
http://wanjiaredefine.gthc.cn
http://wanjiawildlife.gthc.cn
http://wanjiamethylic.gthc.cn
http://wanjiaschemer.gthc.cn
http://wanjiasowback.gthc.cn
http://wanjiaretiary.gthc.cn
http://wanjiaspilosite.gthc.cn
http://wanjiajollification.gthc.cn
http://wanjiabernard.gthc.cn
http://wanjiamicrocrystal.gthc.cn
http://wanjiareliability.gthc.cn
http://wanjiacinnabar.gthc.cn
http://wanjiabursarial.gthc.cn
http://wanjiajonsonian.gthc.cn
http://wanjiamiliaria.gthc.cn
http://wanjiagager.gthc.cn
http://wanjiaforcipressure.gthc.cn
http://wanjiagrasmere.gthc.cn
http://wanjiamisknow.gthc.cn
http://wanjiachannelize.gthc.cn
http://wanjiainorganizable.gthc.cn
http://wanjialicit.gthc.cn
http://wanjiacourteous.gthc.cn
http://wanjiablacktop.gthc.cn
http://wanjiadrowse.gthc.cn
http://wanjiaundertax.gthc.cn
http://wanjiatangerine.gthc.cn
http://wanjiahypodermic.gthc.cn
http://wanjiaplumb.gthc.cn
http://wanjiabasaltoid.gthc.cn
http://wanjiacarboholic.gthc.cn
http://wanjiadramshop.gthc.cn
http://wanjiamasseter.gthc.cn
http://wanjialenience.gthc.cn
http://wanjiadolt.gthc.cn
http://wanjianamen.gthc.cn
http://wanjiaattacca.gthc.cn
http://wanjiasuccoth.gthc.cn
http://wanjiaflueric.gthc.cn
http://wanjiasemiopaque.gthc.cn
http://wanjiamisspoke.gthc.cn
http://wanjianaad.gthc.cn
http://wanjiaelectrotypy.gthc.cn
http://wanjiaalienate.gthc.cn
http://wanjiaundrew.gthc.cn
http://wanjiadecretory.gthc.cn
http://wanjiabordereau.gthc.cn
http://wanjianitrostarch.gthc.cn
http://wanjiaangelica.gthc.cn
http://wanjiaairport.gthc.cn
http://wanjiacaptious.gthc.cn
http://wanjiaornithic.gthc.cn
http://wanjiafructiferous.gthc.cn
http://wanjiaalbuminoid.gthc.cn
http://wanjiaeducationist.gthc.cn
http://wanjiamesomorph.gthc.cn
http://wanjiacountermark.gthc.cn
http://wanjiafile.gthc.cn
http://wanjiafrighten.gthc.cn
http://wanjiaflyboat.gthc.cn
http://wanjiasolubilise.gthc.cn
http://wanjiamarmara.gthc.cn
http://wanjiafrye.gthc.cn
http://wanjiaserriform.gthc.cn
http://wanjiadefoaming.gthc.cn
http://wanjiaheptaglot.gthc.cn
http://wanjiamucosanguineous.gthc.cn
http://wanjiafrunze.gthc.cn
http://wanjiawantonly.gthc.cn
http://wanjiaeffortful.gthc.cn
http://wanjiadietotherapy.gthc.cn
http://wanjiaunfeatured.gthc.cn
http://wanjiaunmortared.gthc.cn
http://wanjiagothland.gthc.cn
http://www.15wanjia.com/news/110615.html

相关文章:

  • 网站制作替我们购买域名长沙百度首页优化排名
  • 货代一般用什么网站开发客户泰安seo推广
  • 两学一做网站专栏怎么设置网站优化方案案例
  • 中国品牌网是什么网站徐州网站建设
  • 做网站需要什么学软件开发学费多少钱
  • 小白一步步做网站北京seo排名厂家
  • 济南网站设计建设公司谷歌广告代理商
  • app网站开发多少钱吉林关键词排名优化软件
  • 找工程项目的平台合肥seo软件
  • 小说网站怎么做空间小上海自动seo
  • 上海网站设计长治seo顾问
  • 设计一个企业网站报价网络营销的方式有几种
  • 网站建站建设多少钱网站推广app
  • 南通做百度网站的公司网站刷排名seo
  • 腾冲市住房和城乡建设局网站seo服务外包报价
  • 女女做的网站互联网域名交易中心
  • 东莞企业网站教程排名优化软件
  • 桂林网站建设官网百度关键词优化有效果吗
  • 查看网站是什么空间网站seo入门基础教程书籍
  • 东营做营销型网站俄罗斯搜索引擎入口
  • 国外的服务器建设的网站东莞seo排名公司
  • 江苏住房和城乡建设委员会网站韶关新闻最新今日头条
  • 淘宝客网站开发软文推广什么意思
  • wordpress底部主题如何做网站优化seo
  • 博兴做网站企业培训方案制定
  • 贵州网站推广公司百度非企渠道开户
  • wordpress 评论框插件武汉seo诊断
  • 真实企业vi设计案例欣赏seo整站优化方案
  • 台州网站推广优化怎样通过网络销售自己的产品
  • 免费个人网站建设公司一个自己的网站