Here are my 2 cents as a male (thus my opinion on the issue automatically doesn't carry any weight to most of you). Women chose to pursue tech less than men (just look at any open source project), and this starts way before college. I took CS in high school - not because anybody encouraged me, but because I taught myself how to code as a kid in order to make videogames and cheat at them - and there were very few women in that class.
That's why it boggles my mind when people act as if discrimination is the reason why women are underrepresented in tech. Girls are underrepresented in introductory CS courses in high school, meaning they're clearly not even choosing to pursue the field as much as men. You can't claim discrimination if they're not even signing up for the introductory classes. And anyone who's taken a CS course in college knows that at least half the students there have been coding since they were kids (I graduated a while ago so I'd imagine that's even more the case now) - again, not because anybody told them to, but because they sought that knowledge out themselves - which can be intimidating to newcomers who've never seen "Hello, World".
Videogames are probably the main reason why men pursue CS more than women. The naive feminist will say "videogames are targeted towards boys". Yes they are - but that's because videogame developers are predominantly male, and game developers are more likely to create games that they themselves would enjoy. Videogames being male-dominated is simply a reflection of gendered biological differences, not some conspiracy to exclude women.
Any sort of discrimination on the basis of gender/race is a problem, that's a given and nobody will dispute that. But it should not be considered a problem that women choose to pursue tech less than men, just like it's not considered a problem that men are less likely to pursue nursing, primary/secondary education, psychiatry, fashion, and yoga teaching. Men who like yoga don't give a fuck about the underrepresentation of men in yoga classes.
At the end of the day, this "diversity" debate gets way too much attention. There used to be a time when the focus was on the tech and doing cool things, not what people looked like.