欢迎光临散文网 会员登陆 & 注册

小象学院自动化阅卷系统

2023-02-23 10:18 作者:抽抽一生恋  | 我要投稿

In[57]

# 定义多层感知器 def multilayer_perceptron(input):    # 第一个全连接层,激活函数为ReLU    hidden1 = fluid.layers.fc(input=input, size=100, act='relu')    # 第二个全连接层,激活函数为ReLU    hidden2 = fluid.layers.fc(input=hidden1, size=100, act='relu')    # 以softmax为激活函数的全连接输出层,输出层的大小必须为数字的个数10    prediction = fluid.layers.fc(input=hidden2, size=10, act='softmax')    return prediction


小象学院自动化阅卷系统的评论 (共 条)

分享到微博请遵守国家法律