上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 83 下一页
摘要: #include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_cloud.h> #include <pcl/kdtree/kdtree_flann.h> #include <vector> #include <ctime> us 阅读全文
posted @ 2021-10-18 21:28 WTSRUVF 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 就是找联通块 dfs就行 class Solution { public: bool vis[1010][1010]; void dfs(vector<vector<int>>& land, int x, int y, int& cnt) { cnt++; int len1 = land.size( 阅读全文
posted @ 2021-10-17 22:34 WTSRUVF 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 之字形编号,其实和常规的从左到右编号的区别就是,路径上的数字和输入的数在相同奇偶性的行无差别,不同奇偶性的行时的求对称的数字就行 class Solution { public: vector<int> pathInZigZagTree(int label) { vector<int> v; int 阅读全文
posted @ 2021-10-16 16:09 WTSRUVF 阅读(20) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: set<string> s; bool vis[10]; void dfs(int k, string tiles, string str) { if(k == 0) s.insert(str); int len = tiles.length(); 阅读全文
posted @ 2021-10-15 23:35 WTSRUVF 阅读(19) 评论(0) 推荐(0) 编辑
摘要: msg的训练的巨慢,不过总算是复现出来了,之后搞一下MRG的,或者裸的 关于插值: 注意:最后一次set abstraction 层之后并没有对称函数,因此B * C2 * k的特征向量(其中k为特征向量维数),还保存的一些点的数量C2,因此不是简单的repeat,然后拼接,是先找k近邻 “Poin 阅读全文
posted @ 2021-10-15 22:03 WTSRUVF 阅读(227) 评论(0) 推荐(0) 编辑
摘要: dfs就好了 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(N 阅读全文
posted @ 2021-10-14 23:04 WTSRUVF 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 在复现pointnet++的时候遇到了一些问题 关于tensor切片 bl = torch.arange(data.size(0), dtype = torch.long) tensor[bl, :, :] tensor[:, :, :] 以上两种切片没什么区别 但作为非第一维就有区别了 一一对应要 阅读全文
posted @ 2021-10-14 11:06 WTSRUVF 阅读(43) 评论(0) 推荐(0) 编辑
摘要: torch.transpose(input, dim0, dim1) tensor.transpose(dim0, dim1) tensor.permute(dim0, dim1, ```,dimk) 都是交换维度的函数 transpose每次只能换两个维度,两种写法,参数顺序无所谓 permute 阅读全文
posted @ 2021-10-10 10:26 WTSRUVF 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 用list模拟的 class Solution { public: list<int> l; int findTheWinner(int n, int k) { for(int i = 1; i <= n; i++) l.push_back(i); int cnt = 0; list<int>::i 阅读全文
posted @ 2021-10-08 22:32 WTSRUVF 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 并查集就能实现,我都忘了并查集了,唉 用map记录每个邮箱的账号,再此之前判断该邮箱是否已经在map中有value,即该邮箱是否已经标记了账户 如果有,那就将当前邮箱的所有账号,转移到标记的账户 如果当前账户下的多个邮箱在map中有不同的value,那就统一转移到第一个value即可 用set存储每 阅读全文
posted @ 2021-10-08 18:50 WTSRUVF 阅读(53) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 83 下一页