摘要:
taskset --cpu-list 0,1,2,3 <app> 以上代码会将你的进程<app>绑定在4个CPU上运行,分别是0,1,2,3。 其他参数包括 SYNOPSIS taskset [options] [mask | list ] [pid | command [arg]...] OPTI 阅读全文
摘要:
如果y是one-hot encoding格式,使用sparse_categorical_crossentropy [1,0,0] [0,1,0] [0,0,1] 如果y是整数,非one-hot encoding格式,使用categorical_crossentropy 1 2 3 阅读全文
摘要:
tf.keras.layers.RNN( cell, return_sequences=False, return_state=False, go_backwards=False, stateful=False, unroll=False, time_major=False, **kwargs ) 阅读全文
摘要:
网上有不少解释,包括下面这张图片 光靠图片理解还是不够,而且特别容易理解反了。这里用一个实例进行讲解。 一个非常简单的数据集,包含两个sample,3个features。 第一个sample: X1=1.0,X2=1.0, X3=1.0 第二个sample: X1=10.0,X2=10.0, X3= 阅读全文
摘要:
AttributeError: module 'tensorflow_core._api.v2.config' has no attribute 'list_physical_devices' 应该是接口更新了,改成以下接口就不会报错了。 查看所有GPU tf.config.experimental 阅读全文
摘要:
#include <iostream> #include "Eigen/Dense" #include "eigen_consts.H" #include "eigen_test.H" using namespace std; using namespace Eigen; int main() { 阅读全文