WASHINGTON — Defense Secretary Jim Mattis is offering a dim view of females serving in infantry jobs, telling Virginia Military Institute students that the jury is out on whether women can succeed in combat.

Mattis says there are too few women in the infantry ranks to provide enough data on how it’s going. He says he has asked top Army and Marine leaders for information to determine if having women in the infantry is a strength or weakness.

“There are a few stalwart young ladies who are charging into this, but they are too few,” Mattis said during a visit to VMI, which is in Lexington, Virginia. “Clearly the jury is out on it, but what we’re trying to do is give it every opportunity to succeed if it can.”

The Army has seen an increase in the number of women in combat units, including in infantry jobs. In the Army, almost 800 women are serving in infantry, cavalry and fire support, across five divisions.

So far, there are 51 female infantry officers and 253 women in the enlisted ranks of the infantry, according to the Army. Another 51 women are serving in the officer and enlisted ranks in the Army Reserve. In addition, 17 women have passed the Army’s grueling two-month Ranger course.

As of late August, there were just 26 female enlisted Marines in the infantry and one female officer, according to the Marine Corps. More broadly, however, the number of women in Marine combat units that were previously open only to men has grown steadily, from 254 last year to 382 this year — a 50 percent increase.

In early 2013, then-Defense Secretary Leon Panetta opened the door to women serving in combat jobs. The military services studied the issue, and in their final recommendations only the Marine Corps leaders argued for an exception so they could keep certain infantry and ground combat jobs open only to men. In December 2015, then-Defense Secretary Ash Carter rejected the Corps' request and ordered all combat posts be opened to women.

Responding to a question from a male student, who described some of his female classmates as fierce, Mattis said the issue must be resolved by military officers who are objective and understand that the natural inclination is to have service open to all. But, he added, "we cannot do something that militarily doesn't make sense."

Mattis likened the issue to having someone break into your house and having to decide "who grabs the baseball bat" to protect the children and "who reaches for the phone to call 911." He didn't offer suggestions on what the answer would be.

The Army and Marine Corps have acknowledged that the number of women seeking infantry jobs will probably be small. And women have struggled to pass the demanding training courses.

This year, for the first time, female Marines were allowed to attend the previously male-only entry-level course at the Marine Combat Training Battalion at Camp Pendleton, California. Before that, women only attended combat training at Camp Lejeune in North Carolina.

Because of the growth, Army leaders earlier this year decided to integrate female officers into infantry and armor brigades at three additional military bases: Fort Carson in Colorado, Fort Campbell in Kentucky, and Fort Bliss in Texas.

The increase — from two bases now to five — means there will be women in infantry and armor units at 45 percent of the Army installations that have combat brigades. Until now, the integrated units were only at Fort Hood in Texas and Fort Bragg in North Carolina.

Staff writer Meghann Myers contributed to this report.