Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for light (0.16 sec)

  1. tensorflow/c/c_api.cc

          scope, OutputsFromTFOutputs(parent_inputs, num_loop_vars), cond_fn,
          body_fn, params->name, &loop_outputs);
    
      // Update name_map with newly-created ops.
      // TODO(skyewm): right now BuildWhileLoop() may alter the graph if it returns
      // a bad status. Once we fix this, we may want to return early instead of
      // executing the following code.
    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)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    }
    
    static void RenameFile(const TF_Filesystem* filesystem, const char* src,
                           const char* dst, TF_Status* status) {
      // If target is a directory return TF_FAILED_PRECONDITION.
      // Target might be missing, so don't error in that case.
      struct stat st;
      if (stat(dst, &st) != 0) {
        if (errno != ENOENT) {
          TF_SetStatusFromIOError(status, errno, dst);
          return;
        }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

            // parallel device.
            device_(device),
            executor_(
                TFE_NewExecutor(is_async, /*enable_streaming_enqueue=*/true,
                                /*in_flight_nodes_limit=*/in_flight_nodes_limit)),
            op_(nullptr),
            thread_(tensorflow::Env::Default()->StartThread(
                tensorflow::ThreadOptions(), "parallel_device_execute",
                std::bind(&DeviceThread::Run, this))) {}
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  4. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

            CreatePerDeviceValues(context, components, device_name, status.get());
        variable->AssignAdd(context, combined_value.get(), status.get());
      }
    
      // Read the variable and verify that each component has the right modified
      // value.
      {
        TensorHandlePtr read = variable->Read(context, status.get());
        std::array<TensorHandlePtr, 2> components;
        ExtractPerDeviceValues(context, read.get(), &components, status.get());
    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)
  5. tensorflow/c/eager/parallel_device/parallel_device.cc

      std::vector<ParallelTensor*> parallel_inputs;
      std::vector<std::unique_ptr<ParallelTensor>> implicitly_broadcast_tensors;
      parallel_inputs.reserve(inputs.size());
      implicitly_broadcast_tensors.reserve(inputs.size());  // not tight
      for (const auto& input : inputs) {
        if (absl::holds_alternative<TFE_TensorHandle*>(input)) {
          if (operation_name == std::string("_EagerConst")) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental_test.cc

        ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
        TFE_DeleteContextOptions(opts);
        TFE_Executor* executor = TFE_NewExecutor(
            /*is_async=*/false, /*enable_streaming_enqueue=*/true,
            /*in_flight_nodes_limit=*/0);
        TFE_ContextSetExecutorForThread(ctx, executor);
    
        TFE_DeleteContext(ctx);
        TFE_DeleteExecutor(executor);
      }
    
      {
        TFE_ContextOptions* opts = TFE_NewContextOptions();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  7. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      // root directory. Otherwise, we need to add the `<scheme>://` in front of
      // this path.
      //
      // Note that some filesystem might require a different approach here, for
      // example they might require the root directory path to be in a special
      // format, etc. When we get there, we might decide to move this class to
      // `modular_filesystem_test.h` and extend the instantiation to also take as
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_test.cc

      }
      TFE_DeleteOp(add_op);
    
      TF_Tensor* t = TFE_TensorHandleResolve(retval, status);
      if (async) {
        if (forward_input) {
          // Since the input was forwarded, we released the input handle right away
          // and hence expect the input to be forwarded to the return tensor.
          EXPECT_EQ(orig_ptr, TF_TensorData(t));
        } else {
          // In async mode we expect forwarding to work without releasing the input
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  9. tensorflow/c/c_api_test.cc

                                  &Deallocator, &deallocator_called);
    
      TF_Tensor* o = TF_TensorMaybeMove(t);
      ASSERT_TRUE(o == nullptr);  // It is unsafe to move memory TF might not own.
      TF_DeleteTensor(t);
      EXPECT_TRUE(deallocator_called);
    }
    
    TEST(CAPI, LibraryLoadFunctions) {
      // TODO(b/73318067): Fix linking for the GPU test generated by the
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  10. tensorflow/c/eager/c_api_experimental.cc

      status->status = absl::OkStatus();
    }
    
    TFE_Executor* TFE_NewExecutor(bool is_async, bool enable_streaming_enqueue,
                                  int in_flight_nodes_limit) {
      return new TFE_Executor(is_async, enable_streaming_enqueue,
                              in_flight_nodes_limit);
    }
    
    void TFE_DeleteExecutor(TFE_Executor* executor) { delete executor; }
    
    bool TFE_ExecutorIsAsync(TFE_Executor* executor) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
Back to top