mirror of
https://github.com/vladmandic/automatic
synced 2026-09-11 15:28:43 +02:00
cleanup
This commit is contained in:
@@ -757,7 +757,6 @@ def validate_sample(tensor):
|
||||
return tensor
|
||||
if tensor.dtype == torch.bfloat16: # numpy does not support bf16
|
||||
tensor = tensor.to(torch.float16)
|
||||
print('HERE', isinstance(tensor, np.ndarray), isinstance(tensor, torch.Tensor))
|
||||
if isinstance(tensor, torch.Tensor) and hasattr(tensor, 'detach'):
|
||||
sample = tensor.detach().cpu().numpy()
|
||||
elif isinstance(tensor, np.ndarray):
|
||||
|
||||
Reference in New Issue
Block a user