tensorflow一些代码
load多个图:
1 | class ImportGraph(): |
1 | import tensorflow as tf |
load多个图:
1 | class ImportGraph(): |
1 | import tensorflow as tf |
squared error 下,梯度是 y * (1-y) *(-2 * (t - y)) 如果y=0,那么梯度不见了
softmax error下,梯度是 y * (1-y) / (y) 如果y=0,那么梯度还蛮大
1 | if result is None: |
1 | # out[out > 0] = 1 |
1 | a = list(self.parameters())[0].clone() |
1 | # -*- coding: utf-8 -*- |
1 | Variable containing: |
1 | class NetALL: |
1 | torch.save(self.net1.dict()) w1: |
1 | print(module.training) |
1 | class A(): |
1 | class A(object): |
ga = git addgcmsg = git commit -mggpush = git push origin master