MCPcopy Create free account
hub / github.com/tensorflow/tfjs / double_module_fn

Function double_module_fn

tfjs-converter/python/test_pip_package.py:135–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 """
134 # Module function that doubles its input.
135 def double_module_fn():
136 w = tf.Variable([2.0, 4.0])
137 x = tf.compat.v1.placeholder(dtype=tf.float32)
138 hub.add_signature(inputs=x, outputs=x*w)
139 graph = tf.Graph()
140 with graph.as_default():
141 spec = hub.create_module_spec(double_module_fn)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…