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

Function ShapeOp

tensorflow/c/eager/c_api_test_util.cc:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162TFE_Op* ShapeOp(TFE_Context* ctx, TFE_TensorHandle* a) {
163 TF_Status* status = TF_NewStatus();
164
165 TFE_Op* op = TFE_NewOp(ctx, "Shape", status);
166 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
167 TFE_OpAddInput(op, a, status);
168 CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
169 TF_DeleteStatus(status);
170 TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(a));
171
172 return op;
173}
174
175TFE_TensorHandle* TestAxisTensorHandle() {
176 int64_t dims[] = {1};

Callers 1

TESTFunction · 0.70

Calls 8

TF_NewStatusFunction · 0.85
TFE_NewOpFunction · 0.85
TF_GetCodeFunction · 0.85
TF_MessageFunction · 0.85
TFE_OpAddInputFunction · 0.85
TF_DeleteStatusFunction · 0.85
TFE_OpSetAttrTypeFunction · 0.85
TFE_TensorHandleDataTypeFunction · 0.85

Tested by

no test coverage detected