Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for sekond (0.17 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      const char* first_device = "/job:worker/replica:0/task:1/device:CPU:0";
      const char* second_device = "/job:worker/replica:0/task:2/device:CPU:0";
      const char* device_name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      std::array<const char*, 2> underlying_devices{first_device, second_device};
      RegisterParallelDevice(context.get(), device_name, underlying_devices,
                             status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      auto iter = name_ranges.find(arg_name);
      if (iter == name_ranges.end()) {
        status->status = InvalidArgument("Output arg '", arg_name, "' not found");
        return -1;
      }
      return iter->second.second - iter->second.first;
    }
    
    int TF_OperationNumInputs(TF_Operation* oper) {
      return oper->node.num_inputs();
    }
    
    TF_DataType TF_OperationInputType(TF_Input oper_in) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental.cc

      GetFactories()[name] = factory;
    }
    
    Status SetDefaultTracingEngine(const char* name) {
      auto entry = GetFactories().find(name);
      if (entry != GetFactories().end()) {
        default_factory = GetFactories().find(name)->second;
        return absl::OkStatus();
      }
      string msg = absl::StrCat(
          "No tracing engine factory has been registered with the key '", name,
          "' (available: ");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      std::string first_device = TFE_TensorHandleBackingDeviceName(
          second_components[0].get(), status.get());
      ASSERT_EQ(second_underlying_devices[0], first_device);
      std::string second_device = TFE_TensorHandleBackingDeviceName(
          second_components[1].get(), status.get());
      ASSERT_EQ(second_underlying_devices[1], second_device);
    
      // Un-pack the first parallel device's tensor too
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  5. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

                             TFE_TensorHandle* second, TF_Status* status) {
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op(
          TFE_NewOp(context, "Mul", status), TFE_DeleteOp);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpAddInput(op.get(), first, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpAddInput(op.get(), second, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    TF_Buffer* TF_CoordinationServiceGetKeyValueWithTimeout(
        const char* key, int64_t key_size, int64_t timeout_seconds,
        TF_CoordinationServiceAgent* agent, TF_Status* status) {
      if (timeout_seconds <= 0) {
        status->status = absl::InvalidArgumentError(
            "TF_CoordinationServiceGetKeyValueWithTimeout invoked with invalid "
            "timeout_seconds <= 0.");
        return nullptr;
      }
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  7. tensorflow/c/c_api_function.cc

        input_tensors->emplace_back(node, idx);
    
        const auto& iter = input_nodes->find(node);
        if (iter == input_nodes->end()) {
          input_nodes->insert({node, {idx}});
        } else {
          auto& indices = iter->second;
          if (std::find(indices.begin(), indices.end(), idx) != indices.end()) {
            return InvalidArgument("TF_Output ", node->name(), ":", idx,
                                   " appears more than once in the input list");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  8. tensorflow/c/eager/c_api_distributed_test.cc

    // Test to ensure that a registered graph optimization pass is only executed
    // once (i.e., on the main function side) in running distributed functions.
    // This test creates a cluster with two workers, create a variable on the
    // second worker, and run a distributed function (VariableAddFunction) whose ops
    // span the local and remote workers. If the graph optimization pass is executed
    // on both the main function side and the component function side, an error will
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_cluster_test.cc

      // Another renaming of local device
      const string second_name = "def";
      server_def.set_job_name(second_name);
      server_def.mutable_cluster()->mutable_job(0)->set_name(second_name);
      (*server_def.mutable_cluster()->mutable_job(0)->mutable_tasks())[0] =
          absl::StrCat(second_name, ":",
                       tensorflow::testing::PickUnusedPortOrDie());
    
    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)
  10. tensorflow/c/c_api_experimental.cc

      tensorflow::Env* env = tensorflow::Env::Default();
      {
        tensorflow::mutex_lock lock(mu);
        auto it = loaded_libs->find(library_filename);
        if (it != loaded_libs->end()) {
          lib_handle->lib_handle = it->second;
        } else {
          status->status =
              env->LoadDynamicLibrary(library_filename, &lib_handle->lib_handle);
          if (status->status.ok()) {
            TF_CHECK_OK(
    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