- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_ShapeInferenceContextSetUnknownShape (0.56 sec)
-
tensorflow/c/kernels/ops/bitcast.cc
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); return; } // Find the size of the input and output data types. TF_DataType input_type; TF_DataType output_type;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 07:51:50 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/c/ops.cc
} int TF_DimensionHandleValueKnown(TF_DimensionHandle* dim_handle) { return InferenceContext::ValueKnown( *reinterpret_cast<DimensionHandle*>(dim_handle)); } void TF_ShapeInferenceContextSetUnknownShape(TF_ShapeInferenceContext* ctx, TF_Status* status) { Status s = ::tensorflow::shape_inference::UnknownShape( reinterpret_cast<InferenceContext*>(ctx));
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
TF_OpDefinitionBuilderAddOutput(builder, "output1: uint8"); TF_OpDefinitionBuilderAddOutput(builder, "output2: uint8"); TF_OpDefinitionBuilderSetShapeInferenceFunction( builder, &TF_ShapeInferenceContextSetUnknownShape); TF_Status* status = TF_NewStatus(); TF_RegisterOpDefinition(builder, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(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) -
tensorflow/c/ops.h
// Places an unknown shape in all outputs for the given inference context. Used // for shape inference functions with ops whose output shapes are unknown. TF_CAPI_EXPORT extern void TF_ShapeInferenceContextSetUnknownShape( TF_ShapeInferenceContext* ctx, TF_Status* status); // Returns whether the given handle represents a known dimension. TF_CAPI_EXPORT extern int TF_DimensionHandleValueKnown(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 16.3K bytes - Viewed (0)