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

Method FullyDefined

tensorflow/core/framework/shape_inference.cc:305–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305bool InferenceContext::FullyDefined(ShapeHandle s) {
306 if (!RankKnown(s)) return false;
307 for (int i = 0; i < Rank(s); ++i) {
308 if (!ValueKnown(Dim(s, i))) return false;
309 }
310 return true;
311}
312
313DimensionHandle InferenceContext::NumElements(ShapeHandle s) {
314 const auto rank = Rank(s);

Callers 13

xla_ops.ccFile · 0.80
data_flow_ops.ccFile · 0.80
array_ops.ccFile · 0.80
TEST_FFunction · 0.80
UpdateNodeMethod · 0.80
AllOutputValuesKnownMethod · 0.80
AllInputValuesKnownMethod · 0.80

Calls 1

RankFunction · 0.50

Tested by 1

TEST_FFunction · 0.64