Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_TensorBitcastFrom (0.17 sec)

  1. tensorflow/c/tf_tensor.h

    //   * TF_DataTypeSize(TF_TensorType(from)) != 0
    //   * TF_DataTypeSize(type) != 0
    //
    // If any of the requirements are not met, *status is set to
    // TF_INVALID_ARGUMENT.
    TF_CAPI_EXPORT extern void TF_TensorBitcastFrom(const TF_Tensor* from,
                                                    TF_DataType type, TF_Tensor* to,
                                                    const int64_t* new_dims,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. tensorflow/c/tf_tensor.cc

    int64_t TF_TensorElementCount(const TF_Tensor* t) {
      int64_t result = 1;
      int rank = TF_NumDims(t);
      for (int dim = 0; dim < rank; ++dim) {
        result *= TF_Dim(t, dim);
      }
      return result;
    }
    
    void TF_TensorBitcastFrom(const TF_Tensor* from, TF_DataType type,
                              TF_Tensor* to, const int64_t* new_dims,
                              int num_new_dims, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      EXPECT_EQ(6 * TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(a));
      EXPECT_EQ(TF_DataTypeSize(TF_UINT64), TF_TensorByteSize(b));
    
      int64_t new_dims[] = {3, 2};
      TF_Status* status = TF_NewStatus();
      TF_TensorBitcastFrom(a, TF_UINT64, b, new_dims, 2, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status));
      TF_DeleteStatus(status);
    
      EXPECT_EQ(6, TF_TensorElementCount(a));
      EXPECT_EQ(6, TF_TensorElementCount(b));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top