ICode9

精准搜索请尝试: 精确搜索
  • Vision Transformer Pruning简记2021-12-26 16:34:16

    Vision Transformer Pruning简记 文章目录 Vision Transformer Pruning简记参考剪枝流程剪什么?怎么剪?回顾Transformer那么剪哪里?那么怎么剪? 实验部分作者的总结思考 参考 VIT 剪枝流程 稀疏正则训练剪枝,减去不重要的部分finetune微调 剪什么? 有关于稀疏训练虽然重要,但

  • 数据结构---06---数组---20205106009---郭睿玥2021-12-25 21:36:32

    /*郭睿玥第六次算法实验作业*/ /*实验原理 数组的顺序表示和实现 1.存在的主序问题 由于我们的内存是一维的线性结构,而数组是个多维的结构,则用一组连续存储单元存放 数组元素时就有个次序约定问题。因为我们是用C语言实现,所以我们默认都是使用行主序 (BASIC、COBOL、 PASCAL和

  • domino让没有权限进不编辑式2021-12-22 18:03:14

    Sub Querymodechange(Source As Notesuidocument, Continue As Variant) On Error Goto e Dim s As New NotesSession Dim tmpN1 As NotesName Dim tmpN2 As NotesName Set tmpN1=New NotesName(s.UserName) 'test If tmpN1.Common="Ad

  • uibot小作业:检测并输出在科创板审核网站无法搜索到有关公司的证券简称2021-12-19 23:31:28

    目录 知识点代码块 知识点 1、txt文件读取,分行遍历 2、浏览器调用 3、JS调用:获取对象及其文本 Tips:console测试JS;源代码中不含动态元素; 代码块 function(){ x=document.getElementById("zeroRecordDiv_stock_list") if (x!=null) {return x.textContent} else {return n

  • lua+torch equivalents of numpy functions2021-12-19 20:32:05

    文章目录 torch equivalents of numpy functionsTypesConstructorsOnes and zerosFrom existing dataNumerical RangesBuilding MatricesAttributesIndexingShape ManipulationItem selection and manipulationCalculationArithmetic and comparison operations torch

  • excel合并,批量把EXCEL文件放到同一个excel文件中,以不同Sheet页2021-12-19 14:58:56

    1.创建一个文件夹,放入要合并的excel文件   2.在单独创建一个空的excel文件,打开放入VB脚本 Sub Books2Sheets() '定义对话框变量 Dim fd As FileDialog Set fd = Application.FileDialog(msoFileDialogFilePicker) '新建一个工作簿 Dim newwb As Workbook Set

  • 2021SC@SDUSC基于人工智能的多肽药物分析问题(十三)2021-12-19 11:31:56

    基于人工智能的多肽药物分析问题(十三) 2021SC@SDUSC 1. 前言 代码分析已临近尾声了,目前还剩下e2e模式的预测代码,由于两种模式的代码存在部分重叠,所以接下来的代码可能会略过一些重复代码,特此声明 2. 代码分析 if __name__ == "__main__": args = get_args() FFDB=args

  • 从一个文件夹中的所有xlsx表中取数据整合2021-12-15 23:35:16

    文件夹中有多个工作簿: 工作簿的格式: 实现代码: Sub 周() Dim str As String Dim path As String Dim thisBookPath As String Dim wb As Workbook Dim i, count As Long Dim num, num1, num2 As Double i = 1 thisBookPath = ActiveWo

  • 标签平滑Label Smoothing Demo(附pytorch的NLLLoss(),gather())2021-12-14 10:05:07

    LabelSmoothing.py import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable # Wangleiofficial # https://github.com/pytorch/pytorch/issues/7455#issuecomment-720100742 class LabelSmoothingLoss(torch.nn.Module)

  • ValueError: shapes (3,3) and (0,) not aligned: 3 (dim 1)2021-12-13 23:59:03

    ValueError: shapes (3,3) and (0,) not aligned: 3 (dim 1) != 0 (dim 0) 参考:https://stackoverflow.com/questions/39608421/showing-valueerror-shapes-1-3-and-1-3-not-aligned-3-dim-1-1-dim-0 The column of the first matrix and the row of the second matrix shoul

  • torch.norm()2021-12-10 13:31:18

    求指定维度上的范数 torch.norm(input, p, dim, out=None,keepdim=False) → Tensor 函数参数 input (Tensor) – 输入张量 p (float) – 范数计算中的幂指数值 dim (int) – 缩减的维度,dim=0是对0维度上的一个向量求范数,返回结果数量等于其列的个数,也就是说有多少个0维度的向量,

  • PowerDesigner中使用name生成comment2021-12-08 12:03:38

    PowerDesigner生成数据库脚本时,code转换为数据库中表名及字段,如果将将PDM中的name(一般为中文名称)转换为comment,则生成数据库备注栏显示name(中文名称),方便程序员的使用。将name转化为comment,可使用以下脚本批量完成。 Option Explicit ValidationMode = True InteractiveMo

  • 界面控件DevExpress WinForm - MVVM命令讲解(二)2021-12-08 10:00:25

    获取工具下载 - DevExpress WinForm v21.2 带参数的命令 DevExpress MVVM框架接受public void方法的一个参数作为参数化命令,您可以使用此参数在 View 和 ViewModel 之间传递数据。 C#   //ViewModel public class ViewModelWithParametrizedCommand { public void DoSomething(o

  • 【预测模型-ELAMN预测】基于哈里斯鹰算法优化ELMAN神经网络实现数据回归预测matlab代码2021-12-05 09:59:36

    1 简介 风能,作为一种重要,有潜力,无污染,可再生、可持续的能源,已经成为全球发电最为迅速的能源之一,越来越受到世界各国的青睐。近年来,为缓解能源短缺问题,改善环境,实现经济乃至人类的可持续发展,世界各国纷纷大力发展风能资源。然而,在实际操作中,风能固有的波动性和间歇性

  • 【预测模型-ELAMN预测】基于哈里斯鹰算法优化ELMAN神经网络实现数据回归预测matlab代码2021-12-05 09:59:07

    1 简介 风能,作为一种重要,有潜力,无污染,可再生、可持续的能源,已经成为全球发电最为迅速的能源之一,越来越受到世界各国的青睐。近年来,为缓解能源短缺问题,改善环境,实现经济乃至人类的可持续发展,世界各国纷纷大力发展风能资源。然而,在实际操作中,风能固有的波动性和间歇性

  • Pytorch函数1 torch.max\ torch.min\ torch.squeeze\ torch.unsqueeze\ torch.rand \randn \randint2021-12-04 23:59:52

    1.torch.max(input)         输入input:任何形状的张量         输出:返回输入张量input中所有元素的最大值 。 import torch a = torch.randn((3,4,5)) b = torch.max(a) # 返回所有张量中的最大值 print(a) tensor([[[-0.5234, -2.3275, 1.8327, 0.53

  • 数据库的形式操作excel2021-12-02 23:01:52

    Function qh_len_arr(qh_array0) '计算数组的长度 作者:阙辉 2021.02.24 Dim qh_array Dim qh_array_l qh_array = qh_array0 qh_array_l = UBound(qh_array) - LBound(qh_array) + 1 qh_len_arr = qh_array_l End Function Function qh_excel_query(qh_strSQL0, _

  • pytorch model()[] 模型对象类型2021-12-02 10:01:35

    model = Model() model(input) 直接调用Model类中的forward(input)函数,因其实现了__call__ 举个例子 1 import math, random 2 import numpy as np 3 4 import torch 5 import torch.nn as nn 6 import torch.optim as optim 7 import torch.autograd as autograd

  • 飞蛾扑火优化算法python代码实现2021-11-30 19:34:21

    # Moth-flame optimization algorithm import random as rd from math import exp, cos, pi from copy import deepcopy import sys import numpy as np half=0.4999999 def ini(SearchAgents_no,dim,ub,lb): population, fitness = [], [] Boundary_no= ub /dim

  • ug二次开发 vb.net nx19802021-11-30 17:00:07

    1.特征体属性 1 Option Strict Off 2 3 Imports NXOpen 4 Imports NXOpen.UF 5 Imports NXOpen.UF.UFAttr 6 7 8 Module Module1 9 10 11 Sub Main() 12 13 14 Dim theSession As Session = Session.GetSession() 15 Dim ufs

  • Pytorch学习2021-11-30 10:59:34

    Pytorch学习 -- 深度学习 一级目录二级目录三级目录 一级目录 二级目录 三级目录 Pytorch必须在init初始化网络结构 forward中做feed forward网络的前馈 创建网络结构代码 待更新知识点学习: 张量tensor的各种操作.argmax() add() 等等 linknn.module 父类nn.Sequential

  • 分布式机器学习常用数据集2021-11-28 12:32:40

    今天开始跑分布式机器学习论文实验了,这里介绍一下论文的常用数据集(因为我的研究领域是分布式机器学习,所以下面列出的数据集可能偏向这方面,做其他方向的童鞋参考下就好)。 1. CV数据集 (1)FEMINIST 任务:手写字符识别 参数说明: 62种不同的字符类别 (10种数字, 26种小写, 26种大写)的

  • 【CorelDraw VBA 012例】创建并提取轮廓2021-11-25 12:04:14

    Sub CreateContour() '##创建并提取轮廓 Dim rect As Shape Dim cSr As ShapeRange Set rect = ActiveShape ActiveDocument.Unit = 3 Set e = rect.CreateContour(cdrContourToCenter, 10) Set cSr = e.Separate Set s = cSr(1) End Sub   

  • resnet18代码实现2021-11-24 19:01:13

    resnet的特点在于残差结构,可以有效的防止梯度消失。对x+f(x)求导,可以得到1+f’(x),所以梯度是常数。从工程实现上,可以得到的启示包括,目前的网络设计的基本卷积结构都是由一个卷积层+bn层+激活函数 构成的小模块。其他参数都是调优的结果。本文resnet18的实现是基于paddle2.2的

  • 【CorelDraw VBA 002例】 断开节点 随机填充颜色2021-11-24 09:03:02

    Sub BreakApartNode() '##断开节点 随机填充颜色 Dim s As Shape, sr As ShapeRange, sp As SubPath, nr As NodeRange Set sr = ActivePage.Shapes.FindShapes() Dim srBrokenCurves As New ShapeRange Dim n As Long, num As Long 'loop thru shape

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有