Mark the dX and dB outputs of ConvGrad as OpSchema::Optional. (#5462)

* Mark the dB output of ConvGrad as OpSchema::Optional.

* Also mark dX as optional

Co-authored-by: Derek Murray <demurra@microsoft.com>
This commit is contained in:
Derek Murray 2020-10-15 16:54:17 -07:00 committed by GitHub
parent 64f6d856e4
commit 6f65e2ad2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -418,9 +418,9 @@ void RegisterTrainingOpSchemas() {
.Input(0, "dY", "Gradient of output Y", "T")
.Input(1, "X", "Input tensor", "T")
.Input(2, "W", "Weight tensor", "T")
.Output(0, "dX", "Gradient of input X", "T")
.Output(0, "dX", "Gradient of input X", "T", OpSchema::Optional)
.Output(1, "dW", "Gradient of W", "T")
.Output(2, "dB", "Gradient of B", "T")
.Output(2, "dB", "Gradient of B", "T", OpSchema::Optional)
.AllowUncheckedAttributes()
.TypeConstraint(
"T",