How to generate MODULUS for RSA using openssl?
If you use openssl RSA API to encrypt/decrypt/sign/verify, you will need a MODULUS, which is part of a RSA public key. To generate a MODULUS, first you need to generate […]
If you use openssl RSA API to encrypt/decrypt/sign/verify, you will need a MODULUS, which is part of a RSA public key. To generate a MODULUS, first you need to generate […]
Softmax is unlike other activation functions such as tanh and sigmoid, which take one number as input and output one number. Softmax activation function takes several numbers as input and […]
MNIST dataset is a frequently used image dataset for neuron network and deep learning study. How to download the MNIST dataset? import tensorflow as tf (X_train, y_train), (X_test, y_test) = […]
tf.TensorArray is a class, not a function. You can use tf.TensorArray to construct a TensorArray operation: ta = tf.TensorArray(dtype=tf.float32, size=2) Here, the tensorarray contains 2 tensors. How to get […]
Consider the following example: a=tf.constant([[1,2,3],[4,5,6]],shape=(2,3),name=”a”) b=a+1 It will produce the following graph: We can see a constant tensorflow operation has two attributes: dtype is the type of the elements stored […]
Consider the following example: i = tf.get_variable(“i”, dtype=tf.int32, shape=[], initializer=tf.ones_initializer()) n = tf.constant(10) def cond(a, n): return a< n def body(a, n): a = a + 2 return a, n […]
A RNN(Recurrent Neural Network) layer is composed of a set of recurrent neurons. The output of each recurrent neuron is dependent not only on the input vector but also the […]
It is interesting to know the fact that some visual neurons reacts to only part of the region we can see(so called local receptive field). This is contrary to institution […]
Cuda and CuDNN. CuDNN is based on CUDA. install tensorflow for GPU: pip install tensorflow-gpu set the environment variable CUDA_VISIBLE_DEVICES=3,2 then run a tensorflow program to let the tensorflow program […]
To understand the content of this chapter, we need to review the concept about gradient and gradient descent. Gradient descent algorithm was introduced in chapter 4. In that chapter, a […]