仅通过从 nvidia-smi
命令中查看您的SS,似乎您的GPU似乎并未用于此模型培训。因此,您可能想研究它,并在模型培训期间开始使用GPU进行计算。
我为您制作了一个模板,希望它有帮助
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
<div class="row row-cols-2 row-cols-lg-6 g-2 g-lg-3">
<div class="col">
<div class="p-md-2 ">
<img src="https://cdn.shopify.com/s/files/1/0130/1797/2795/files/podcast_063b8574-56e0-4fa2-a9a9-c85f701754f3.png?v=1651638533" alt="podcast" width="75%;" >
</div>
</div>
<div class="col">
<div class="p-2 ">use the name</div>
</div>
<div class="p-md-2 ">
<img src="https://cdn.shopify.com/s/files/1/0130/1797/2795/files/podcast_063b8574-56e0-4fa2-a9a9-c85f701754f3.png?v=1651638533" alt="podcast" width="75%;" >
</div>
<div class="col">
<div class="p-2 ">use the name</div>
</div>
<div class="p-md-2 ">
<img src="https://cdn.shopify.com/s/files/1/0130/1797/2795/files/podcast_063b8574-56e0-4fa2-a9a9-c85f701754f3.png?v=1651638533" alt="podcast" width="75%;" >
</div>
<div class="col">
<div class="p-2 ">use the name</div>
</div>
<div class="p-md-2 ">
<img src="https://cdn.shopify.com/s/files/1/0130/1797/2795/files/podcast_063b8574-56e0-4fa2-a9a9-c85f701754f3.png?v=1651638533" alt="podcast" width="75%;" >
</div>
<div class="col">
<div class="p-2 ">use the name</div>
</div>
<div class="p-md-2 ">
<img src="https://cdn.shopify.com/s/files/1/0130/1797/2795/files/podcast_063b8574-56e0-4fa2-a9a9-c85f701754f3.png?v=1651638533" alt="podcast" width="75%;" >
</div>
<div class="col">
<div class="p-2 ">use the name</div>
</div>
</div>
</div>
</body>
</html>
使用链接器来帮助诊断错误,
大多数现代链接器都包含一个详细的选项,该选项在不同程度上打印出来;
- 链接调用(命令行),
- 链接阶段中包含哪些库的数据,
- 库的位置,
- 所使用的搜索路径。
对于GCC和Clang;您通常会在命令行中添加 -v -wl, - derbose
或 -v -wl,-v
。可以在此处找到更多细节;
- linux ld man page 。
- llvm 链接器页面。
- “ GCC的简介” 第9章。
对于MSVC,/verbose
(特别是/verbose:lib
)被添加到链接命令行。
这样的事情非常好,因为所有的获取都将等待
<script setup>
const { data } = await useFetch('https://jsonplaceholder.typicode.com/todos/1')
console.log('data', data.value.userId)
const { data: photos } = await useFetch(`https://jsonplaceholder.typicode.com/photos/${data.value.userId}`)
console.log('data2', photos.value)
</script>
<template>
<div>
first data: {{ data }}
</div>
<hr />
<div>
photos: {{ photos }}
</div>
</template>
您可以使用 df.sample(2).index
获取随机采样数据的DF中的索引,然后您可以将其传递到 .loc
以设置组这些索引是“实验性”的列如下:
df.loc[df.sample(2).index, 'group'] = 'experimental'
输出:
species name group
0 platypus mike experimental
1 monkey paul experimental
2 possum doug control
对于大数字,您可能要使用缓存。你能做这样的事情吗?
// Recursive solution
int fib(int n, int cache[]) {
if (n == 0) {
return 0;
}
if (n == 1) {
return 1;
}
if (cache[n]!= 0) {
return cache[n];
}
cache[n] = fib(n - 1, cache) + fib(n - 2, cache);
return cache[n];
}
// Iterative solution
int fib(int n) {
int cache[n + 1];
cache[0] = 0;
cache[1] = 1;
for (int i = 2; i <= n; i++) {
cache[i] = cache[i - 1] + cache[i - 2];
}
return cache[n];
}
类中的代码
块是在“启动”上运行的。您只需在该代码块中或之后完成任何需要做的事情:
class Constants:
data = {1: "123!"} # define the data right here
capacity = 123
data[2] = "aaa" # ... or here
Constants.data[3] = "bb" # ... or here
VScodium内部缺乏良好支持的远程扩展非常不便。我想开发一些GO代码(其他语言可能有不同的要求)。目前我尝试了一些选项:
1。将代码放在Windows
WSL中安装Windows驱动器,因此在Windows中运行的编辑器可以更改本地文件,Linux将拾取更改。
PROS:
- 仍然在本地编辑文件
- ,只要在Windows上安装了所有工具 (对我来说,GO工具还必须安装在Windows中到WSL)
cons:
- 没有文件观察器支持(Inotify不起作用) =手动重新编译
- 缓慢构建/文件访问/docker Access
2。与延伸本身混乱
进行了几次调整,使Vscode扩展运行运行非常简单,请参阅: https://github.com/vscodium/vscodium/issues/1265
pros:
- 在VSCODE中工作以及VSCODE
- 可以在Linux中完全存储在Linux中,以获取适当的文件,以获取适当的文件,观看支持
< strong>缺点:
- 任何更新(扩展/IDE-尽管其他人取得了成功,我都没有尝试过这种情况
- )完全(尽管在Linux和Windows中都安装了工具)
3。来自WSL (WSLG)内部的启动代码
这是我最终使用的,因为无法在我的IDE中看到错误太烦人了(这很可能是GO虽然是事的,但在测试时对JS没有问题)。
- 在WSL上启动WSL
- 安装与代码
-
wget -qo-https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/raw/master/pub.gpg.gpg | GPG - dearmor | =/usr/share/keyrings/vscodium-archive-keyring.gpg
-
echo'deb [signed-by =/usr/share/keyrings/vscodium-archive-keyring.gpg] https://download.vscodium.com/debs vscodium vscodium main'| sudo tee /etc/apt/sources.list.d/vscodium.list
-
sudo apt Update&amp;&amp; sudo apt安装代码
-
- 删除WSL警告nag
-
echo -e&gt;&gt; 〜/.bashrc“ \ nexport gdk_scale = 2 \ nalias codium ='dont_prompt_wsl_install = 1 codium'”
-
源〜/.bashrc
-
- set ractional scaping support(in Windows) “ https://github.com/microsoft/wslg/issues/23” rel =“ nofollow noreferrer”> https://github.com/microsoft/wslg/issues/23
- 创建文件:
%userProfile%\。wslgconfig
- add:
- 创建文件:
[system-distro-env]
WESTON_RDP_DEBUG_DESKTOP_SCALING_FACTOR=100
- 在vscodium(ctrl-)中缩放两次,
然后在Windows中,创建一个快捷方式,然后在目标字段中添加:
c:\ windows \ system322 \ wsl.exe bash -c“导出gdk_scale = 2&amp; dont_prompt_wsl_install = 1 codium”
这将直接启动WSL版本。
PROS:
- 可以将文件完全存储在Linux中,以获取适当的文件观看支持
- IDE Intellisense Works (即使在GO)
Cons:
- 比 WSLG应用程序的本机Windows
- 缩放量表尚未支持,因此4K屏幕的标准150%Windows缩放不起作用,您需要调整字体尺寸,并使用超大 /尺寸较小的菜单栏。
首先,您需要桌子的自我加入。
然后使用 json_object()
以 {“ user_name”:“ user_code”}
和不 {“ user_name”,“ user_name”, “ user_code”}
,最后汇总并使用 json_arrayagg()
:
SELECT t1.*,
JSON_ARRAYAGG(JSON_OBJECT(t2.username, t2.code)) secondary_users
FROM tablename t1 LEFT JOIN tablename t2
ON t2.secondary_user = t1.id
WHERE t1.secondary_user IS NULL
GROUP BY t1.id;
我假设 id
是表的主要键。
请参阅
您需要将数据旋转为长格式:
ggplot(tidyr::pivot_longer(MD3[1:2], 1:2),
aes(x = value, fill = name)) +
geom_bar(position = 'dodge') +
scale_fill_brewer(palette = 'Set1') +
theme_light()
您甚至可以以这种方式绘制所有列,而无需额外的努力
ggplot(tidyr::pivot_longer(MD3, tidyr::everything()),
aes(x = value, fill = name)) +
geom_bar(position = 'dodge') +
scale_fill_brewer(palette = 'Set1') +
theme_light()
如果您需要更改传奇中的标签,并且x轴,使用 labs
ggplot(tidyr::pivot_longer(MD3[1:2], 1:2),
aes(x = value, fill = name)) +
geom_bar(position = 'dodge') +
scale_fill_brewer(palette = 'Set1') +
theme_light() +
labs(x = 'My x variables', fill = 'My categories')
ggplot(subset(tidyr::pivot_longer(MD3[1:2], 1:2), !is.na(value)),
aes(x = value, fill = name)) +
geom_bar(position = 'dodge') +
scale_fill_brewer(palette = 'Set1') +
theme_light() +
labs(x = 'My x variables', fill = 'My categories')
/81imp.png“ rel =” nofollow noreferrer“>
将帐户添加到计算机的本地管理员以修复操作。
您在 ops()
调用中使用了错误的关键字。您必须使用 cmap
而不是 color
。
这是一个非常基本的示例,改编自。
import holoviews as hv
from holoviews import opts
hv.extension('bokeh')
factors = ["a", "b", "c", "d", "e", "f", "g", "h"]
x = [50, 40, 65, 10, 25, 37, 80, 60]
scatter = hv.Scatter((factors, x))
spikes = hv.Spikes(scatter)
x = ["foo", "foo", "foo", "bar", "bar", "bar", "baz", "baz", "baz"]
y = ["foo", "bar", "baz", "foo", "bar", "baz", "foo", "bar", "baz"]
z = [0, 1, 2, 3, 4, 5, 6, 7, 8]
colors = ['#00FF00','#FFFF00','#FF0000','#FFFF00','#FF0000', '#00FF00','#FF0000', '#00FF00','#FFFF00']
hv.HeatMap((x,y,z)).opts(width=450, height=400, cmap=colors, tools=['hover'])
output
您是否在Heroku运行了迁移?如果不是这样,您可以这样做:
Heroku Run Rake DB:迁移-App = your_app_name
Did you run the migrations in heroku? if not then you can do it like this:
heroku run rake db:migrate --app=your_app_name
PG :: UndefinedTable:错误:关系“条目”不存在