MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _swish

Method _swish

tensorflow/lite/python/convert_test.py:225–230  ·  view source on GitHub ↗
(input_tensor, scale)

Source from the content-addressed store, hash-verified

223 swish_scale = array_ops.constant(1.0)
224
225 def _swish(input_tensor, scale):
226 custom = op_hint.OpHint("cool_activation")
227 input_tensor, scale = custom.add_inputs(input_tensor, scale)
228 output = math_ops.sigmoid(input_tensor) * input_tensor * scale
229 output, = custom.add_outputs(output)
230 return output
231
232 output = array_ops.identity(
233 _swish(image, swish_scale), name="ModelOutput")

Callers

nothing calls this directly

Calls 2

add_inputsMethod · 0.95
add_outputsMethod · 0.95

Tested by

no test coverage detected