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

Method Min

tensorflow/core/framework/shape_inference.cc:1130–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130Status InferenceContext::Min(DimensionHandle first, DimensionOrConstant second,
1131 DimensionHandle* out) {
1132 const int64 first_value = Value(first);
1133 const int64 second_value = Value(second);
1134 if (first_value == 0) {
1135 *out = first;
1136 } else if (second_value == 0) {
1137 *out = MakeDim(second);
1138 } else if (first_value == kUnknownDim || second_value == kUnknownDim) {
1139 *out = UnknownDim();
1140 } else {
1141 if (first_value <= second_value) {
1142 *out = first;
1143 } else {
1144 *out = MakeDim(second);
1145 }
1146 }
1147 return Status::OK();
1148}
1149
1150Status InferenceContext::Max(DimensionHandle first, DimensionOrConstant second,
1151 DimensionHandle* out) {

Callers 5

testMinMethod · 0.45
QrShapeFnFunction · 0.45
SvdShapeFnFunction · 0.45
array_ops.ccFile · 0.45
TEST_FFunction · 0.45

Calls 1

ValueClass · 0.70

Tested by 2

testMinMethod · 0.36
TEST_FFunction · 0.36