MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Compute

Method Compute

tensorflow/core/kernels/data/random_seed_ops.cc:83–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 : AnonymousResourceOp<RandomSeedGenerator>(ctx) {}
82
83void AnonymousRandomSeedGeneratorHandleOp::Compute(OpKernelContext* ctx) {
84 int64 seed;
85 OP_REQUIRES_OK(ctx, ParseScalarArgument<int64>(ctx, kSeed, &seed));
86 int64 seed2;
87 OP_REQUIRES_OK(ctx, ParseScalarArgument<int64>(ctx, kSeed2, &seed2));
88 if (seed == 0 && seed2 == 0) {
89 seed = random::New64();
90 seed2 = random::New64();
91 }
92 seed_ = seed;
93 seed2_ = seed2;
94 AnonymousResourceOp<RandomSeedGenerator>::Compute(ctx);
95}
96
97string AnonymousRandomSeedGeneratorHandleOp::name() {
98 return kRandomSeedGenerator;

Callers

nothing calls this directly

Calls 6

New64Function · 0.85
ComputeFunction · 0.50
inputMethod · 0.45
DeleteMethod · 0.45
resource_managerMethod · 0.45
SetStatusMethod · 0.45

Tested by

no test coverage detected