/external/tensorflow/tensorflow/core/framework/ |
D | op.cc | 40 const OpRegistrationData* op_reg_data = nullptr; in LookUpOpDef() local 41 TF_RETURN_IF_ERROR(LookUp(op_type_name, &op_reg_data)); in LookUpOpDef() 42 *op_def = &op_reg_data->op_def; in LookUpOpDef() 62 const OpRegistrationData** op_reg_data) const { in LookUp() 68 *op_reg_data = res; in LookUp() 73 return LookUpSlow(op_type_name, op_reg_data); in LookUp() 77 const OpRegistrationData** op_reg_data) const { in LookUpSlow() 78 *op_reg_data = nullptr; in LookUpSlow() 121 *op_reg_data = res; in LookUpSlow() 221 std::unique_ptr<OpRegistrationData> op_reg_data(new OpRegistrationData); in RegisterAlreadyLocked() local [all …]
|
D | op_def_builder_test.cc | 45 OpRegistrationData op_reg_data; in ExpectSuccess() local 46 Status status = builder.Finalize(&op_reg_data); in ExpectSuccess() 48 OpDef& op_def = op_reg_data.op_def; in ExpectSuccess() 59 *shape_fn_out = op_reg_data.shape_inference_fn; in ExpectSuccess() 65 OpRegistrationData op_reg_data; in ExpectOrdered() local 66 Status status = builder.Finalize(&op_reg_data); in ExpectOrdered() 68 OpDef& op_def = op_reg_data.op_def; in ExpectOrdered() 78 OpRegistrationData op_reg_data; in ExpectFailure() local 79 Status status = builder.Finalize(&op_reg_data); in ExpectFailure() 630 OpRegistrationData op_reg_data; in TEST_F() local [all …]
|
D | common_shape_fns_test.cc | 38 OpRegistrationData op_reg_data; in MakeOpDef() local 46 CHECK(b.Attr("foo:string").Finalize(&op_reg_data).ok()); in MakeOpDef() 47 return op_reg_data.op_def; in MakeOpDef() 53 OpRegistrationData op_reg_data; in TEST() local 57 .Finalize(&op_reg_data)); in TEST() 58 OpDef op_def = op_reg_data.op_def; in TEST() 73 OpRegistrationData op_reg_data; in TEST() local 77 .Finalize(&op_reg_data)); in TEST() 78 OpDef op_def = op_reg_data.op_def; in TEST() 101 OpRegistrationData op_reg_data; in TEST() local [all …]
|
D | shape_inference_testutil.cc | 32 const OpRegistrationData* op_reg_data; in InferShapes() local 33 TF_RETURN_IF_ERROR(OpRegistry::Global()->LookUp(op.name, &op_reg_data)); in InferShapes() 64 op.graph_def_version, &op.node_def, op_reg_data->op_def, in_shapes, in InferShapes() 67 if (op_reg_data->shape_inference_fn == nullptr) { in InferShapes() 73 TF_RETURN_IF_ERROR(c.Run(op_reg_data->shape_inference_fn)); in InferShapes()
|
D | op.h | 49 const OpRegistrationData** op_reg_data) const = 0; 75 const OpRegistrationData** op_reg_data) const override; 148 const OpRegistrationData** op_reg_data) const; 173 const OpRegistrationData** op_reg_data) const override;
|
D | op_registration_test.cc | 28 registry->Register([op_name](OpRegistrationData* op_reg_data) -> Status { in Register() argument 29 op_reg_data->op_def.set_name(op_name); in Register()
|
D | graph_def_util_test.cc | 32 OpRegistrationData op_reg_data; in FinalizeOpDef() local 33 const Status s = b.Finalize(&op_reg_data); in FinalizeOpDef() 34 *op_def = op_reg_data.op_def; in FinalizeOpDef()
|
D | dataset.cc | 277 const OpRegistrationData* op_reg_data = nullptr; in AddFunction() local 278 TF_RETURN_IF_ERROR(ctx->flib_def().LookUp(node_def.op(), &op_reg_data)); in AddFunction() 279 if (op_reg_data->is_function_op) { in AddFunction() 280 TF_RETURN_IF_ERROR(AddFunction(ctx, op_reg_data->op_def.name())); in AddFunction()
|
D | op_def_util_test.cc | 46 OpRegistrationData op_reg_data; in TestBuilder() local 47 Status status = builder.Finalize(&op_reg_data); in TestBuilder() 52 return ValidateOpDef(op_reg_data.op_def); in TestBuilder()
|
D | op_def_builder.h | 152 Status Finalize(OpRegistrationData* op_reg_data) const;
|
D | node_def_util_test.cc | 35 OpRegistrationData op_reg_data; in ToOpDef() local 36 TF_EXPECT_OK(builder.Finalize(&op_reg_data)); in ToOpDef() 37 return op_reg_data.op_def; in ToOpDef()
|
D | function.cc | 1267 const string& op, const OpRegistrationData** op_reg_data) const { in LookUp() 1271 *op_reg_data = &iter->second->op_registration_data; in LookUp() 1274 return default_registry_->LookUp(op, op_reg_data); in LookUp() 1551 OpRegistrationData op_reg_data; in Create() local 1552 TF_CHECK_OK(b.Finalize(&op_reg_data)); in Create() 1553 fdef.mutable_signature()->Swap(&op_reg_data.op_def); in Create() 1607 OpRegistrationData op_reg_data; in Define() local 1608 TF_CHECK_OK(b.Finalize(&op_reg_data)); in Define() 1609 fdef.mutable_signature()->Swap(&op_reg_data.op_def); in Define()
|
/external/tensorflow/tensorflow/core/ops/ |
D | tpu_embedding_ops.cc | 78 OpRegistrationData* op_reg_data) { in RegisterPerTableLoadOpsForAlgorithmBody() argument 88 auto* op_def = &op_reg_data->op_def; in RegisterPerTableLoadOpsForAlgorithmBody() 188 op_reg_data->shape_inference_fn = shape_inference_function; in RegisterPerTableLoadOpsForAlgorithmBody() 194 OpRegistrationData* op_reg_data) { in RegisterPerTableRetrieveOpsForAlgorithmBody() argument 205 auto* op_def = &op_reg_data->op_def; in RegisterPerTableRetrieveOpsForAlgorithmBody() 284 op_reg_data->shape_inference_fn = shape_inference_function; in RegisterPerTableRetrieveOpsForAlgorithmBody() 292 [alg](OpRegistrationData* op_reg_data) -> Status { in RegisterPerTableLoadAndRetrieveOps() argument 294 op_reg_data); in RegisterPerTableLoadAndRetrieveOps() 300 [alg](OpRegistrationData* op_reg_data) -> Status { in RegisterPerTableLoadAndRetrieveOps() argument 302 op_reg_data); in RegisterPerTableLoadAndRetrieveOps() [all …]
|
D | shape_function_test.cc | 28 for (const OpRegistrationData& op_reg_data : op_data) { in TEST() local 29 EXPECT_TRUE(op_reg_data.shape_inference_fn != nullptr) in TEST() 30 << op_reg_data.op_def.name(); in TEST()
|
D | math_ops_test.cc | 203 const OpRegistrationData* op_reg_data; in TEST() local 204 TF_ASSERT_OK(OpRegistry::Global()->LookUp(op.name, &op_reg_data)); in TEST() 209 CHECK(op_reg_data->shape_inference_fn != nullptr); in TEST() 211 TF_GRAPH_DEF_VERSION, &op.node_def, op_reg_data->op_def, in TEST() 215 Status s = c->Run(op_reg_data->shape_inference_fn); in TEST()
|
/external/tensorflow/tensorflow/core/graph/ |
D | validate_test.cc | 99 OpRegistrationData op_reg_data; in TEST() local 100 TF_ASSERT_OK(OpDefBuilder("UniqueSnowflake").Finalize(&op_reg_data)); in TEST() 102 *op_list.add_op() = op_reg_data.op_def; in TEST() 111 OpRegistrationData op_reg_data; in TEST() local 112 TF_ASSERT_OK(OpDefBuilder("NotAnywhere").Finalize(&op_reg_data)); in TEST() 114 *op_list.add_op() = op_reg_data.op_def; in TEST()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | shape_refiner.cc | 245 const OpRegistrationData* op_reg_data; in AddNode() local 246 TF_RETURN_IF_ERROR(ops_registry_->LookUp(node->type_string(), &op_reg_data)); in AddNode() 247 if (op_reg_data->shape_inference_fn == nullptr && in AddNode() 271 TF_RETURN_IF_ERROR(RunShapeFn(node, op_reg_data, ec.get())); in AddNode() 399 const OpRegistrationData* op_reg_data; in UpdateNode() local 400 TF_RETURN_IF_ERROR(ops_registry_->LookUp(node->type_string(), &op_reg_data)); in UpdateNode() 401 if (op_reg_data->shape_inference_fn == nullptr && in UpdateNode() 408 if (!op_reg_data->shape_inference_fn) { in UpdateNode() 413 return RunShapeFn(node, op_reg_data, node_ext_context); in UpdateNode() 622 const OpRegistrationData* op_reg_data, in RunShapeFn() argument [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | kernel_registry.cc | 35 const tensorflow::OpRegistrationData* op_reg_data; in TryFindKernelClass() local 37 tensorflow::OpRegistry::Global()->LookUp(node_def.op(), &op_reg_data); in TryFindKernelClass() 42 AddDefaultsToNodeDef(op_reg_data->op_def, &node_def); in TryFindKernelClass()
|
/external/tensorflow/tensorflow/python/framework/ |
D | cpp_shape_inference.cc | 65 const OpRegistrationData* op_reg_data; in RunCppShapeInferenceImpl() local 66 TF_RETURN_IF_ERROR(OpRegistry::Global()->LookUp(node.op(), &op_reg_data)); in RunCppShapeInferenceImpl() 68 if (op_reg_data->shape_inference_fn == nullptr) { in RunCppShapeInferenceImpl() 128 graph_def_version, &node, op_reg_data->op_def, input_shapes, in RunCppShapeInferenceImpl() 133 TF_RETURN_IF_ERROR(c.Run(op_reg_data->shape_inference_fn)); in RunCppShapeInferenceImpl()
|
/external/tensorflow/tensorflow/python/grappler/ |
D | model_analyzer.cc | 82 const OpRegistrationData* op_reg_data; in PrintNodeInfo() local 83 Status status = OpRegistry::Global()->LookUp(node->op(), &op_reg_data); in PrintNodeInfo() 86 } else if (!op_reg_data->shape_inference_fn) { in PrintNodeInfo()
|
/external/tensorflow/tensorflow/core/distributed_runtime/eager/ |
D | eager_service_impl.cc | 49 const tensorflow::OpRegistrationData* op_reg_data = nullptr; in GetNumRetvals() local 50 auto status = tensorflow::OpRegistry::Global()->LookUp(op_name, &op_reg_data); in GetNumRetvals() 52 status = context->FindFunctionOpData(op_name, &op_reg_data); in GetNumRetvals() 56 const tensorflow::OpDef& op_def = op_reg_data->op_def; in GetNumRetvals()
|
/external/tensorflow/tensorflow/core/api_def/ |
D | update_api_def.cc | 141 OpRegistrationData op_reg_data; in ValidateOpDocs() local 142 TF_CHECK_OK(b.Finalize(&op_reg_data)); in ValidateOpDocs() 143 return CheckDocsMatch(op, op_reg_data.op_def); in ValidateOpDocs()
|
/external/tensorflow/tensorflow/core/common_runtime/eager/ |
D | attr_builder.cc | 57 const OpRegistrationData* op_reg_data = nullptr; in OpDefForOp() local 58 Status s = OpRegistry::Global()->LookUp(op_name, &op_reg_data); in OpDefForOp() 60 *op_def = &op_reg_data->op_def; in OpDefForOp()
|
/external/tensorflow/tensorflow/lite/delegates/flex/ |
D | kernel.cc | 225 const tensorflow::OpRegistrationData* op_reg_data; in InitializeNodeDef() local 227 tensorflow::OpRegistry::Global()->LookUp(nodedef_.op(), &op_reg_data)); in InitializeNodeDef() 228 AddDefaultsToNodeDef(op_reg_data->op_def, &nodedef_); in InitializeNodeDef()
|
/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | model_pruner.cc | 83 const OpRegistrationData* op_reg_data = nullptr; in IsOutputPortRefValue() local 84 Status s = op_registry.LookUp(node.op(), &op_reg_data); in IsOutputPortRefValue() 87 s = OutputTypeForNode(node, op_reg_data->op_def, port_id, &output_type); in IsOutputPortRefValue()
|