Add vlog for when unsupported ops are marked for outside compilation.

PiperOrigin-RevId: 348050595
Change-Id: I72221b6db94f04a3cf363bdc0754e8eb5e06d658
This commit is contained in:
Ken Franko 2020-12-17 10:44:34 -08:00 committed by TensorFlower Gardener
parent 1ea36b6b53
commit 911a08098a

View File

@ -198,6 +198,9 @@ LogicalResult MarkUncompilableOps(
int outside_compiled_cluster_counter = 0;
block->walk([&](Operation* op) {
if (!IsSupportedOp(*op, supported_ops, tf_dialect)) {
VLOG(3) << "Cloud TPU: Op " << op->getName().getStringRef().str()
<< " isn't compilable, adding outside_compilation attr. "
"This op will automatically be placed on CPU.";
op->setAttr(
kXlaOutsideCompilationAttr,
StringAttr::get(