Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_ShapeInferenceContextDim (0.97 sec)

  1. tensorflow/c/kernels/ops/bitcast.cc

        if (TF_GetCode(status) == TF_OK) {
          TF_DimensionHandle* last_dim = TF_NewDimensionHandle();
          size_t divisor_val = output_type_size / input_type_size;
          TF_ShapeInferenceContextDim(ctx, shape, -1, last_dim);
          if (!TF_DimensionHandleValueKnown(last_dim) ||
              TF_DimensionHandleValue(last_dim) == divisor_val) {
            TF_ShapeInferenceContextSubshape(ctx, shape, 0, -1, shape, status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 07:51:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/c/ops.cc

                                         TF_ShapeHandle* handle) {
      return reinterpret_cast<InferenceContext*>(ctx)->Rank(
          *reinterpret_cast<ShapeHandle*>(handle));
    }
    
    void TF_ShapeInferenceContextDim(TF_ShapeInferenceContext* ctx,
                                     TF_ShapeHandle* shape_handle, int64_t i,
                                     TF_DimensionHandle* result) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  3. tensorflow/c/ops_test.cc

      ASSERT_EQ(1, TF_ShapeInferenceContextRankKnown(C_CTX(&c), handle));
      ASSERT_EQ(1, TF_ShapeInferenceContextRank(C_CTX(&c), handle));
    
      TF_DimensionHandle* dim_handle = TF_NewDimensionHandle();
      TF_ShapeInferenceContextDim(C_CTX(&c), handle, 0, dim_handle);
      ASSERT_EQ(1, TF_DimensionHandleValueKnown(dim_handle));
      ASSERT_EQ(43, TF_DimensionHandleValue(dim_handle));
      TF_DeleteShapeHandle(handle);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  4. tensorflow/c/ops.h

        TF_ShapeHandle* result, TF_Status* status);
    
    // Places a handle to the ith dimension of the given shape into *result.
    TF_CAPI_EXPORT extern void TF_ShapeInferenceContextDim(
        TF_ShapeInferenceContext* ctx, TF_ShapeHandle* shape_handle, int64_t i,
        TF_DimensionHandle* result);
    
    // Returns in <*result> a sub-shape of <shape_handle>, with dimensions
    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