Add newer version of ops to gradient exclusion list
PiperOrigin-RevId: 290645847 Change-Id: I6057a7bc93ade001b976aa97186263b9cfc6368e
This commit is contained in:
parent
732986d06b
commit
20b2863cee
@ -2957,6 +2957,7 @@ bool OpGradientDoesntRequireOutputIndices(
|
|||||||
{"Cos", {true, {}}},
|
{"Cos", {true, {}}},
|
||||||
{"Tan", {true, {}}},
|
{"Tan", {true, {}}},
|
||||||
{"Add", {true, {}}},
|
{"Add", {true, {}}},
|
||||||
|
{"AddV2", {true, {}}},
|
||||||
{"Sub", {true, {}}},
|
{"Sub", {true, {}}},
|
||||||
{"Mul", {true, {}}},
|
{"Mul", {true, {}}},
|
||||||
{"Div", {true, {}}},
|
{"Div", {true, {}}},
|
||||||
@ -2984,6 +2985,8 @@ bool OpGradientDoesntRequireOutputIndices(
|
|||||||
|
|
||||||
// Ops that don't require a subset of outputs.
|
// Ops that don't require a subset of outputs.
|
||||||
{"FusedBatchNorm", {false, {0, 1, 2}}},
|
{"FusedBatchNorm", {false, {0, 1, 2}}},
|
||||||
|
{"FusedBatchNormV2", {false, {0, 1, 2}}},
|
||||||
|
{"FusedBatchNormV3", {false, {0, 1, 2}}},
|
||||||
});
|
});
|
||||||
|
|
||||||
auto it = m->find(op_name);
|
auto it = m->find(op_name);
|
||||||
@ -3031,6 +3034,8 @@ bool OpGradientDoesntRequireInputIndices(
|
|||||||
|
|
||||||
// Ops that don't require a subset of inputs.
|
// Ops that don't require a subset of inputs.
|
||||||
{"FusedBatchNorm", {false, {2}}},
|
{"FusedBatchNorm", {false, {2}}},
|
||||||
|
{"FusedBatchNormV2", {false, {2}}},
|
||||||
|
{"FusedBatchNormV3", {false, {2}}},
|
||||||
});
|
});
|
||||||
|
|
||||||
auto it = m->find(op_name);
|
auto it = m->find(op_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user