tf.nn.lrn() 方法有什么作用? [英] what does the tf.nn.lrn() method do?

查看:39
本文介绍了tf.nn.lrn() 方法有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是从 cifar10-tutorial 中截取的代码.它来自 cifar10.py.

Here is the code-snipped from the cifar10-tutorial. It's from the cifar10.py.

# conv1
with tf.variable_scope('conv1') as scope:
kernel = _variable_with_weight_decay('weights', shape=[5, 5, 3, 64],
                                     stddev=1e-4, wd=0.0)
conv = tf.nn.conv2d(images, kernel, [1, 1, 1, 1], padding='SAME')
biases = _variable_on_cpu('biases', [64], tf.constant_initializer(0.0))
bias = tf.nn.bias_add(conv, biases)
conv1 = tf.nn.relu(bias, name=scope.name)
_activation_summary(conv1)

# pool1
pool1 = tf.nn.max_pool(conv1, ksize=[1, 3, 3, 1], strides=[1, 2, 2, 1],
                     padding='SAME', name='pool1')
# norm1
norm1 = tf.nn.lrn(pool1, 4, bias=1.0, alpha=0.001 / 9.0, beta=0.75,
                name='norm1')

tf.nn.lrn-Method 有什么作用?我在 https:/的 API 文档中找不到定义/www.tensorflow.org/versions/r0.8/api_docs/python/index.html

What does the tf.nn.lrn-Method do? I can't find a definition in the API Documentation on https://www.tensorflow.org/versions/r0.8/api_docs/python/index.html

推荐答案

tf.nn.lrntf.nn.local_response_normalization 的缩写.因此,您可能想要查看的文档是:https://www.tensorflow.org/api_docs/python/tf/nn/local_response_normalization

tf.nn.lrn is a short for tf.nn.local_response_normalization. Therefore, the documentation you may want to look at is: https://www.tensorflow.org/api_docs/python/tf/nn/local_response_normalization

这篇关于tf.nn.lrn() 方法有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆