Update lerobot/common/policies/pi0fast/modeling_pi0fast.py
Co-authored-by: Remi <re.cadene@gmail.com>
This commit is contained in:
parent
0b68f2c2fb
commit
2bffbb6e43
|
@ -74,14 +74,6 @@ PRECISION = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def display(tensor: torch.Tensor):
|
|
||||||
if tensor.dtype == torch.bool:
|
|
||||||
tensor = tensor.float()
|
|
||||||
print(f"Shape: {tensor.shape}")
|
|
||||||
print(f"Mean: {tensor.mean().item()}")
|
|
||||||
print(f"Std: {tensor.std().item()}")
|
|
||||||
print(f"Min: {tensor.min().item()}")
|
|
||||||
print(f"Max: {tensor.max().item()}")
|
|
||||||
|
|
||||||
|
|
||||||
def normalize(x, min_val, max_val):
|
def normalize(x, min_val, max_val):
|
||||||
|
|
Loading…
Reference in New Issue