标签: pytorch
共找到 34 篇相关文章
第 1 页,共 4 页
文章预览
2021-06-14 记事训练seq2seq
2023年08月22日
1098 字
2021-06-14 记事
使用 #transformers 的各种模型训练 #seq2seq ,参考这里:
摘要生成
阅读全文
浏览
评论
文章预览
TextCNN.py示例
2023年08月22日
622 字
``` import torch import torch.nn as nn class TextCNN(nn.Module): def __init__(self, num_classes, num_embeddings, embedding_dim, hidden_size, dropout_prob=0.5): supe…
阅读全文
浏览
评论
文章预览
torch模型导出到onnx问题 expected 1 dims but tensor ha…
2023年08月22日
563 字
导出过程中出现如下错误 ``` expected 1 dims but tensor has 2 ``` torch 1.5.0 must be used for the export because the following error occurs intorch 1.6.0 caused by the internal optimization…
阅读全文
浏览
评论