Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for qhold (0.18 sec)

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

    #include "tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h"
    
    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses a temporary buffer to hold contents.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      // Use a copy buffer of 128KB but don't store it on the stack.
      constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test.cc

      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    }
    BENCHMARK(BM_ReadVariable);
    
    TEST(CAPI, StringAttributes) {
      // Test that TFE_OpSetAttrString doesn't hold on to the value after it
      // returns.
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
    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)
  3. tensorflow/c/experimental/gradients/nn_grad.cc

      }
      ~ReluGradientFunction() override {
        for (auto output : forward_outputs_) {
          if (output) {
            output->Unref();
          }
        }
      }
    
     private:
      // TODO(b/174778737): Only hold needed outputs.
      vector<AbstractTensorHandle*> forward_outputs_;
    };
    
    Status BroadcastMul(AbstractContext* ctx, AbstractTensorHandle* vec,
                        AbstractTensorHandle* mat,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

      for (int i = 0; i < noutputs; ++i) {
        c_outputs[i] = nullptr;
      }
    }
    
    // TF_TensorToTensorV1 decodes a string serialization to DT_RESOURCE.
    // In the TFv1 convention, TF_Tensor can hold a string serialization of
    // DT_RESOURCE. The string serialization is converted back to a
    // ResourceHandle during Session run where the TF_Tensor is converted to a
    // Tensor.
    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)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.h

                  delete reinterpret_cast<DataType*>(data);
                },
                nullptr),
            TF_DeleteTensor);
        // TODO(allenl): Here and when executing regular operations, we could hold
        // on to one TFE_Op per device and just call TFE_ResetOp to avoid parsing
        // device names repeatedly.
        std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> const_op(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.h

    // The elements of `dims` will point to addresses in `storage` which must be
    // large enough to hold at least `storage_size` int64_ts.  Ideally, `num_shapes`
    // would be set to TF_AttrMetadata.list_size and `storage_size` would be set to
    // TF_AttrMetadata.total_size from TF_OperationGetAttrMetadata(oper,
    // attr_name).
    //
    // Fails if storage_size is insufficient to hold the requested shapes.
    TF_CAPI_EXPORT extern void TF_OperationGetAttrShapeList(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  7. tensorflow/c/eager/gradient_checker.h

     * this will calculate dy/dw numerically.
     *
     * `use_function` indicates whether to use graph mode(true) or eager(false).
     *
     * `numerical_grad` is the pointer to the AbstractTensorHandle* which will
     * hold the numerical gradient data at the end of the function.
     */
    Status CalcNumericalGrad(AbstractContext* ctx, Model forward,
                             absl::Span<AbstractTensorHandle* const> inputs,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 02:34:32 GMT 2020
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/grappler/grappler.h

    // least `storage_size` bytes in length.  `num_values` and `storage` can be
    // obtained from TF_GetNodesToPreserveSize
    //
    // Fails if storage_size is too small to hold the requested number of strings.
    TF_CAPI_EXPORT extern void TF_GetNodesToPreserveList(
        const TF_GrapplerItem* item, char** values, size_t* lengths, int num_values,
        void* storage, size_t storage_size, TF_Status* status);
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler.cc

        if ((p + s.size()) > (static_cast<char*>(storage) + storage_size)) {
          tsl::Set_TF_Status_from_Status(
              status,
              absl::InvalidArgumentError(
                  "Not enough storage to hold the requested list of nodes"));
          return;
        }
        memcpy(values[index], s.data(), s.size());
        p += s.size();
        index++;
      }
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

                           const ComputeFunc& compute_func, TF_Status* status) {
        if (max_age_ == 0) {
          return compute_func(key, value, status);
        }
    
        // Note: we hold onto mu_ for the rest of this function. In practice, this
        // is okay, as stat requests are typically fast, and concurrent requests are
        // often for the same file. Future work can split this up into one lock per
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
Back to top