Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_ShapeInferenceContextWithRankAtMost (0.71 sec)

  1. tensorflow/c/ops_test.cc

                                          {S({10, 20, 30})}, {}, {}, {});
    
      shape_inference::ShapeHandle in0 = c.input(0);
      shape_inference::ShapeHandle s1;
    
      TF_Status* status = TF_NewStatus();
      TF_ShapeInferenceContextWithRankAtMost(C_CTX(&c), C_SHP(&in0), 3, C_SHP(&s1),
                                             status);
      EXPECT_EQ("[10,20,30]", c.DebugString(s1));
      EXPECT_EQ(TF_OK, TF_GetCode(status));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  2. tensorflow/c/ops.h

    // If <handle> has rank at most <rank>, or its rank is unknown, return OK and
    // return the shape with asserted rank in <*result>. Otherwise an error is
    // placed into `status`.
    TF_CAPI_EXPORT extern void TF_ShapeInferenceContextWithRankAtMost(
        TF_ShapeInferenceContext* ctx, TF_ShapeHandle* handle, int64_t rank,
        TF_ShapeHandle* result, TF_Status* status);
    
    // Places a handle to the ith dimension of the given shape into *result.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 16.3K bytes
    - Viewed (0)
Back to top