Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestMatrixTensorHandle3X2 (0.29 sec)

  1. tensorflow/c/eager/c_api_debug_test.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_TensorHandle* h = TestMatrixTensorHandle3X2(ctx);
      TFE_TensorDebugInfo* debug_info = TFE_TensorHandleTensorDebugInfo(h, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      ASSERT_EQ(2, TFE_TensorDebugInfoOnDeviceNumDims(debug_info));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 06 22:10:09 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test_util.h

    // Return a tensor handle containing a 3x2 matrix of doubles
    TFE_TensorHandle* DoubleTestMatrixTensorHandle3X2(TFE_Context* ctx);
    
    // Return a tensor handle containing a 3x2 matrix of floats
    TFE_TensorHandle* TestMatrixTensorHandle3X2(TFE_Context* ctx);
    
    // Return a variable handle referring to a variable with the given initial value
    // on the given device.
    TFE_TensorHandle* TestVariable(TFE_Context* ctx, float value,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jul 17 23:43:59 GMT 2023
    - 7.7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test_util.cc

      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteTensor(t);
      TF_DeleteStatus(status);
      return th;
    }
    
    TFE_TensorHandle* TestMatrixTensorHandle3X2(TFE_Context* ctx) {
      int64_t dims[] = {3, 2};
      float data[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f};
      TF_Status* status = TF_NewStatus();
      TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_FLOAT, &dims[0],
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
Back to top