Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_TensorBitcastFrom (0.22 sec)

  1. tensorflow/c/kernels/bitcast_op.cc

          --new_dim_count;
        }
    
        TF_Tensor* output = TF_AllocateTensor(k->output_data_type, dims, 0,
                                              TF_DataTypeSize(k->output_data_type));
        TF_TensorBitcastFrom(tensor, k->output_data_type, output, dims,
                             new_dim_count, status);
        if (TF_GetCode(status) == TF_OK) {
          TF_SetOutput(ctx, 0, output, status);
        }
        delete[] dims;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 31 03:28:11 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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