Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_GraphGetTensorNumDims (0.11 sec)

  1. tensorflow/c/c_api_test.cc

      num_dims = TF_GraphGetTensorNumDims(graph, feed_out_0, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(-1, num_dims);
    
      // Set the shape to be unknown, expect no change.
      TF_GraphSetTensorShape(graph, feed_out_0, /*dims=*/nullptr, -1, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      num_dims = TF_GraphGetTensorNumDims(graph, feed_out_0, s);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.h

    // in `graph`.
    //
    // If the number of dimensions in the shape is unknown, returns -1.
    //
    // Returns an error into `status` if:
    //   * `output` is not in `graph`.
    TF_CAPI_EXPORT extern int TF_GraphGetTensorNumDims(TF_Graph* graph,
                                                       TF_Output output,
                                                       TF_Status* status);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
Back to top