MCPcopy Create free account
hub / github.com/arcee-ai/DistillKit / from_tensor

Method from_tensor

test_compression.py:28–34  ·  view source on GitHub ↗
(cls, tensor: torch.Tensor)

Source from the content-addressed store, hash-verified

26
27 @classmethod
28 def from_tensor(cls, tensor: torch.Tensor) -> "ErrorStats":
29 return cls(
30 mean=tensor.mean().item(),
31 std=tensor.std().item(),
32 max=tensor.max().item(),
33 min=tensor.min().item(),
34 )
35
36 def __str__(self):
37 return (

Callers 1

eval_compression_qualityFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected