2021年杀毒软件内存测评

2021年12月28日

背景 《10 Lightest Antivirus On Memory Usage During Idle and Scanning》说一些杀毒软件内存占用只有几KB,我不相信。单位应该错了,至少是MB。评论区也没人提出来。 根据《Why antivirus uses so much RAM – A […]

Bitdefender Total Security试用

2021年12月27日

今年12月31日前购买,价格是9元一年,非常便宜,所以试用了一下Bitdefender Total Security。 Bitdefender有时在右下角弹出一些技巧或提示,其实非常没用。把recommendation notifications关掉就没有了。 Bitdefender提示当前wifi […]

Tensorflow scatter_nd用法解释

2021年12月22日

scatter_nd按shape创建以0填充的张量,然后用updates张量更新该张量。具体updates更新哪些位置则由indices指定。 1、indices.shape的前面部分必须与updates.shape相同,indices.shape后面多一维。 例1 indices.shape=(2 […]

神经网络比较两个数字

2021年12月21日

比较两个数的大小 def f1(a, b): if a > b: return 1 else: return 0 目标:在20 epochs内达到0.99的准确率。 根据《STEP-BY-STEP MODELING A NEURAL NETWORK FOR CLASSIFICATION》的经验,网络 […]

Use dataset in TensorFlow model training

2021年12月19日

shape的要求 data=tf.data.Dataset.from_tensor_slices(([1,2,3],[1,2,3])) 这创建了一个二元组的dataset,即dataset里每个example都是一个二元组 print(list(data)) [[1,1], [2,2], [3,3] […]

BASH for循环、find与空格处理

2021年11月28日

假设当前目录下有 ‘a b’ c d 这三个文件 for f in * do echo $f echo ‘next’ done 输出 a b next c next d next 说明*可以处理空格的情况。具体来说应该是globbing和word sp […]