MCPcopy Create free account
hub / github.com/XingangPan/DragGAN / tuple_product

Function tuple_product

dnnlib/util.py:177–184  ·  view source on GitHub ↗

Calculate the product of the tuple elements.

(t: Tuple)

Source from the content-addressed store, hash-verified

175
176
177def tuple_product(t: Tuple) -> Any:
178 """Calculate the product of the tuple elements."""
179 result = 1
180
181 for v in t:
182 result *= v
183
184 return result
185
186
187_str_to_ctype = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected