Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_DeleteTensor (0.16 sec)

  1. tensorflow/c/c_api_test.cc

                     1, nullptr, 0, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(3, *(static_cast<int32*>(TF_TensorData(fetchValues1[0]))));
      TF_DeleteTensor(feedValues1[0]);
      TF_DeleteTensor(fetchValues1[0]);
    
      // Feed B and fetch (A + 2) + B.
      TF_Output feeds2[] = {TF_Output{b, 0}};
      TF_Output fetches2[] = {TF_Output{plusB, 0}};
      TF_Tensor* feedValues2[] = {Int32Tensor(4)};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  2. tensorflow/c/eager/c_api_test.cc

        EXPECT_EQ(
            0, memcmp(TF_TensorData(t), TF_TensorData(tcopy), TF_TensorByteSize(t)))
            << tag;
        TF_DeleteTensor(tcopy);
      }
    
      TF_DeleteDeviceList(devices);
      TF_DeleteTensor(t);
      TFE_DeleteTensorHandle(hcpu);
      TFE_DeleteContext(ctx);
    }
    
    TEST(CAPI, TensorHandleCopyBetweenDevices) {
      TensorHandleCopyBetweenDevices(false);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  3. tensorflow/c/c_api.h

        int max_values, TF_Status* status);
    
    // Gets the TF_Tensor valued attribute of `attr_name` of `oper`.
    //
    // Allocates a new TF_Tensor which the caller is expected to take
    // ownership of (and can deallocate using TF_DeleteTensor).
    TF_CAPI_EXPORT extern void TF_OperationGetAttrTensor(TF_Operation* oper,
                                                         const char* attr_name,
                                                         TF_Tensor** value,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  4. tensorflow/c/c_api_function_test.cc

                       "`inputs` must have a single output. Node split3 has "
                       "3 outputs. Encountered while creating function 'MyFunc'"),
                string(TF_Message(s_)));
    
      TF_DeleteTensor(tensor_123);
    }
    
    TEST_F(CApiFunctionTest, FunctionWithWhileLoop) {
      // Inputs to the while loop and the function as a whole
      TF_Operation* feed1 = Placeholder(func_graph_, s_, "feed1");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top