今天在编译AWTK的时候遇到以下问题:
In file included from awtk-port/fb_test.c:2:
awtk-port/fb_info.h:1: error: stray '\357' in program
awtk-port/fb_info.h:1: error: stray '\273' in program
awtk-port/fb_info.h:1: e...
背景
我们在使用pytorch做AI训练的时候,经常会用到激活函数,在这里,我将几种常用的激活函数图像生成,以及代码使用记录下来,方便后续问题的查找和问题跟踪。
import torch
import torch.nn.functional as F
from torch.autograd import Variable
import matplotlib.pyplot as plt
%ma...