You need to set operation level seed in addition to graph-level seed, ie
tf.reset_default_graph()
a = tf.constant([1, 1, 1, 1, 1], dtype=tf.float32)
graph_level_seed = 1
operation_level_seed = 1
tf.set_random_seed(graph_level_seed)
b = tf.nn.dropout(a, 0.5, seed=operation_level_seed)
More Related Contents:
- Is there a way to ordinate numbers in a list?
- Python random.choice same output
- Randomly generate 4 or 5 digit Unique Codes in Subsequent Runs of the Script
- How to select random key with common values?
- What are logits? What is the difference between softmax and softmax_cross_entropy_with_logits?
- How to get a random value from dictionary?
- Weighted random selection with and without replacement
- Generate random numbers summing to a predefined value
- Keras + Tensorflow and Multiprocessing in Python
- Is it still necessary to install CUDA before using the conda tensorflow-gpu package?
- How can I randomly choose a maths operator and ask recurring maths questions with it?
- Is Tensorflow compatible with a Windows workflow?
- Random is barely random at all?
- Tensorflow, best way to save state in RNNs?
- What does the random.sample() method in Python do?
- Remove nodes from graph or reset entire default graph
- How to get a normal distribution within a range in numpy? [duplicate]
- How does Keras 1d convolution layer work with word embeddings – text classification problem? (Filters, kernel size, and all hyperparameter)
- What do I need K.clear_session() and del model for (Keras with Tensorflow-gpu)?
- Random without repetition?
- Tensorflow: Using Adam optimizer
- Creating same random number sequence in Python, NumPy and R
- Python: Choose random line from file, then delete that line
- Load numpy array in google-cloud-ml job
- scikit-learn random state in splitting dataset
- How to create a keras layer with a custom gradient in TF2.0?
- How is the Keras Conv1D input specified? I seem to be lacking a dimension
- Python: Random numbers into a list
- What’s the best way to generate random strings of a specific length in Python?
- Random Python dictionary key, weighted by values