Edited, memorised or added to reading queue

on 16-Apr-2024 (Tue)

Do you want BuboFlash to help you learning these things? Click here to log in or create user.

Flashcard 7624251018508

Tags
#tensorflow #tensorflow-certificate
Question
changeable_tensor = tf.Variable([10, 7])

changeable_tensor[0] [...]

Output:
TypeError: 'ResourceVariable' object does not support item assignment


changeable_tensor[0].assign(77)

Output:
<tf.Variable 'UnreadVariable' shape=(2,) dtype=int32, numpy=array([77,  7], dtype=int32)>

Answer
= 77

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Tensorflow basics
changeable_tensor = tf.Variable([10, 7]) changeable_tensor[0] = 77 Output: TypeError: 'ResourceVariable' object does not support item assignment changeable_tensor[0].assign(77) Output: <tf.Variable 'UnreadVariable' shape=(2,) dtype=int32, numpy=arra







Flashcard 7624320486668

Tags
#tensorflow #tensorflow-certificate
Question
# global seed
tf.random.set_seed(42)

#operation seed
tf.random.shuffle(not_shuffled, [...]=42)

Answer
seed

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Tensorflow random
# global seed tf.random.set_seed(42) #operation seed tf.random.shuffle(not_shuffled, seed=42)