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

Function StatefulRandomShape

tensorflow/core/ops/stateful_random_ops.cc:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace tensorflow {
21
22Status StatefulRandomShape(shape_inference::InferenceContext* c) {
23 using shape_inference::ShapeHandle;
24 // Check algorithm shape
25 ShapeHandle unused;
26 TF_RETURN_IF_ERROR(c->WithRank(c->input(1), 0, &unused));
27 // Set output shape
28 ShapeHandle out;
29 TF_RETURN_IF_ERROR(c->MakeShapeFromShapeTensor(2, &out));
30 c->set_output(0, out);
31 return Status::OK();
32}
33
34#define REGISTER_STATEFUL_OP(name, default_dtype) \
35 REGISTER_OP(name) \

Callers

nothing calls this directly

Calls 4

WithRankMethod · 0.45
inputMethod · 0.45
set_outputMethod · 0.45

Tested by

no test coverage detected