this is W3_W2_LAB_1

So I am assume s, and l are tensor. what does s.numpy() or l.numpy() do? I don’t understand what doe the numpy method of a tensor do?

Second q:

what does the .decode(‘utf8’) do?

this is W3_W2_LAB_1

So I am assume s, and l are tensor. what does s.numpy() or l.numpy() do? I don’t understand what doe the numpy method of a tensor do?

Second q:

what does the .decode(‘utf8’) do?

1 Like

Hi @Basira_Daqiq ,

Basically,

- the var.numpy() is used to convert a tensor to a numpy array.
- the method is used to convert a byte string into a Unicode string.

1 Like