- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for TF_ShapeInferenceContextScalar (0.32 sec)
-
tensorflow/c/kernels/ops/summary.cc
static void scalar_summary_shape_inference_fn(TF_ShapeInferenceContext* ctx, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); TF_ShapeHandle* result = TF_ShapeInferenceContextScalar(ctx); TF_ShapeInferenceContextSetOutput(ctx, 0, result, status); TF_DeleteShapeHandle(result); } void Register_ScalarSummaryOp() { TF_Status* status = TF_NewStatus();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 21:04:53 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/c/kernels/ops/merge_summary.cc
static void merge_summary_shape_inference_fn(TF_ShapeInferenceContext* ctx, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); TF_ShapeHandle* result = TF_ShapeInferenceContextScalar(ctx); TF_ShapeInferenceContextSetOutput(ctx, 0, result, status); TF_DeleteShapeHandle(result); } void Register_MergeSummaryOp() { TF_Status* status = TF_NewStatus();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 21:04:53 UTC 2023 - 2K bytes - Viewed (0) -
tensorflow/c/kernels/ops/histogram_summary.cc
static void histogram_summary_shape_inference_fn(TF_ShapeInferenceContext* ctx, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); TF_ShapeHandle* result = TF_ShapeInferenceContextScalar(ctx); TF_ShapeInferenceContextSetOutput(ctx, 0, result, status); TF_DeleteShapeHandle(result); } void Register_HistogramSummaryOp() { TF_Status* status = TF_NewStatus();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 21:04:53 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/c/ops.cc
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; *handle = reinterpret_cast<InferenceContext*>(ctx)->Scalar(); return reinterpret_cast<TF_ShapeHandle*>(handle); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 28 22:41:35 UTC 2022 - 10.9K bytes - Viewed (0) -
tensorflow/c/ops_test.cc
TEST(OpsTest, ShapeInferenceScalarShape) { NodeDef def; shape_inference::InferenceContext c(0, def, MakeOpDef(0, 0), {S({})}, {}, {}, {}); TF_ShapeHandle* TF_scalar_shape = TF_ShapeInferenceContextScalar(C_CTX(&c)); shape_inference::ShapeHandle* scalar_shape = reinterpret_cast<shape_inference::ShapeHandle*>(TF_scalar_shape); ASSERT_EQ("[]", c.DebugString(*scalar_shape));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 12.6K bytes - Viewed (0) -
tensorflow/c/ops.h
// Returns a newly-allocated scalar shape handle. The returned handle should // be freed with TF_DeleteShapeHandle. TF_CAPI_EXPORT extern TF_ShapeHandle* TF_ShapeInferenceContextScalar( TF_ShapeInferenceContext* ctx); // Returns a newly-allocate shape handle representing a vector of the given // size. The returned handle should be freed with TF_DeleteShapeHandle.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 16.3K bytes - Viewed (0)