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

Function ScalarShape

tensorflow/core/framework/common_shape_fns.h:205–208  ·  view source on GitHub ↗

Shape function for ops that output a single scalar value.

Source from the content-addressed store, hash-verified

203
204// Shape function for ops that output a single scalar value.
205inline 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.
211inline Status MergeBothInputsShapeFn(InferenceContext* c) {

Callers 9

TESTFunction · 0.70
xrt_execute_op.ccFile · 0.50
data_flow_ops.ccFile · 0.50
dataset_ops.ccFile · 0.50
ArgOpShapeFunction · 0.50
parquet_ops.ccFile · 0.50

Calls 2

set_outputMethod · 0.45
ScalarMethod · 0.45

Tested by 1

TESTFunction · 0.56