Currently there is some issue about torch in my computer.
When I initiate the below code,
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import torch
It works but when I add “from torch.optim import Adam,AdamW”
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import torch
from torch.optim import Adam,AdamW
And initiate, then it gives me
AttributeError: partially initialized module 'torch' has no attribute '_jit_internal' (most likely due to a circular import)
This error. Can someone help me what is the problem?
Know what is the actual problem
New contributor
user25118365 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.