Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for TFE_NewTensorHandleFromTensor (0.18 seconds)

  1. tensorflow/c/eager/c_api_test_util.cc

      TF_Status* status = TF_NewStatus();
      TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_FLOAT, nullptr, 0, status);
      memcpy(TF_TensorData(t), &data[0], TF_TensorByteSize(t));
      TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  2. tensorflow/c/eager/c_api_test_util.h

      TF_Status* status = TF_NewStatus();
      TF_Tensor* t = TFE_AllocateHostTensor(ctx, datatype, dims, num_dims, status);
      memcpy(TF_TensorData(t), data, TF_TensorByteSize(t));
      TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    // Return a scalar tensor handle with given values.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Click Count (0)
  3. tensorflow/c/eager/c_api_experimental.h

    //
    // Similar to TFE_NewTensorHandle, but includes a pointer to the TFE_Context.
    // The context should be identical to that of the Tensor.
    TF_CAPI_EXPORT TFE_TensorHandle* TFE_NewTensorHandleFromTensor(
        TFE_Context* ctx, TF_Tensor* t, TF_Status* status);
    
    // Create a packed TensorHandle with the given list of TensorHandles.
    // If `handles` are on the same device, assign the same device to the packed
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Click Count (1)
  4. tensorflow/c/eager/dlpack.cc

    Sergei Lebedev <******@****.***> 1741907717 -0700
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Mar 13 23:41:52 GMT 2025
    - 13K bytes
    - Click Count (0)
  5. tensorflow/c/c_api_experimental.h

    Haibo Huang <******@****.***> 1682629340 -0700
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 15.1K bytes
    - Click Count (0)
  6. tensorflow/c/eager/c_api_experimental.cc

        status->status =
            tensorflow::errors::InvalidArgument("Unsupported dtype: ", dtype);
        return nullptr;
      }
    
      return new TF_Tensor{t};
    }
    
    TFE_TensorHandle* TFE_NewTensorHandleFromTensor(TFE_Context* ctx, TF_Tensor* t,
                                                    TF_Status* status) {
      return tensorflow::wrap(
          tensorflow::unwrap(ctx)->CreateLocalHandle(t->tensor));
    }
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 35.9K bytes
    - Click Count (0)
  7. tensorflow/c/c_api_experimental.cc

    A. Unique TensorFlower <******@****.***> 1759556012 -0700
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 29.4K bytes
    - Click Count (0)
  8. tensorflow/c/eager/c_api_experimental_test.cc

    A. Unique TensorFlower <******@****.***> 1759988790 -0700
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 31.5K bytes
    - Click Count (0)
  9. tensorflow/c/eager/c_api.cc

    A. Unique TensorFlower <******@****.***> 1762494288 -0800
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Nov 07 05:55:21 GMT 2025
    - 43.9K bytes
    - Click Count (0)
Back to Top