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

Method DimensionOrConstant

tensorflow/core/framework/shape_inference.h:806–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804 : rank_(dims.size()), dims_(dims) {}
805
806inline DimensionOrConstant::DimensionOrConstant(DimensionHandle dim)
807 : dim(dim) {
808 DCHECK(dim.IsSet()) << "Internal error: Got nullptr for Dimension.";
809}
810
811inline DimensionOrConstant::DimensionOrConstant(int64 val) : val(val) {
812 DCHECK(val >= 0 || val == InferenceContext::kUnknownDim)

Callers

nothing calls this directly

Calls 1

IsSetMethod · 0.45

Tested by

no test coverage detected