Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_ShapeInferenceContextWithRankAtLeast (0.48 sec)

  1. tensorflow/c/ops_test.cc

      EXPECT_EQ("[10,20,30]", c.DebugString(s1));
      EXPECT_EQ(TF_OK, TF_GetCode(status));
    
      TF_ShapeInferenceContextWithRankAtLeast(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));
    
      TF_ShapeInferenceContextWithRankAtLeast(C_CTX(&c), C_SHP(&in0), 6, C_SHP(&s1),
                                              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/kernels/ops/bitcast.cc

        TF_SetStatus(status, TF_INVALID_ARGUMENT, err.str().c_str());
        return;
      }
    
      TF_SetStatus(status, TF_OK, "");
      if (input_type_size < output_type_size) {
        TF_ShapeInferenceContextWithRankAtLeast(ctx, shape, 1, shape, status);
    
        if (TF_GetCode(status) == TF_OK) {
          TF_DimensionHandle* last_dim = TF_NewDimensionHandle();
          size_t divisor_val = output_type_size / input_type_size;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 07:51:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. tensorflow/c/ops.h

    // If <handle> has rank at least <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_ShapeInferenceContextWithRankAtLeast(
        TF_ShapeInferenceContext* ctx, TF_ShapeHandle* handle, int64_t rank,
        TF_ShapeHandle* result, TF_Status* status);
    
    // If <handle> has rank at most <rank>, or its rank is unknown, return OK and
    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