Home
last modified time | relevance | path

Searched refs:node_builder (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/core/graph/
Dgraph_def_builder.cc103 NodeBuilder node_builder(opts.GetNameForOp(op_name), op_name, in SourceOp() local
105 return opts.FinalizeBuilder(&node_builder); in SourceOp()
111 NodeBuilder node_builder(opts.GetNameForOp(op_name), op_name, in UnaryOp() local
113 node_builder.Input(std::move(input)); in UnaryOp()
114 return opts.FinalizeBuilder(&node_builder); in UnaryOp()
120 NodeBuilder node_builder(opts.GetNameForOp(op_name), op_name, in BinaryOp() local
122 node_builder.Input(std::move(a)).Input(std::move(b)); in BinaryOp()
123 return opts.FinalizeBuilder(&node_builder); in BinaryOp()
Dgraph_partition.cc398 NodeBuilder node_builder(node_name, "Enter", g->op_registry()); in AddControlEnter() local
399 node_builder.Input({"dummy", 0, DT_FLOAT}); in AddControlEnter()
400 node_builder.Attr("frame_name", frame_name); in AddControlEnter()
401 node_builder.Attr("parallel_iterations", parallel_iterations); in AddControlEnter()
403 *status = node_builder.Finalize(g, &res_node); in AddControlEnter()
413 NodeBuilder node_builder(node_name, "Merge", g->op_registry()); in AddControlMerge() local
414 node_builder.Input({{in_name1, 0, DT_FLOAT}, {in_name2, 0, DT_FLOAT}}); in AddControlMerge()
416 *status = node_builder.Finalize(g, &res_node); in AddControlMerge()
444 NodeBuilder node_builder(options.GetNameForOp("Const"), "Const", in EmptyConst() local
451 node_builder.Attr("dtype", dt).Attr("value", proto); in EmptyConst()
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/data/vectorization/
Ddecode_csv_vectorizer.cc40 auto node_builder = NodeBuilder(node.type_string(), node.type_string()) in Vectorize() local
45 node_builder = node_builder.Attr(attr.first, attr.second); in Vectorize()
47 TF_RETURN_IF_ERROR(node_builder.Finalize(outer_scope, &new_node)); in Vectorize()
Dparse_single_example_vectorizer.cc72 auto node_builder = in Vectorize() local
84 node_builder = node_builder.Attr(attr, *val); in Vectorize()
87 TF_RETURN_IF_ERROR(node_builder.Finalize(outer_scope, &new_node)); in Vectorize()
Dcwise_op_vectorizer.cc120 auto node_builder = NodeBuilder(strings::StrCat("vectorized/", node.name()), in CwiseVectorizeHelper() local
123 node_builder = node_builder.Input(input.node, input.output_index); in CwiseVectorizeHelper()
126 node_builder = node_builder.Attr(attr_slice.first, attr_slice.second); in CwiseVectorizeHelper()
128 TF_RETURN_IF_ERROR(node_builder.Finalize(outer_scope, &new_node)); in CwiseVectorizeHelper()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dvectorization_utils.cc429 auto node_builder = [](StringPiece op) { in StackTensor() local
433 auto make_const = [&node_builder](const Input::Initializer& val, Graph* graph, in StackTensor()
436 return node_builder("Const") in StackTensor()
449 node_builder("Shape").Input(input_node).Finalize(g, &shape_node)); in StackTensor()
457 TF_RETURN_IF_ERROR(node_builder("StridedSlice") in StackTensor()
465 TF_RETURN_IF_ERROR(node_builder("Reshape") in StackTensor()
472 TF_RETURN_IF_ERROR(node_builder("Shape") in StackTensor()
478 node_builder("OnesLike").Input(ones_shape).Finalize(g, &ones)); in StackTensor()
484 TF_RETURN_IF_ERROR(node_builder("Concat") in StackTensor()
490 TF_RETURN_IF_ERROR(node_builder("ExpandDims") in StackTensor()
[all …]
Dvectorization_utils_test.cc895 auto node_builder = NodeBuilder("op", op_type); in CwiseTestHelper() local
903 node_builder = node_builder.Input(arg); in CwiseTestHelper()
905 TF_RETURN_IF_ERROR(node_builder.Finalize(&graph, &op)); in CwiseTestHelper()
/external/tensorflow/tensorflow/core/common_runtime/
Dparallel_concat_optimizer.cc56 NodeBuilder node_builder(name, op, OpRegistry::Global(), &debug_info); in Run() local
57 node_builder.Device(n->requested_device()); in Run()
60 node_builder.Attr("_class", colo); in Run()
62 return node_builder; in Run()
Daccumulate_n_optimizer.cc79 NodeBuilder node_builder(name, op, OpRegistry::Global(), &debug_info); in rewriteNode() local
82 node_builder.Device(n->requested_device()); in rewriteNode()
85 node_builder.Attr(kColocationAttrName, colo); in rewriteNode()
87 return node_builder; in rewriteNode()
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_subgraphs_pass_test.cc360 NodeBuilder node_builder(opts.GetNameForOp("NoOp"), "NoOp", in Sequencer() local
363 .FinalizeBuilder(&node_builder); in Sequencer()
377 NodeBuilder node_builder(opts.GetNameForOp("Const"), "Const", in KnownShapeBase() local
386 .FinalizeBuilder(&node_builder); in KnownShapeBase()
401 NodeBuilder node_builder(absl::StrCat(call_node, "_key_placeholder"), in KeyPlaceholder() local
408 .FinalizeBuilder(&node_builder); in KeyPlaceholder()
418 NodeBuilder node_builder(opts.WithName(name).GetNameForOp("_XlaRecvAtHost"), in RecvAtHost() local
420 node_builder.Input(std::move(key_input)); in RecvAtHost()
426 .FinalizeBuilder(&node_builder); in RecvAtHost()
437 NodeBuilder node_builder(opts.WithName(name).GetNameForOp("_XlaSendFromHost"), in SendFromHost() local
[all …]
Dencapsulate_subgraphs_pass.cc1844 NodeBuilder node_builder(options.GetNameForOp("KnownShape"), "Const", in AddDummyShapedNode() local
1846 node_builder.Attr("dtype", data_type).Attr("value", dummy_proto); in AddDummyShapedNode()
1847 Node* node = options.FinalizeBuilder(&node_builder); in AddDummyShapedNode()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_graph.cc535 NodeDefBuilder node_builder(info.engine_name, "TRTEngineOp"); in CreateTRTNode() local
536 if (!info.device.empty()) node_builder.Device(info.device); in CreateTRTNode()
544 node_builder.Input(inputs); in CreateTRTNode()
546 node_builder.ControlInput(c); in CreateTRTNode()
555 node_builder.Attr("input_shapes", input_shape_protos) in CreateTRTNode()
652 NodeDefBuilder node_builder(StrCat(name, "_Arg"), in RegisterSegmentFunctionToFunctionLibrary() local
655 TF_RETURN_IF_ERROR(node_builder.Attr("T", node->output_type(0)) in RegisterSegmentFunctionToFunctionLibrary()
679 NodeDefBuilder node_builder(StrCat(name, "_Ret"), in RegisterSegmentFunctionToFunctionLibrary() local
688 node_builder.Input(nout); in RegisterSegmentFunctionToFunctionLibrary()
689 TF_RETURN_IF_ERROR(node_builder.Attr("T", node->output_type(0)) in RegisterSegmentFunctionToFunctionLibrary()
/external/tensorflow/tensorflow/c/
Dc_api.cc1212 desc->node_builder.Device(device); in TF_SetDevice()
1216 desc->node_builder.Input(&input.oper->node, input.index); in TF_AddInput()
1226 desc->node_builder.Input(input_list); in TF_AddInputList()
1230 desc->node_builder.ControlInput(&input->node); in TF_AddControlInput()
1241 desc->node_builder.Attr(attr_name, s); in TF_SetAttrString()
1259 desc->node_builder.Attr(attr_name, v); in TF_SetAttrStringList()
1267 desc->node_builder.Attr(attr_name, static_cast<tensorflow::int64>(value)); in TF_SetAttrInt()
1274 desc->node_builder.Attr( in TF_SetAttrIntList()
1282 desc->node_builder.Attr(attr_name, value); in TF_SetAttrFloat()
1287 desc->node_builder.Attr(attr_name, in TF_SetAttrFloatList()
[all …]
Dc_api_internal.h117 : node_builder(node_name, op_type, g->graph.op_registry()), graph(g) {} in TF_OperationDescription()
119 tensorflow::NodeBuilder node_builder; member
Dc_api_experimental.cc9072 desc->node_builder.Attr(attr.first, attr.second); in TFE_AddEagerOpToGraph()
9078 const tensorflow::OpDef& op_def = desc->node_builder.op_def(); in TFE_AddEagerOpToGraph()
/external/tensorflow/tensorflow/core/framework/
Ddataset.cc217 NodeBuilder node_builder(opts->GetNameForOp(type_string), type_string, in AddDataset() local
225 node_builder.Input(NodeBuilder::NodeOut(inputs_iter->second)); in AddDataset()
234 node_builder.Input(nodeout_inputs); in AddDataset()
241 *output = opts->FinalizeBuilder(&node_builder); in AddDataset()
/external/tensorflow/tensorflow/contrib/cmake/
Dtf_core_cpu.cmake57 "${tensorflow_source_dir}/tensorflow/core/graph/node_builder.h"
58 "${tensorflow_source_dir}/tensorflow/core/graph/node_builder.cc"
Dtf_core_framework.cmake293 "${tensorflow_source_dir}/tensorflow/core/graph/node_builder.h"
294 "${tensorflow_source_dir}/tensorflow/core/graph/node_builder.cc"
/external/tensorflow/tensorflow/core/
DBUILD1430 "graph/node_builder.h",
2683 "graph/node_builder.h",
2786 "graph/node_builder.cc",
2938 "graph/node_builder.h",