Searched refs:shape_inference_fn (Results 1 – 19 of 19) sorted by relevance
37 if (op_reg_data->shape_inference_fn == nullptr) return OkStatus(); in RunShapeInference()48 TF_RETURN_IF_ERROR(ic.Run(op_reg_data->shape_inference_fn)); in RunShapeInference()
117 TF_CHECK_OK(reg->shape_inference_fn(&c)); in TEST()136 TF_CHECK_OK(reg->shape_inference_fn(&c)); in TEST()154 TF_CHECK_OK(reg->shape_inference_fn(&c)); in TEST()
69 : op_def(def), shape_inference_fn(fn), is_function_op(is_function) {} in op_def()72 OpShapeInferenceFn shape_inference_fn; member
66 if (op_reg_data->shape_inference_fn == nullptr) { in InferShapes()72 TF_RETURN_IF_ERROR(c.Run(op_reg_data->shape_inference_fn)); in InferShapes()
653 if (op_reg_data_.shape_inference_fn != nullptr) { in SetShapeFn()657 op_reg_data_.shape_inference_fn = OpShapeInferenceFn(fn); in SetShapeFn()
59 *shape_fn_out = op_reg_data.shape_inference_fn; in ExpectSuccess()
1074 ASSERT_NE(op_reg_data->shape_inference_fn, nullptr); in TEST()
29 EXPECT_TRUE(op_reg_data.shape_inference_fn != nullptr) in TEST()
41 TF_ASSERT_OK(c.Run(op_reg_data->shape_inference_fn)); in TEST()
230 CHECK(op_reg_data->shape_inference_fn != nullptr); in TEST()236 Status s = c->Run(op_reg_data->shape_inference_fn); in TEST()
237 ASSERT_TRUE(op_reg_data->shape_inference_fn != nullptr); in TEST()238 TF_ASSERT_OK(c.Run(op_reg_data->shape_inference_fn)); in TEST()
216 if (!op_reg_data->shape_inference_fn) { in InferReturnTypeComponentsForTFOp()281 auto status = c.Run(op_reg_data->shape_inference_fn); in InferReturnTypeComponentsForTFOp()348 auto status = c.Run(op_reg_data->shape_inference_fn); in InferReturnTypeComponentsForTFOp()
254 if (op_reg_data->shape_inference_fn == nullptr && in AddNodeInternal()395 if (op_reg_data->shape_inference_fn == nullptr && in UpdateNode()402 if (!op_reg_data->shape_inference_fn) { in UpdateNode()713 if (op_reg_data->shape_inference_fn) { in RunShapeFn()714 TF_RETURN_IF_ERROR(c->Run(op_reg_data->shape_inference_fn)); in RunShapeFn()
86 } else if (!op_reg_data->shape_inference_fn) { in PrintNodeInfo()
657 if (node_data->op_reg_data()->shape_inference_fn == nullptr) { in ValidateOutputTensorShapeConsistency()662 status = c.Run(node_data->op_reg_data()->shape_inference_fn); in ValidateOutputTensorShapeConsistency()
681 if (op_reg_data->shape_inference_fn == nullptr) { in TFE_InferShapes()688 status->status = c.Run(op_reg_data->shape_inference_fn); in TFE_InferShapes()
145 TF_RETURN_IF_ERROR(data->shape_inference_fn(&ic)); in CompileToCustomCallCallingTfKernel()
1921 if (!c->op_data || c->op_data->shape_inference_fn == nullptr || in InferShapes()1922 !c->inference_context->Run(c->op_data->shape_inference_fn).ok()) { in InferShapes()
1224 if (op_reg_data->shape_inference_fn == nullptr) { in InferOutputType()1233 TF_RETURN_IF_ERROR(c.Run(op_reg_data->shape_inference_fn)); in InferOutputType()