Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 46 for _Arg (0.63 sec)

  1. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

    }
    
    // Builds XlaRecvAtHost node, and replaces all _Arg nodes with it.
    absl::StatusOr<Node*> ReplaceArgNodesWithRecvAtHostNode(
        Graph* g, const string& oc_cluster_name,
        std::vector<DataType>* recv_at_host_dtypes, Node* key_placeholder) {
      // TODO(b/77601805): use out nodes for source node, instead of traversing all
      // nodes.
      std::vector<Node*> arg_nodes = GatherNodesWithType(*g, "_Arg");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_util.h

    // lifted out of If/While/function node. Attribute value will always be boolean
    // value "true".
    extern const char kXlaIsLiftedArgAttrName[];
    
    // Attribute indicating that this node is a Placeholder node for an _Arg node
    // lifted out of If/While/function node. Attribute value will be a string, which
    // is the outside compilation cluster name sending the lifted arg node to host.
    extern const char kXlaLiftedArgOutsideCompilationAttrName[];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

        int GetResultIndexForEdge(const Edge* edge) const;
    
        // Creates an _Arg node for the src node of edge, and add its index to
        // args_by_src_, if none exists yet. Also adds its index to args_by_dst_,
        // and adds the edge within the subgraph from the _Arg node to the image of
        // the dst node.
        Status RecordArg(const Edge* edge,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/shape_inference.h

    // TODO(phawkins): this code does not infer accurate shapes for cyclic graphs.
    // `arg_shapes`: user given map from the `index` to shapes of this
    // node, where `index` is the `index` attribute of `_Arg` op or `_index`
    // attribute of `Placeholder` op.
    Status InferShapes(Graph* graph, const std::map<int, InferredShape>& arg_shapes,
                       const tensorflow::FunctionLibraryDefinition* fnlib_def,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

      graph.SetConstructionContext(ConstructionContext::kEagerRuntime);
      tensorflow::set_tf2_execution(true);
    
      ConfigProto config = ConfigProto();
      Scope root = Scope::NewRootScope().ExitOnError();
    
      Output a = ops::_Arg(root.WithOpName("A"), DT_RESOURCE, 0);
      std::vector<NodeBuilder::NodeOut> inputs({NodeBuilder::NodeOut(a.node())});
    
      Node* call;
      NameAttrList f_name_attr;
      f_name_attr.set_name(fd.signature().name());
      TF_ASSERT_OK(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top