首先,给出官方文档的链接: https://pytorch.org/docs/stable/generated/torch.gather.html?highlight=gather#torch.gather 然后,我用白话翻译一下官方文档。 gather,顾名思义,聚集、集合。有点像军训的时候,排队 ...
分类:
其他好文 时间:
2021-02-18 12:53:58
阅读次数:
0
1. 单进程最大打开文件数限制 有时候会遇上socket/file: can‘t open so many files的问题,其实是Linux系统有文件句柄限制的,一般Linux系统限制单进程最大可以打开1024个文件,这是远远不能满足高并发需求的。 通过ulimit –a命令来查看系统的一些资源限 ...
分类:
系统相关 时间:
2021-02-17 14:58:56
阅读次数:
0
Getopts Let’s say you want to allow a user to pass a -v flag to turn on verbose logging in a script. Manually parsing out options passed to a script i ...
分类:
其他好文 时间:
2021-02-16 12:03:18
阅读次数:
0
需要引入geopy库 pip install geopy 安装即可 import requests from bs4 import BeautifulSoup import pandas as pd import json import os from tqdm import tqdm from c ...
分类:
编程语言 时间:
2021-02-15 12:35:11
阅读次数:
0
写在前面 本人太过于菜鸡,今天可谓是废了九牛二虎之力把 mongoose 连接 mongoDB 给搞出来了,太 cao dan le 在此之前,我希望有缘人看到这,可以先复习一下js异步的问题, 在这里我以 Promise 为例子简单写了一个随笔 供大家参考 https://www.cnblogs. ...
分类:
其他好文 时间:
2021-02-15 12:25:57
阅读次数:
0
使用mysql二进制方式连接 mysql -u root -p 使用PHP脚本连接MySQL mysqli_connect(host,name,password,dbname,port,socket); host 规定主机或IP地址 username 规定MySQL用户名 password 规定My ...
分类:
数据库 时间:
2021-02-15 12:08:49
阅读次数:
0
反射概述 反射 在程序运行过程中分析类的一种能力。 反射能做什么: 分析类 加载并初始化一个类,查看类的所有属性和方法 查看并使用对象 查看一个对象的所有属性和方法使用对象的任意属性和方法 反射的应用场景 构建通用工具 搭建具有高度灵活性和扩展性的系统框架 类加载器(ClassLoader) 负责将 ...
分类:
其他好文 时间:
2021-02-15 11:39:48
阅读次数:
0
the Computing Research Repository (CoRR) 论文地址:https://arxiv.org/abs/1909.11898 代码地址:https://github.com/hongwang600/DocRed Abstract 在本文中,我们进一步应用预先训练的语言 ...
分类:
其他好文 时间:
2021-02-10 13:32:54
阅读次数:
0
alertmanager使用感悟-邮件 这篇文章是基于之前博客进行开展的:关于计划任务的一个小需求(https://www.cnblogs.com/windysai/p/14352248.html) 利用了prometheus 下 process-exporter对crond计划任务进程监控的, g ...
分类:
其他好文 时间:
2021-02-10 13:19:27
阅读次数:
0
//销毁僵尸进程2#include <stdio.h>#include <stdlib.h>#include <sys/wait.h> int main(int argc, char *argv[]){ int status; pid_t pid=fork(); if (pid==0) { slee ...
分类:
系统相关 时间:
2021-02-09 12:31:34
阅读次数:
0