文章目录 model.pymain.py运行图 model.py
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
class CNN_cls(nn.Module):def __init__(self,in_dim):super(CNN_cls,self).__init__()self.conv1 nn.Conv2d(in_dim,32,1,1)self.pool1 nn.…
一、如果你的主数据库配置文件都在config.php里
直接在config.php中中定义db2:
控制器中打印一下:
<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;
class Index extends Controller
{public fun…
Access to script at http://localhost:18000/CLodopfuncs.js?priority0 from origin http://xxxxxx has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local. 解决:
浏览器输入…