Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_NewShapeHandle (0.2 sec)

  1. tensorflow/c/ops_test.cc

        }
      }
      EXPECT_TRUE(found);
      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

        TF_DeleteShapeHandle(extension);
      }
    }
    
    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);
    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

            tensorflow::Status result = ::tensorflow::StatusFromTF_Status(c_status);
            TF_DeleteStatus(c_status);
            return result;
          });
    }
    
    TF_ShapeHandle* TF_NewShapeHandle() {
      return reinterpret_cast<TF_ShapeHandle*>(new ShapeHandle);
    }
    
    TF_ShapeHandle* TF_ShapeInferenceContextScalar(TF_ShapeInferenceContext* ctx) {
      auto* handle = new ShapeHandle;
    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