Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_ShapeInferenceContextGetInput (0.64 sec)

  1. tensorflow/c/ops_test.cc

      TF_DeleteStatus(status);
      TF_DeleteBuffer(op_list_buffer);
    }
    
    void identity_shape_fn(TF_ShapeInferenceContext* ctx, TF_Status* status) {
      TF_ShapeHandle* handle = TF_NewShapeHandle();
      TF_ShapeInferenceContextGetInput(ctx, 0, handle, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status));
      TF_ShapeInferenceContextSetOutput(ctx, 0, handle, status);
      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)
  2. tensorflow/c/kernels/ops/bitcast.cc

      }
    }
    
    static void bitcast_shape_inference_fn(TF_ShapeInferenceContext* ctx,
                                           TF_Status* status) {
      TF_ShapeHandle* result = TF_NewShapeHandle();
      TF_ShapeInferenceContextGetInput(ctx, 0, result, status);
      if (TF_GetCode(status) == TF_OK &&
          !TF_ShapeInferenceContextRankKnown(ctx, result)) {
        TF_ShapeInferenceContextSetUnknownShape(ctx, status);
        TF_DeleteShapeHandle(result);
    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.cc

    }
    
    int64_t TF_ShapeInferenceContextNumInputs(TF_ShapeInferenceContext* ctx) {
      auto* cc_ctx = reinterpret_cast<InferenceContext*>(ctx);
      return cc_ctx->num_inputs();
    }
    
    void TF_ShapeInferenceContextGetInput(TF_ShapeInferenceContext* ctx, int i,
                                          TF_ShapeHandle* handle,
                                          TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  4. tensorflow/c/ops.h

    // very simple shape inference function:
    //
    // void identity_shape_fn(TF_ShapeInferenceContext* ctx, TF_Status* status) {
    //   TF_ShapeHandle* input = TF_NewShapeHandle();
    //   TF_ShapeInferenceContextGetInput(ctx, 0, input, status);
    //   if (TF_GetCode(status) == TF_OK) {
    //     TF_ShapeInferenceContextSetOutput(ctx, 0, input, status);
    //   }
    //   TF_DeleteShapeHandle(input);
    // }
    //
    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