SrpingMVC简单案例 1. 导入依赖 <dependencies> <!-- 单元测试 --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> <scope ...
分类:
编程语言 时间:
2020-06-24 16:12:44
阅读次数:
45
模型部署到现场为了防止泄密,需要加密。加密一方面可以防止泄密,另一方面可以便于模型跟踪管理,防止混淆。 libtorch的加载模型的函数,torchjitload();我点开load可以看到函数。有两个: TORCH_API std::shared_ptr<script::Module> load( ...
分类:
其他好文 时间:
2020-06-24 14:02:16
阅读次数:
84
一个固定用法: <template slot-scope="scope"> 我们主要说一下这个scope是个什么东西,scope就相当于是tableData的一行,与el-table-column唯一对应,具体试验代码如下, <el-table-column label="操作" width="10 ...
分类:
其他好文 时间:
2020-06-24 00:21:10
阅读次数:
342
1.系统常用检查命令 1 磁盘 df -h 2 内存 free -m 3 负载 top 4 5 [hadoop@bigdata ~]$ free -m 6 total used free shared buff/cache available 7 Mem: 7823 222 6229 257 137 ...
分类:
系统相关 时间:
2020-06-23 15:37:42
阅读次数:
82
什么时绑定变量? Oracle中每一个提交的SQL语句都会经历解析,解析分为两种一种是软解析,这种解析在执行sql的时候直接到share pool中取出执行计划即 可,不是特别占用资源。而另一种硬解析,整个过程需要解析,制定执行路径,优化访问步骤等需要耗费大量的cpu资源同时也会占用门闩(latch... ...
分类:
数据库 时间:
2020-06-23 15:27:36
阅读次数:
67
智能指针的循环引用 class Node { public: shared_ptr<Node> left; shared_ptr<Node> right; Node(int v) { this->value = v; cout << "Constructor" << endl; } ~Node() ...
分类:
其他好文 时间:
2020-06-23 13:13:43
阅读次数:
90
update top(1) Products with(updlock,readpast) set Status = 1 output Deleted.Id as PoolSkuId from (select top 1 Id from Products where Deleted = 0 and ...
分类:
数据库 时间:
2020-06-22 22:41:27
阅读次数:
82
python有一个名为vars的内置函数,它返回变量关联的不可见的字典: >>> x = 1 >>> scope = vars() >>> scope['x'] 1 >>> scope['x'] += 1 >>> x 2 一般而言,不应修改vars返回的字典,因为根据Python官方文档的说法,这样 ...
分类:
编程语言 时间:
2020-06-22 22:34:12
阅读次数:
58
默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件,通常通过源码包进行安装时,如果不指定--prefix,会将库安装在/usr/local/lib目录下;当运行程序需要链接动态库时,提示找不到相关的.so库,会报错。也就是说,/usr/local/lib目录不在系统默认的库搜索 ...
分类:
系统相关 时间:
2020-06-22 21:11:31
阅读次数:
66
参考 https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/docker-mysql-getting-started.html 1. 下载mysql 镜像 docker pull mysql/mysql-server:5.7 2. 创 ...
分类:
数据库 时间:
2020-06-22 16:59:46
阅读次数:
67