Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for sekond (0.18 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/eager/parallel_device/parallel_device_testlib.h

        TF_Status* status);
    
    // Create and modify a variable placed on a parallel device which composes
    // `first_device` and `second_device`.
    void BasicTestsForTwoDevices(TFE_Context* context, const char* first_device,
                                 const char* second_device);
    
    // Implementations of templated functions ******************************
    
    template <std::size_t num_replicas>
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device.h

    // two component devices, running `x = TPUReplicatedInput(inputs=[a, b])` on the
    // parallel device creates a parallel tensor `x` with `a` on the first of
    // `underlying_devices` and `b` on the second. Running `a_unpacked, b_unpacked =
    // TPUReplicatedOutput(input=x, num_replicas=2)` un-packs the parallel tensor
    // into its components.
    //
    // The filled `device` struct and the allocated `device_info` struct may be
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jun 04 21:49:16 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. tensorflow/c/env.h

    TF_CAPI_EXPORT extern uint64_t TF_NowNanos(void);
    
    // Returns the number of microseconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void);
    
    // Returns the number of seconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void);
    
    // Populates a TF_ThreadOptions struct with system-default values.
    TF_CAPI_EXPORT extern void TF_DefaultThreadOptions(TF_ThreadOptions* options);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
Back to top