mx.symbol.reshape 对于给定输入的array和其shape,可以返回一个含有新shape的一个copy。shape是整形元组类型,可以包含可选的几个负数。 一些维度的可选值有:{0, -1, -2, -3, -4} 1. 维度0的作用是复制输入的该维度到对应输出: data=mx.s ...
分类:
Web程序 时间:
2020-06-14 23:55:35
阅读次数:
202
1添加pom.xml配置 <build> <sourceDirectory>src/main/scala</sourceDirectory> <testSourceDirectory>src/test/scala</testSourceDirectory> <plugins> <plugin> <g ...
分类:
数据库 时间:
2020-06-14 18:56:57
阅读次数:
138
1. 用idea的maven项目 package 打包, 去 Linux 执行 spark-submit --class com.Spark_HDFS --master local ./SXC-1.0-SNAPSHOT.jar 遇到 找不到主类 , 这时候需要更加稳定的打包方式 去打包 scala ...
分类:
其他好文 时间:
2020-06-14 12:57:57
阅读次数:
127
An operator is a symbol that tells the complier to perform specifc mathematical or logical manipulations. C++ allows u to specify more than one defini ...
分类:
编程语言 时间:
2020-06-14 11:20:54
阅读次数:
58
首先,先安装jdk.我安装的是jdk14.下载界面如下所示: 接下来配置path,java_home两个环境变量即可。 接下来安装scala 我安装的scala是2.13.2版本。 接下来安装hadoop ...
分类:
其他好文 时间:
2020-06-13 23:05:23
阅读次数:
66
今天工作遇到个关于Promise的小问题,结果是自己太新手,后来解决了 如 function test() { return new Promise (resolve, reject) { reject('超时') } } 使用了await, 必须catch才能让阻塞放开 async functio ...
分类:
其他好文 时间:
2020-06-13 19:29:17
阅读次数:
68
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, ...
分类:
移动开发 时间:
2020-06-13 14:33:10
阅读次数:
74
类和对象 在类定义中,有字段filed和方法method,统称为成员member,通过val和var定义字段指定对象的变量。通过def定义方法。(和Python一样)实例一个类后,会指派一些内存来保存对象的状态图。个人理解对通过地址间映射,有一块内存保存值。 对字段声明私有。在var、val前加。不 ...
分类:
其他好文 时间:
2020-06-13 13:22:18
阅读次数:
51
今天学习springboot框架的使用,IDEA里一个service的注解报错“Cannot resolve symbol service”。 搜索了很多方法,解决办法是选择file,然后再选择Invalidate Caches/Restart清除缓存并重启IDEA就好了。 原博地址https:// ...
分类:
其他好文 时间:
2020-06-13 12:58:04
阅读次数:
696
第一步 在pom.xml中添加 <dependencies> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.11</artifactId> <version>2.3.3</version> </de ...
分类:
其他好文 时间:
2020-06-13 12:39:49
阅读次数:
172