Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 932 for reserve (0.2 sec)

  1. tensorflow/c/eager/c_api.cc

          // String
          if (const int s_size = default_value.list().s_size()) {
            absl::InlinedVector<const void*, 4> values_vector;
            values_vector.reserve(s_size);
            absl::InlinedVector<size_t, 4> lengths_vector;
            lengths_vector.reserve(s_size);
            for (int i = 0; i < s_size; ++i) {
              const string& v = default_value.list().s(i);
              values_vector.push_back(v.data());
    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)
  2. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       */
      @CanIgnoreReturnValue
      public double acquire(int permits) {
        long microsToWait = reserve(permits);
        stopwatch.sleepMicrosUninterruptibly(microsToWait);
        return 1.0 * microsToWait / SECONDS.toMicros(1L);
      }
    
      /**
       * Reserves the given number of permits from this {@code RateLimiter} for future use, returning
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  3. tensorflow/c/eager/custom_device_testutil.cc

      TFE_Execute(op, op_outputs.data(), num_outputs, s);
      TFE_DeleteOp(op);
      if (TF_GetCode(s) != TF_OK) return;
      std::vector<TFE_TensorHandle*> unwrapped_outputs;
      unwrapped_outputs.reserve(op_outputs.size());
      for (auto* handle : op_outputs) {
        unwrapped_outputs.push_back(handle);
      }
      for (int i = 0; i < *num_outputs; ++i) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

        // Note that we take the address of the elements in `all_input_tensors`
        // below. Allocate enough space so that no reallocation happens, which will
        // make the pointers invalid.
        all_input_tensors.reserve(num_inputs);
        for (int i = 0; i < num_inputs; ++i) {
          if (input_tensors[i] == nullptr) continue;
          all_input_tensors.emplace_back();
          Tensor& input_tensor = all_input_tensors.back();
    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)
  5. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.RequestWithPath#setResolveInDfs(boolean)
         */
        @Override
        public void setResolveInDfs ( boolean resolve ) {
            addFlags(SMB2_FLAGS_DFS_OPERATIONS);
            this.resolveDfs = resolve;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.RequestWithPath#isResolveInDfs()
         */
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 01 09:52:11 GMT 2019
    - 14.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.cc

                                       std::vector<Status>* status) {
      if (ops_->paths_exist == nullptr)
        return FileSystem::FilesExist(files, token, status);
    
      std::vector<char*> translated_names;
      translated_names.reserve(files.size());
      for (int i = 0; i < files.size(); i++)
        translated_names.push_back(strdup(TranslateName(files[i]).c_str()));
    
      bool result;
      if (status == nullptr) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  7. docs/en/docs/fastapi-people.md

    Here I'm also highlighting contributions from sponsors.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 16 23:54:24 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

    }
    
    TEST(RamFileBlockCacheTest, BlockAlignment) {
      // Initialize a 256-byte buffer.  This is the file underlying the reads we'll
      // do in this test.
      const size_t size = 256;
      std::vector<char> buf;
      buf.reserve(size);
      for (int i = 0; i < size; i++) {
        buf.push_back(i);
      }
      // The fetcher just fetches slices of the buffer.
      auto fetcher = [&buf](const string& filename, size_t offset, size_t n,
    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/c_api.cc

        tensorflow::shape_inference::InferenceContext* ic, int num_dims,
        const int64_t* dims) {
      if (num_dims != -1) {
        std::vector<tensorflow::shape_inference::DimensionHandle> dim_vec;
        dim_vec.reserve(num_dims);
        for (int i = 0; i < num_dims; ++i) {
          dim_vec.push_back(ic->MakeDim(dims[i]));
        }
        return ic->MakeShape(dim_vec);
      } else {
        return ic->UnknownShape();
      }
    }
    
    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)
  10. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    }
    
    void TF_LockVariableInfos(TF_VariableInfo** vars, int num_vars,
                              TF_Status* status) {
      std::vector<tensorflow::VariableInfo*> variable_ptrs;
      variable_ptrs.reserve(num_vars);
      for (int i = 0; i < num_vars; ++i) {
        variable_ptrs.push_back(&(vars[i]->var_info));
      }
      absl::Status cc_status = LockVariables(absl::MakeSpan(variable_ptrs));
      status->status = cc_status;
    }
    
    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)
Back to top