File size: 180 Bytes
2c6366f
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import torch

def shape_is_open_chord(shape: str) -> bool:
    return '0' in shape

def manyhot_is_open_chord(manyhot: torch.Tensor) -> bool:
    return (manyhot[:, 0] == 1).any()