aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/layers/README.md
blob: 9310b194dff99529be6f1d5875bf242e810ef041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# TensorFlow contrib layers.

## initializers.py

Functions that produce variable initializer functions with signature:

`foo(shape, dtype) : Tensor`

These are typically consumed by functions in [layers.py](#layers.py).

## layers.py {#.py}

Functions that produce layer operations and associated weight & bias variables. Signatures will vary for different functions, but they will often take many of
these arguments.

`foo(x,
     num_outputs,
     …,
     weight_init=<DEFAULT>,
     bias_init=<DEFAULT>,
     weight_regularizer=None,
     bias_regularizer=None,
     name=None) : Tensor`

`x` is the input tensor.

Weights and biases are added to `tf.GraphKeys.GLOBAL_VARIABLES` and
`tf.GraphKeys.TRAINABLE_VARIABLES`.

## optimizers.py

Functions that add optimization ops given `loss` and `global_step` tensors.

## regularizers.py

Functions that produce weight regularization functions with signature

`foo(weight_vars, name=None) : Operation`

These are typically consumed by functions in [layers.py](#layers.py).

## summaries.py

Functions that add summary ops to the standard `tf.GraphKeys.SUMMARIES`
collection. They also avoid name conflicts in the summary key.