Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_STRING (0.22 sec)

  1. tensorflow/c/tf_tensor.cc

                            void* deallocator_arg) {
      TF_ManagedBuffer* buf = nullptr;
      if (dtype != TF_STRING && dtype != TF_RESOURCE &&
          tensorflow::DataTypeCanUseMemcpy(
              static_cast<tensorflow::DataType>(dtype)) &&
          reinterpret_cast<intptr_t>(data) % std::max(1, EIGEN_MAX_ALIGN_BYTES) !=
              0) {
        // TF_STRING and TF_RESOURCE tensors have a different representation in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test_util.cc

    }
    
    TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx,
                                             const tensorflow::tstring& value) {
      TF_Status* status = TF_NewStatus();
      TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_STRING, nullptr, 0, status);
      tstring* data = static_cast<tstring*>(TF_TensorData(t));
      *data = value;
      TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top