Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DoubleTestMatrixTensorHandle (0.23 sec)

  1. tensorflow/c/eager/c_api_test_util.h

    TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx,
                                             const tensorflow::tstring& value);
    
    // Return a tensor handle containing a 2x2 matrix of doubles
    TFE_TensorHandle* DoubleTestMatrixTensorHandle(TFE_Context* ctx);
    
    // Return a tensor handle containing a 2x2 matrix of floats
    TFE_TensorHandle* TestMatrixTensorHandle(TFE_Context* ctx);
    
    // Return a tensor handle containing 2D matrix containing given data and
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  2. 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* DoubleTestMatrixTensorHandle(TFE_Context* ctx) {
      int64_t dims[] = {2, 2};
      double data[] = {1.0, 2.0, 3.0, 4.0};
      TF_Status* status = TF_NewStatus();
      TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_DOUBLE, &dims[0],
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_TensorHandle* m1 = TestMatrixTensorHandle(ctx);
      TFE_TensorHandle* m2 = DoubleTestMatrixTensorHandle(ctx);
      TFE_Op* matmul = MatMulOp(ctx, m1, m2);
      TFE_TensorHandle* retvals[1] = {nullptr};
      int num_retvals = 1;
      TFE_Execute(matmul, &retvals[0], &num_retvals, status);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
Back to top