Earlier quoted context omitted.
Women's representation in tech matches the graduation rates of relevant fields. Which matches the rates at which women indicate tech as their preferred field in high school and middle school. I think it's in incorrect to say that they're "weeded out". That implies that women are being removed from the field, rather than exercising their own agency and choosing different fields.
Do you have a source for your claims?
Computer science: https://www.aei.org/carpe-diem/chart-of-the-day-the-declinin...
Electrical engineering: https://nces.ed.gov/programs/digest/d15/tables/dt15_325.45.a...
Mechanical engineering: https://www.bu.edu/eng/about/dean-lutchen/engineerings-gende....