06 2020 档案

摘要:Tensor 维度可为 0,1,....... 1、 import torch as ttensorA=t.tensor([[1,2,3]])tensorB=t.tensor(10)testResult= tensorA + tensorBprint(tensorB.size())print(tes 阅读全文
posted @ 2020-06-22 23:38 tonnysz 阅读(146) 评论(0) 推荐(0)
摘要:import java.lang.reflect.InvocationTargetException; interface IA{ void fun();} class C implements IA{ public void fun() { System.out.println("fun in C 阅读全文
posted @ 2020-06-20 11:33 tonnysz 阅读(279) 评论(0) 推荐(0)
摘要:cross-correlation(互相关、交叉相关): Coutj 第j个输出Channel(或由第j个Filter输出) 对于每个Coutj (或每个Filter)和Ni个Kernal构成的滑动窗口来说: 输出点(neural)(为Kernal滑动位置和Filter的函数)s值为: 该Filte 阅读全文
posted @ 2020-06-01 22:28 tonnysz 阅读(1132) 评论(0) 推荐(0)
摘要:class Vector: #类似于Iterable实现类 def __init__(self,data,choice): self.data=data self.choice=choice def __iter__(self): #实现后,取Iterator if self.choice==0: 阅读全文
posted @ 2020-06-01 16:38 tonnysz 阅读(138) 评论(0) 推荐(0)