MCPcopy Create free account
hub / github.com/FreedomGu/Diffportrait360 / anal_tensor

Function anal_tensor

diffportrait360_release/code/utils/utils.py:40–42  ·  view source on GitHub ↗
(tensor, name)

Source from the content-addressed store, hash-verified

38 print(f"{prefix}: {torch.cuda.max_memory_allocated(device) // 1e6}MB ")
39
40def anal_tensor(tensor, name):
41 sent = f" name: {name} mean: {tensor.mean().item()} std: {tensor.std().item()} min: {tensor.min().item()} max: {tensor.max().item()}"
42 print(sent)
43
44
45def split(lst, split_nbr):

Callers

nothing calls this directly

Calls 2

meanMethod · 0.80
stdMethod · 0.80

Tested by

no test coverage detected