TensorFlow syntax bits and pieces

1. tf.variable_scope generates a context manager for obtaining variables that have been generated

with tf.variable_scope('pnet'):
        data = tf.placeholder(tf.float32, (None,None,None,3), 'input')
        pnet = PNet({'data':data})
        pnet.load(os.path.join(model_path, 'det1.npy'), sess)

 

2.

 

3.

 

4.

 

5.

 

6.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324445347&siteId=291194637