[ERROR] No module named 'torch.nn.function'

화이팅·2023년 3월 28일
0

대체

from torch.nn import functional as F

출처 : https://import-as.github.io/import/torch.nn.functional.html

import torch
import torch.nn as nn

from torch.nn import functional as F
import torch.optim as optim
profile
하하...하.

0개의 댓글