Home
last modified time | relevance | path

Searched refs:AddNodeAttr (Results 1 – 25 of 35) sorted by relevance

12

/external/tensorflow/tensorflow/core/framework/
Dnode_def_util.h76 void AddNodeAttr(StringPiece name, const AttrValue& value, NodeDef* node_def);
77 void AddNodeAttr(StringPiece name, AttrValue&& value, NodeDef* node_def);
78 void AddNodeAttr(StringPiece name, StringPiece value, NodeDef* node_def);
79 void AddNodeAttr(StringPiece name, const char* value, NodeDef* node_def);
80 void AddNodeAttr(StringPiece name, int32 value, NodeDef* node_def);
81 void AddNodeAttr(StringPiece name, int64 value, NodeDef* node_def);
82 void AddNodeAttr(StringPiece name, float value, NodeDef* node_def);
83 void AddNodeAttr(StringPiece name, double value, NodeDef* node_def);
84 void AddNodeAttr(StringPiece name, bool value, NodeDef* node_def);
85 void AddNodeAttr(StringPiece name, DataType value, NodeDef* node_def);
[all …]
Dnode_def_util_test.cc98 AddNodeAttr("EXTRA", 17, &bad); in TEST()
104 AddNodeAttr("T", 17, &bad); in TEST()
154 AddNodeAttr("T", DT_STRING, &bad); in TEST()
173 AddNodeAttr("e", "orange", &good); in TEST()
179 AddNodeAttr("e", "foo", &bad); in TEST()
608 AddNodeAttr("frame_name", "test_frame", &node_def); in TEST()
629 AddNodeAttr("frame_name", "test_frame", &node_def); in TEST()
Dnode_def_util.cc696 AddNodeAttr(attr_def.name(), attr_def.default_value(), node_def); in AddDefaultsToNodeDef()
830 void AddNodeAttr(StringPiece name, const AttrValue& value, NodeDef* node_def) { in AddNodeAttr() function
835 void AddNodeAttr(StringPiece name, AttrValue&& value, NodeDef* node_def) { in AddNodeAttr() function
840 void AddNodeAttr(StringPiece name, T value, NodeDef* node_def) { \
843 AddNodeAttr(name, attr_value, node_def); \
Dresource_mgr_test.cc174 AddNodeAttr("container", attr_container, &ndef); in ComputePolicy()
177 AddNodeAttr("shared_name", attr_shared_name, &ndef); in ComputePolicy()
Dnode_def_builder.cc279 AddNodeAttr(name, value, &node_def_); in Attr()
286 AddNodeAttr(name, std::move(value), &node_def_); in Attr()
Dfunction_test.cc1283 AddNodeAttr("annotation", true, &ndef); in TEST()
1335 AddNodeAttr(FunctionLibraryDefinition::kFuncAttr, nal, &ndef); in TEST()
1341 AddNodeAttr(FunctionLibraryDefinition::kFuncAttr, nal, &ndef); in TEST()
/external/tensorflow/tensorflow/core/util/
Dequal_graph_def_test.cc257 AddNodeAttr("foo", "bar", &same); in TEST_F()
264 AddNodeAttr("foo", "bar", &actual); in TEST_F()
273 AddNodeAttr("foo", "bar", &expected); in TEST_F()
282 AddNodeAttr("foo", "bar", &actual); in TEST_F()
283 AddNodeAttr("baz", 42, &actual); in TEST_F()
286 AddNodeAttr("baz", 42, &expected); in TEST_F()
287 AddNodeAttr("foo", "bar", &expected); in TEST_F()
295 AddNodeAttr("foo", "bar", &actual); in TEST_F()
296 AddNodeAttr("baz", 5, &actual); in TEST_F()
299 AddNodeAttr("baz", 42, &expected); in TEST_F()
[all …]
/external/tensorflow/tensorflow/tools/graph_transforms/
Drename_attribute_test.cc46 AddNodeAttr("foo", 23, mul_node1); in TestRenameAttribute()
47 AddNodeAttr("bar", "something", mul_node1); in TestRenameAttribute()
54 AddNodeAttr("foo", 46, add_node2); in TestRenameAttribute()
55 AddNodeAttr("bob", 23, add_node2); in TestRenameAttribute()
56 AddNodeAttr("bar", "something else", add_node2); in TestRenameAttribute()
/external/tensorflow/tensorflow/core/graph/
Dgradients.cc73 AddNodeAttr("dtype", DT_FLOAT, &read_def); in AddZerosLike()
82 AddNodeAttr("T", DT_FLOAT, &ndef); in AddZerosLike()
92 AddNodeAttr("T", input.dtype(), &ndef); in AddZerosLike()
127 AddNodeAttr("Tin", in_types, &ndef); in AddSymGrad()
138 AddNodeAttr("Tout", out_types, &ndef); in AddSymGrad()
144 AddNodeAttr("f", func, &ndef); in AddSymGrad()
323 AddNodeAttr("N", static_cast<int64>(grads.size()), &ndef); in SumGradients()
324 AddNodeAttr("T", dtype, &ndef); in SumGradients()
Dgraph_partition.cc1024 AddNodeAttr("_start_time", start_time, dst_def); in Partition()
1134 AddNodeAttr("_start_time", send_start_time, dummy); in Partition()
1170 AddNodeAttr("_start_time", recv_start_time, recv); in Partition()
1172 AddNodeAttr("_start_time", recv_start_time, real_recv); in Partition()
1233 AddNodeAttr("_start_time", it.second.start_time, it.second.recv); in Partition()
1235 AddNodeAttr("_start_time", it.second.start_time, it.second.real_recv); in Partition()
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_xla_computations_pass.cc183 AddNodeAttr(EncapsulateXlaComputationsPass::kXlaClusterAttr, call_def->name(), in RewriteSubgraph()
185 AddNodeAttr("_variable_start_index", variable_start_index, call_def); in RewriteSubgraph()
332 AddNodeAttr("Tconstants", DataTypeVector{}, &def); in BuildXlaLaunchOps()
333 AddNodeAttr("Targs", arg_types, &def); in BuildXlaLaunchOps()
334 AddNodeAttr("Nresources", num_variables, &def); in BuildXlaLaunchOps()
335 AddNodeAttr("Tresults", output_types, &def); in BuildXlaLaunchOps()
338 AddNodeAttr("function", function, &def); in BuildXlaLaunchOps()
Dshape_inference.cc125 AddNodeAttr("dtype", dtype, &const_def); in PropagateShapes()
137 AddNodeAttr("value", value, &const_def); in PropagateShapes()
140 AddNodeAttr(attr.first, attr.second, &const_def); in PropagateShapes()
Dbuild_xla_ops_pass_test.cc94 AddNodeAttr(kXlaCompiledKernelAttr, true, &call_node); in MakeXlaCompiledKernel()
95 AddNodeAttr(kXlaNumConstantArgsAttr, num_constant_args, &call_node); in MakeXlaCompiledKernel()
96 AddNodeAttr(kXlaNumResourceArgsAttr, num_resource_args, &call_node); in MakeXlaCompiledKernel()
Dextract_outside_compilation_pass.cc2232 AddNodeAttr("_outside_compilation_subgraph", old_name, node_def); in operator ()()
2235 AddNodeAttr("shape_inference_graph", shape_inference_graph, node_def); in operator ()()
2236 AddNodeAttr("shapes", *shapes, node_def); in operator ()()
2242 AddNodeAttr("shape_inference_graph", shape_inference_graph, node_def); in operator ()()
2243 AddNodeAttr("shapes", std::vector<TensorShapeProto>{}, node_def); in operator ()()
2245 AddNodeAttr("ancestors", std::vector<string>{}, node_def); in operator ()()
2246 AddNodeAttr("Tinputs", recv_at_host_dtypes, node_def); in operator ()()
2247 AddNodeAttr("Toutputs", send_from_host_dtypes, node_def); in operator ()()
2248 AddNodeAttr("key", absl::StrCat("host_compute_channel_", new_name), node_def); in operator ()()
Dencapsulate_subgraphs_pass.cc1299 AddNodeAttr(kXlaCompiledKernelAttr, true, node); in Run()
1300 AddNodeAttr(kXlaNumConstantArgsAttr, num_consts, node); in Run()
1301 AddNodeAttr(kXlaNumResourceArgsAttr, num_resources, node); in Run()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dmap_vectorization.cc99 AddNodeAttr("Targuments", t_args, map_defun_node); in CreateMapDefunWrapper()
100 AddNodeAttr("Tcaptured", t_captured, map_defun_node); in CreateMapDefunWrapper()
428 AddNodeAttr("Targuments", t_arguments, &choose_fastest_node); in AddNewChooseFastestNode()
429 AddNodeAttr("num_elements_per_branch", 100, &choose_fastest_node); in AddNewChooseFastestNode()
430 AddNodeAttr("branches", branches, &choose_fastest_node); in AddNewChooseFastestNode()
431 AddNodeAttr("other_arguments_lengths", other_arguments_lengths, in AddNewChooseFastestNode()
Dmap_and_filter_fusion.cc100 AddNodeAttr("Targuments", std::vector<DataType>({}), &filter_node); in MakeFilterNode()
136 AddNodeAttr("Targuments", std::vector<DataType>({}), &map_node); in MakeMapNode()
Dslack.cc86 AddNodeAttr("slack_period", slack_period_, dataset_node); in RecursivelyHandleOp()
Dvectorization_utils.cc86 AddNodeAttr("T", type, &ret_node_def); in AddMapDefunOutput()
87 AddNodeAttr("index", index, &ret_node_def); in AddMapDefunOutput()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow_util.cc47 AddNodeAttr("T", type, &ret_def); in BuildRetvalNode()
48 AddNodeAttr("index", index, &ret_def); in BuildRetvalNode()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dscoped_allocator_optimizer_test.cc247 AddNodeAttr("_output_shapes", {shape_proto}, &n); in SetShapes()
430 AddNodeAttr("_scoped_allocator", {0, 2}, &nd2); in TEST_F()
431 AddNodeAttr("_scoped_allocator", {6, 7}, &nd2); in TEST_F()
432 AddNodeAttr("_scoped_allocator", {2, 3}, &nd2); in TEST_F()
/external/tensorflow/tensorflow/core/ops/
Dmath_ops_test.cc176 AddNodeAttr("incompatible_shape_error", true, &op.node_def); in TEST()
181 AddNodeAttr("incompatible_shape_error", false, &op.node_def); in TEST()
/external/tensorflow/tensorflow/core/kernels/
Dremote_fused_graph_execute_utils.cc369 AddNodeAttr(ATTR_OUTPUT_DATA_TYPES, data_types, node_def); in AddOutputTensorShapeType()
370 AddNodeAttr(ATTR_OUTPUT_SHAPES, shapes, node_def); in AddOutputTensorShapeType()
1166 AddNodeAttr(ATTR_NODE_TYPE, attr_str, &node_def); in PlaceRemoteGraphArguments()
1447 AddNodeAttr("dtype", type, &placeholder_node); in ReplaceInputNodeByPlaceHolder()
1448 AddNodeAttr("shape", shape, &placeholder_node); in ReplaceInputNodeByPlaceHolder()
/external/tensorflow/tensorflow/core/grappler/utils/
Dfunctions_test.cc590 AddNodeAttr("Tag", "const_input_x", &const_input_x); in TEST_F()
594 AddNodeAttr("Tag", "const_input_y", &const_input_y); in TEST_F()
/external/tensorflow/tensorflow/core/common_runtime/
Dfunction.cc114 AddNodeAttr("T", BaseType(input.dtype()), &ndef); in AddIdentity()
128 AddNodeAttr("T", dtype, &ndef); in AddArg()
129 AddNodeAttr("index", index, &ndef); in AddArg()
143 AddNodeAttr("T", input.dtype(), &ndef); in AddRet()
144 AddNodeAttr("index", index, &ndef); in AddRet()

12