Sektion 1. Kapitel 4
single
Challenge: Initializing Tensors
Stryg for at vise menuen
Opgave
Swipe to start coding
- Create a
2x3tensor filled with zeros using thetorch.zeros()function. - Create a 1D tensor with integer values from
1to10inclusive (11exclusive) using thetorch.arange()function. - Create a 1D tensor with
10evenly spaced values between2and4inclusive using thetorch.linspace()function.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 4
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat