mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-07 12:20:24 +01:00
Pass stats_collector when using SymbolicGradientOp.
PiperOrigin-RevId: 163773897
This commit is contained in:
parent
5202a5b6cf
commit
14b7367613
|
|
@ -240,6 +240,7 @@ class SymbolicGradientOp : public AsyncOpKernel {
|
||||||
opts.rendezvous = ctx->rendezvous();
|
opts.rendezvous = ctx->rendezvous();
|
||||||
opts.cancellation_manager = ctx->cancellation_manager();
|
opts.cancellation_manager = ctx->cancellation_manager();
|
||||||
opts.runner = ctx->runner();
|
opts.runner = ctx->runner();
|
||||||
|
opts.stats_collector = ctx->stats_collector();
|
||||||
std::vector<Tensor> args;
|
std::vector<Tensor> args;
|
||||||
args.reserve(ctx->num_inputs());
|
args.reserve(ctx->num_inputs());
|
||||||
for (int i = 0; i < ctx->num_inputs(); ++i) {
|
for (int i = 0; i < ctx->num_inputs(); ++i) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user