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

Function _rsqrt_flops

tensorflow/python/profiler/internal/flops_registry.py:84–87  ·  view source on GitHub ↗

Compute flops for Rsqrt operation.

(graph, node)

Source from the content-addressed store, hash-verified

82
83@ops.RegisterStatistics("Rsqrt", "flops")
84def _rsqrt_flops(graph, node):
85 """Compute flops for Rsqrt operation."""
86 # Rsqrt(x) = 1 / sqrt(x)
87 return _unary_op_flops(graph, node, ops_per_element=2)
88
89
90@ops.RegisterStatistics("Log", "flops")

Callers

nothing calls this directly

Calls 1

_unary_op_flopsFunction · 0.85

Tested by

no test coverage detected