1.tensorflow有一种kernels名为BinaryOp(二元操作),像加法、减法、哈达玛积这种都属于二元操作(都是简单的数学操作),所有的二元操作逻辑都是相同的,唯独中间的运算符不同,在实现上将这个操作符作为模板参数传入,本质也是调用的Eigen的API(但是像矩阵乘这样的感觉也是二元操作 ...
分类:
其他好文 时间:
2018-07-11 19:58:37
阅读次数:
246
1.获取LruCache对象 2.根据key来获取Bitmap 3.增加bitmap到缓存 4.通过给定资源来源,和显示的imageView来加载图片 5.BitmapWorkerTask继承AsyncTask,实现异步加载图片 ...
分类:
其他好文 时间:
2018-07-10 16:47:34
阅读次数:
216
tf.nn.nce_loss是word2vec的skip-gram模型的负例采样方式的函数,下面分析其源代码。 1 上下文代码 其中, train_inputs中的就是中心词,train_label中的就是语料库中该中心词在滑动窗口内的上下文词。 所以,train_inputs中会有连续n-1(n为 ...
分类:
其他好文 时间:
2018-07-09 17:17:32
阅读次数:
621
D - FatMouse and Cheese FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is l ...
分类:
其他好文 时间:
2018-07-07 22:40:01
阅读次数:
232
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. ...
分类:
其他好文 时间:
2018-07-03 22:32:20
阅读次数:
170
环境 android studio 3.0 错误 Error:All flavors must now belong to a named flavor dimension. 解决 在build.gradle中 android.defaultConfig 添加 例如·: android { comp ...
分类:
其他好文 时间:
2018-06-24 19:39:06
阅读次数:
483
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import 
分类:
编程语言 时间:
2018-06-14 14:26:44
阅读次数:
702
1 dtype:data type 数据类型 2 ndarray:n-dimension n维,ndarray:n维数组(多维数组) 3 mean:平均值 4 std:standard deviation:标准差 5 prod:product:乘积 6 revel :与flatten相同,flatt... ...
分类:
其他好文 时间:
2018-06-11 11:09:42
阅读次数:
174
> 定义拓扑结构、参数初始化 $ gmm-init-mono --shared-phones=$lang/phones/sets.int "--train-feats=$feats subset-feats --n=10 ark:- ark:-|" $lang/topo $feat_dim $dir... ...
分类:
其他好文 时间:
2018-06-07 21:59:06
阅读次数:
819
import javax.swing.*; import java.awt.*; public class ss1{ public static void main(String[] args){ JFrame f=new JFrame("图形界面"); // Dimension d=new Dim... ...