-
Beta Was this translation helpful? Give feedback.
Answered by
LuluW8071
May 3, 2024
Replies: 1 comment 1 reply
-
The snippet of the code you provided has no errors works perfectly fine. I tried to replicate your error and closest i found was on defining weight and bias. There might be error(mistype) on that section. weights = 0.7
bias = 0.3
start, end, step = 0, 1, 0.02
X = torch.arange(start, end, step).unsqueeze(dim=1)
y = weights * X + bias |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Rohi2610
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The snippet of the code you provided has no errors works perfectly fine. I tried to replicate your error and closest i found was on defining weight and bias. There might be error(mistype) on that section.