MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / intprod

Function intprod

roach/models/torch_util.py:29–36  ·  view source on GitHub ↗

Product of a sequence of integers

(xs)

Source from the content-addressed store, hash-verified

27
28
29def intprod(xs):
30 """
31 Product of a sequence of integers
32 """
33 out = 1
34 for x in xs:
35 out *= x
36 return out
37
38
39class CnnBasicBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected