Seksjon 1. Kapittel 4
single
Challenge: Initializing Tensors
Sveip for å vise menyen
Oppgave
Sveip for å begynne å kode
- 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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår