Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for So (0.14 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                                  static_cast<off_t>(offset))};
        if (r > 0) {
          dst += r;
          offset += static_cast<uint64_t>(r);
          n -= r;  // safe as 0 < r <= n so n will never underflow
          read += r;
        } else if (r == 0) {
          TF_SetStatus(status, TF_OUT_OF_RANGE, "Read fewer bytes than requested");
          break;
        } else if (errno == EINTR || errno == EAGAIN) {
    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)
  2. tensorflow/c/c_api_experimental.cc

      gpu_options->set_allow_growth(gpu_memory_allow_growth);
    
      (*config.mutable_device_count())["CPU"] = num_cpu_devices;
    
      // TODO(b/113217601): This is needed for EagerContext::runner_ to use a
      // threadpool, so that we avoid the possibility of running the runner_ in the
      // threadpool of GPU event mgr, as that can trigger more callbacks to be
      // scheduled on that same threadpool, causing a deadlock in cases where the
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_cluster_test.cc

    TEST(CAPI, TestRemoteExecuteUpdateServerDefResourceAccessAsync) {
      TestRemoteExecuteUpdateServerDefResourceAccess(true);
    }
    
    void TestRemoteExecuteUpdateServerDefWithFailures(bool async) {
      // Fail fast on GetStatus requests so we can get errors instead of timeout
      // when updating cluster with non-exsitent worker
      tensorflow::setenv("GRPC_FAIL_FAST", "TRUE", /*overwrite=*/1);
    
      tensorflow::ServerDef server_def = GetServerDef(2);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

            shape_handle, static_cast<DataType>(types[i]));
      }
    
      ic->set_output_handle_shapes_and_types(output.index, shape_and_type_vec);
    }
    
    // Helpers for loading a TensorFlow plugin (a .so file).
    Status LoadDynamicLibrary(const char* library_filename, void** result,
                              const void** buf, size_t* len);
    
    // TODO(josh11b,mrry): Change Session to be able to use a Graph*
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/nn_grad_test.cc

      // `gradient_checker` only works with model that returns only 1 tensor.
      // Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the
      // second tensor isn't needed for computing gradient so we could safely drop
      // it.
      outputs[0] = loss;
      backprop->Unref();
      return absl::OkStatus();
    }
    
    Status BiasAddModel(AbstractContext* ctx,
                        absl::Span<AbstractTensorHandle* const> inputs,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/gradients/array_grad_test.cc

      TF_RETURN_IF_ERROR(
          ops::IdentityN(ctx, inputs, absl::MakeSpan(temp_outputs), "IdentityN"));
      // Although, `ops::IdentityN` returns 2 tensors, the first tensor isn't needed
      // for computing gradient so we could safely drop it.
      outputs[0] = temp_outputs[1];
      temp_outputs[0]->Unref();
      return absl::OkStatus();
    }
    
    class CppGradients
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      std::string translated_name = TranslateName(dir);
      // Note that `children` is allocated by the plugin and freed by core
      // TensorFlow, so we need to use `plugin_memory_free_` here.
      char** children = nullptr;
      const int num_children =
          ops_->get_children(filesystem_.get(), translated_name.c_str(), &children,
                             plugin_status.get());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      calls.push_back(0);
      TF_EXPECT_OK(ReadCache(&cache, "", 0, 1, &out));
      // Element at 2 * block_size is still in cache, and this read should update
      // its position in the LRU list so it doesn't get evicted by the next read.
      TF_EXPECT_OK(ReadCache(&cache, "", 2 * block_size, 1, &out));
      // Element at block_size was evicted.  Reading this element will also cause
      // the LRU element (at 0) to be evicted.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      if (n == 0) {
        TF_SetStatus(status, TF_OK, "");
        return 0;
      }
      if (!IsCacheEnabled() || (n > max_bytes_)) {
        // The cache is effectively disabled, so we pass the read through to the
        // fetcher without breaking it up into blocks.
        return block_fetcher_(filename, offset, n, buffer, status);
      }
      // Calculate the block-aligned start and end of the read.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    // restricted by using `--schemes` to specify a set of schemes to test.
    //
    // Example invocation:
    //  bazel test //tensorflow/c/experimental/filesystem:modular_filesystem_test \\
    //  --test_arg=--dso=/path/to/one.so --test_arg=--dso=/path/to/another.so \\
    //  --test_arg=--scheme= --test_arg=--scheme=file
    //
    // Note that to test the local filesystem we use an empty value.
    
    namespace tensorflow {
    namespace {
    
    using ::tensorflow::error::Code;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
Back to top