[XLA:GPU] Mark constructor explicit to comply with C++ style.

PiperOrigin-RevId: 262348298
This commit is contained in:
A. Unique TensorFlower 2019-08-08 07:32:37 -07:00 committed by TensorFlower Gardener
parent 3cf761fdd9
commit 05f5e01deb

View File

@ -29,9 +29,9 @@ namespace xla {
class BatchNormExpander : public HloModulePass {
public:
// When use_fusion is set, a multi-output fusion node is created.
BatchNormExpander(bool rewrite_training_op = false,
bool rewrite_inference_op = false,
bool rewrite_grad_op = false)
explicit BatchNormExpander(bool rewrite_training_op = false,
bool rewrite_inference_op = false,
bool rewrite_grad_op = false)
: rewrite_training_op_(rewrite_training_op),
rewrite_inference_op_(rewrite_inference_op),
rewrite_grad_op_(rewrite_grad_op) {}