MCPcopy Create free account
hub / github.com/Vchitect/Latte / tuple_product

Function tuple_product

tools/dnnlib/util.py:166–173  ·  view source on GitHub ↗

Calculate the product of the tuple elements.

(t: Tuple)

Source from the content-addressed store, hash-verified

164
165
166def tuple_product(t: Tuple) -> Any:
167 """Calculate the product of the tuple elements."""
168 result = 1
169
170 for v in t:
171 result *= v
172
173 return result
174
175
176_str_to_ctype = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected