shape_text.h#
Shape-inference functions for ONNX operators in the text family.
-
namespace ONNX_LIGHT_NAMESPACE
-
namespace onnx_optim
-
namespace shapes
-
namespace text#
Functions
-
void ComputeShapeStringConcat(ShapesContext &ctx, const NodeProto &node, const char *a, const char *b)#
Computes the output :cpp:class:
OptimTensorof aStringConcatnode and stores it inctx.StringConcatconcatenates two string tensors element-wise with numpy-style multidirectional broadcasting (since opset 20 in theai.onnxdomain). The output dtype is always :cpp:enumerator:TensorType::kStringand the output shape is the broadcast of the two input shapes.- Parameters:
ctx – In/out context. Must already contain entries for both
aandb; on return it also contains an entry fornode.output(0).node – The
StringConcatNodeProtowhose output should be described.node.op_type()must be"StringConcat"andnodemust declare at least one output.a – Name of the first input value to read from
ctx.b – Name of the second input value to read from
ctx.
- Throws:
-
void ComputeShapeStringConcat(ShapesContext &ctx, const NodeProto &node, const char *a, const char *b)#
-
namespace text#
-
namespace shapes
-
namespace onnx_optim