Two male students suffered serious injuries in a stabbing just outside of York Memorial Collegiate Institute on Tuesday, according to the Toronto Police Service.

They are not in life-threatening condition, as had previously been reported by police.

The incident happened at about 3:30 p.m., just after classes ended for the day.

According to the Toronto District School Board, the two students were taken to hospital and their parents were notified.

Police confirmed the two students were taken to Sunnybrook Hospital.

TDSB spokesperson Ryan Bird told CBC News that the school was in lockdown from the time of the incident until about 6:15 p.m.

Many students and staff had already left for the day, he said, so the school was significantly emptier than usual at the time of the incident.

The school, which is located on Eglinton Avenue West near Keele Street, has a student population of about 900.