Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for def (0.15 sec)

  1. tensorflow/c/eager/c_api_remote_test_util.cc

      CHECK(!has_packed_input || func);
      tensorflow::ServerDef server_def = GetServerDef(3);
    
      // This server def has the task index set to 0.
      string serialized = server_def.SerializeAsString();
    
      server_def.set_task_index(1);
      std::unique_ptr<tensorflow::GrpcServer> worker_server1;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server1)
                      .ok());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_test_util.h

    bool IsPlaceholder(const tensorflow::NodeDef& node_def);
    
    bool IsScalarConst(const tensorflow::NodeDef& node_def, int v);
    
    bool IsAddN(const tensorflow::NodeDef& node_def, int n);
    
    bool IsNeg(const tensorflow::NodeDef& node_def, const string& input);
    
    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def);
    
    bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/grappler/grappler.cc

      tensorflow::GraphDef graph_def;
      absl::Status s = tensorflow::BufferToMessage(graph_buf, &graph_def);
      if (!s.ok()) {
        tsl::Set_TF_Status_from_Status(status, s);
        return nullptr;
      }
      return reinterpret_cast<TF_FunctionLibraryDefinition*>(
          new tensorflow::FunctionLibraryDefinition(
              tensorflow::OpRegistry::Global(), graph_def.library()));
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api_unified_experimental_test.cc

        TF_DeleteAbstractTensor(add_output1);
        TF_DeleteAbstractTensor(add_output2);
        TF_DeleteOutputList(func_outputs);
      }
    
      /**
       * We traced so far this function:
       *
       *   def two_adds(a, b):
       *     my_add1 = a + b
       *     my_add2 = b + b
       *     return my_add1, my_add2
       *
       * Now we will execute this function with an eager context:
       *
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  5. ci/official/requirements_updater/updater_config_repository.bzl

     Can be set via build parameter "--repo_env=<VARIABLE_NAME>=<value>"
     e.g "--repo_env=REQUIREMENTS_FILE_NAME=requirements.in"
    
     List of variables:
     REQUIREMENTS_FILE_NAME
    '''
    
    def _updater_config_repository_impl(repository_ctx):
        repository_ctx.file("BUILD", "")
        requirements_file_name = repository_ctx.os.environ.get("REQUIREMENTS_FILE_NAME", "requirements.in")
        repository_ctx.file(
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 31 18:17:57 GMT 2023
    - 718 bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

                                   TF_Status* status) {
      tensorflow::FunctionDef function_def;
      if (!function_def.ParseFromArray(serialized_function_def, size)) {
        status->status =
            tensorflow::errors::InvalidArgument("Invalid FunctionDef proto");
        return;
      }
    
      AnnotateEagerRuntimeConstructionContext(function_def);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  7. tensorflow/c/c_api_function_test.cc

        for (const NodeDef& node_def : fdef.node_def()) {
          for (int i = 0; i < node_def.input_size(); ++i) {
            const string& in = node_def.input(i);
            const auto& v =
                a_edges.insert({in, strings::StrCat(node_def.name(), ":", i)});
            ASSERT_TRUE(v.second) << "Duplicate edge " << in << " -> "
                                  << strings::StrCat(node_def.name(), ":", i)
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  8. tensorflow/c/eager/c_api_cluster_test.cc

      // Adding a non-existent remote worker to cluster def. This should cause the
      // UpdateServerDef call to fail.
      tensorflow::ClusterDef* cluster_def = server_def.mutable_cluster();
      tensorflow::JobDef* job_def = cluster_def->mutable_job(0);
      int port = tensorflow::testing::PickUnusedPortOrDie();
      job_def->mutable_tasks()->insert(
          {2, tensorflow::strings::StrCat("localhost:", port)});
      server_def.set_task_index(0);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  9. configure.py

    class UserInputError(Exception):
      pass
    
    
    def is_windows():
      return platform.system() == 'Windows'
    
    
    def is_linux():
      return platform.system() == 'Linux'
    
    
    def is_macos():
      return platform.system() == 'Darwin'
    
    
    def is_ppc64le():
      return platform.machine() == 'ppc64le'
    
    
    def is_s390x():
      return platform.machine() == 's390x'
    
    
    def is_cygwin():
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  10. tensorflow/c/c_api_experimental.cc

      const int num_inputs = input_shapes->num_items;
      NodeDef node_def;
      tensorflow::ImmediateExecutionOperation* op = tensorflow::unwrap(tfe_op);
      node_def.set_name(op->Name());
      node_def.set_op(op->Name());
      for (int i = 0; i < num_inputs; ++i) {
        node_def.add_input("dummy_input");
      }
      OperationFromInterface(op)->Attrs().FillAttrValueMap(node_def.mutable_attr());
    
      const tensorflow::OpRegistrationData* op_reg_data;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
Back to top