MCPcopy Create free account
hub / github.com/cubiq/ComfyUI_IPAdapter_plus / min_

Function min_

utils.py:328–332  ·  view source on GitHub ↗
(tensor_list)

Source from the content-addressed store, hash-verified

326 return source
327
328def min_(tensor_list):
329 # return the element-wise min of the tensor list.
330 x = torch.stack(tensor_list)
331 mn = x.min(axis=0)[0]
332 return torch.clamp(mn, min=0)
333
334def max_(tensor_list):
335 # return the element-wise max of the tensor list.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected