Applying convolutional neural networks to classify fast radio bursts detected by the CHIME telescope