自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 【23/10/9】01背包

具体计算方式是将当前物品的价值 line[1] 加上剩余容量 i - line[0] 时的最大总价值 dp[i - line[0]]。如果i等于line[0](line[0]可能是某种条件的值),则将line[1]赋给dp[i],否则将负无穷大(-float(“inf”))赋给dp[i]。4、for i in range(v, line[0] - 1, -1)::这是一个内部循环,从背包容量 v 开始递减到当前物品的体积 line[0](包括 line[0])。这个列表包含了当前物品的体积和价值。

2023-10-09 10:00:43 130

原创 RuntimeError: CUDA error: out of memory CUDA运行模式问题

【RuntimeError: CUDA error: out of memory. CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.】CUDA运行模式问题 引入CUDA_LAUNCH_BLOCKING=1 ‘’‘程

2022-04-21 17:34:10 6382

原创 AttributeError: module ‘tensorflow._api.v1.summary‘ has no attribute ‘create_file_writer‘

【AttributeError: module ‘tensorflow._api.v1.summary’ has no attribute ‘create_file_writer’ 】tensorflow版本不兼容问题 卸载tensorflow pip uninstall tensorflow 安装tensorflow pip install tensorflow 注:若需指明安装版本 可 pip install tensorflow==X.X.X X.X.X——版本号 ...

2022-04-21 17:24:32 3366

原创 vue3引入router

vue3引入router src下新建router文件夹,router文件夹内新建router.js,放入代码如下 import { createRouter,createWebHistory } from "vue-router"; import HelloWorld from '../components/HelloWorld.vue'; const router = createRouter({ history:createWebHistory(), routes:[

2022-04-09 15:41:32 2135

原创 vue3.2.13引入elementui

vue3.2.13引入elementui npm安装 //npm i element-plus -S 在main.js中引入 // import { createApp } from 'vue' **import ElementPlus from 'element-plus' import 'element-plus/dist/index.css'** import App from './App.vue' **const app = createApp(App) app.use(ElementPlus

2022-04-09 10:33:07 2088

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除