- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 51 for _Arg (0.04 sec)
-
tensorflow/compiler/jit/shape_inference.cc
<< context->DebugString(handle); } } int index = -1; if (n->type_string() == "_Arg") { // NOTE: during runtime, Placeholder ops will be replaced as `_Arg` ops. // And Args must have `index` attribute. TF_RETURN_IF_ERROR(GetNodeAttr(n->attrs(), "index", &index)); } else if (n->type_string() == "Placeholder") {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/output-shapes-attr.mlir
%graph = tf_executor.graph { tf_executor.fetch %arg0 : tensor<10xi32> } func.return %graph : tensor<10xi32> } // CHECK: node { // CHECK-NEXT: name: "input0" // CHECK-NEXT: op: "_Arg" // CHECK: key: "T" // CHECK-NEXT: value { // CHECK-NEXT: type: DT_INT32 // CHECK-NEXT: } // CHECK: key: "_output_shapes" // CHECK-NEXT: value { // CHECK-NEXT: list {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 25 12:28:56 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compile_util_test.cc
TF_EXPECT_OK(identity_node->input_node(0, &identity_input_node)); EXPECT_EQ(identity_input_node->name(), "_arg0"); const Node* arg_node = node_name_index.at("_arg0"); EXPECT_EQ(arg_node->op_def().name(), "_Arg"); EXPECT_EQ(arg_node->attrs().FindByString("T")->type(), DT_FLOAT); const Node* retval_node = node_name_index.at("_retval0"); EXPECT_EQ(retval_node->op_def().name(), "_Retval");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 16 21:48:05 UTC 2023 - 6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_activity_listener_test.cc
count: 5 } op_histogram { op: "Mul" count: 4 } } unclustered_op_histogram { op: "NoOp" count: 2 } unclustered_op_histogram { op: "_Arg" count: 1 } unclustered_op_histogram { op: "_Retval" count: 1 } } )", &expected_auto_clustering_activity); EXPECT_EQ(listener()->auto_clustering_activity().DebugString(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/jit/compilability_check_util.cc
LogNotCompilable(node, uncompilable_reason); return false; } // _Arg nodes in a top-level function represent feeds and _Retval nodes in a // top-level function represent fetches. if (stack_depth == 1 && (node.type_string() == "_Arg" || node.type_string() == "_Retval")) { absl::string_view uncompilable_reason = "top level _Arg or _Retval"; MaybeMarkUncompilableNode(uncompilable_reason, *stack_trace,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 30.3K bytes - Viewed (0) -
tensorflow/compiler/jit/extract_outside_compilation_pass.h
// following steps: // // 1. Add a XLA computation key placeholder node (it will be used as input for // XlaRecvAtHost and XlaSendFromHost); // 2. Replace all _Arg nodes with one single XlaRecvAtHost node; // 3. Replace all _Retval nodes with one single XlaSendFromHost node; // 4. Mark all nodes except key placeholder with attr `xla_cluster_attr_name` // and `outside_compilation_attr_name`;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler_test.cc
} absl::StatusOr<std::unique_ptr<Graph>> SampleGraphAddXY() { std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); Scope scope = Scope::NewRootScope().ExitOnError(); auto a = ops::_Arg(scope.WithOpName("A"), DT_INT32, 0); auto b = ops::_Arg(scope.WithOpName("B"), DT_INT32, 1); auto c = ops::Add(scope.WithOpName("C"), a, b); auto d = ops::_Retval(scope.WithOpName("D"), c, 0); TF_RETURN_IF_ERROR(scope.ToGraph(graph.get()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 19.8K bytes - Viewed (0) -
tensorflow/compiler/jit/compilability_check_util.h
// xla::ComputationBuilder assigns. How does this handle gets assigned for // constant arguments? Even constant arguments get an _Arg node in the graph // instantiated for Function compilation. The tf2xla kernel for constant _Arg // nodes takes the constant value, converts it to XlaLiteral, and feeds it // to xla::ComputationBuilder.ConstantLiteral, which returns the handle. This
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 14.9K bytes - Viewed (0) -
tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc
if (!TryGetNodeAttr(n.attrs(), "_is_guaranteed_constant", &guaranteed_constant)) { return false; } return guaranteed_constant; } // Finds the `index` of an _Arg or _Retval node. Status GetIndexAttr(const Node& n, int num_args, int* index) { TF_RETURN_IF_ERROR(GetNodeAttr(n.attrs(), "index", index)); if (*index < 0 || *index >= num_args) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 15.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/utils/utils.cc
std::string GetComposeFuncName(StringRef tf_op_name) { std::string compose_func_name; for (int i = 0; i < tf_op_name.size(); ++i) { if (tf_op_name[i] == '_') { // The field name must not contain "_"s. "_Arg" and "_RetVal" are special // op names and we can return empty string to skip the decomposition. return {}; } if (tf_op_name[i] == '.') { compose_func_name.push_back('_');
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 6.2K bytes - Viewed (0)