MCPcopy Create free account
hub / github.com/tensorflow/lingvo / AddFunction

Method AddFunction

lingvo/core/base_layer.py:716–738  ·  view source on GitHub ↗

Adds a function to the layer's `fns` collection. This should be used to add op-like functions specific to the operation of the layer and its children. Such functions should be added in `__init__` and may either be raw python functions or TensorFlow Defuns. This facility is just a me

(self, name, f, replace=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

testAddFunctionMethod · 0.80
WrapOpMethod · 0.80

Calls 1

CheckKeyMethod · 0.80

Tested by 1

testAddFunctionMethod · 0.64