一.跨控制器调用 UserController.class.php <?php namespace Home/Controller use Think/Controller class UserController extends Controller{ public function show(){ //TODO } } IndexController.class.php(方法一) <?php namespace Home/Controller use Think/Controller cl…
import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import torch class Net(nn.Module): # 需要继承这个类 def __init__(self): super(Net, self).__init__() # 建立了两个卷积层,self.conv1, self.conv2,注意,这些…