Shape function for ops that output a single scalar value.
| 203 | |
| 204 | // Shape function for ops that output a single scalar value. |
| 205 | inline Status ScalarShape(shape_inference::InferenceContext* c) { |
| 206 | c->set_output(0, c->Scalar()); |
| 207 | return Status::OK(); |
| 208 | } |
| 209 | |
| 210 | // Shape function for binary ops where both inputs and the output match. |
| 211 | inline Status MergeBothInputsShapeFn(InferenceContext* c) { |