Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for set_requested_device (0.33 sec)

  1. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      TF_ASSERT_OK(root.graph()->AddFunctionLibrary(fdef_lib));
      Node* call;
      TF_ASSERT_OK(MakeXlaCompiledKernel(root.graph(), "cluster_0", "C", &call));
      call->AddAttr(kXlaHasReferenceVarsAttr, false);
      call->set_requested_device(kXlaDeviceName);
      Node* write_op = MakeWrite(root, "write");
      write_op->AddAttr(kXlaHasReferenceVarsAttr, false);
      root.graph()->AddControlEdge(call, write_op);
    
      std::unique_ptr<Graph> graph;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      auto arg6 = ops::_Arg(scope.WithOpName("w_0_arg"), DT_RESOURCE, 6);
    
      auto add_attrs = [](Node* node) {
        node->AddAttr(kXlaClusterIdAttr, "launch0");
        node->set_requested_device("/gpu:0");
      };
    
      auto b_identity = ops::Identity(scope.WithOpName("B_identity"), arg1);
      add_attrs(b_identity.node());
      auto read_u = ops::ReadVariableOp(scope.WithOpName("ReadU"), arg4, DT_FLOAT);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
Back to top