|
CorTeX Core ABI 7
ToolTech Software · C++ library reference
|
Immutable operation contract and retained realization callbacks. More...
#include <ctxGraph.h>
Public Member Functions | |
| virtual gzType * | getType () const |
| ctxOperationSchema (const gzString &key, gzUInt32 version, ctxGraphOperationLowerer *operationLowerer, ctxGraphConnectionLowerer *connectionLowerer, gzBool derivatives) | |
| ctxOperationSchema (const gzString &key, gzUInt32 version, ctxGraphOperationType role, ctxGraphOperationLowerer *operationLowerer, ctxGraphConnectionLowerer *connectionLowerer, gzBool derivatives) | |
| Explicit registered role: ACTIVATION, DENSE_FROM or CONVOLUTION_2D. | |
| virtual gzBool | useDeepCopy () override |
| gzString | getKey () const |
| gzUInt32 | getVersion () const |
| ctxGraphOperationType | getCompatibilityType () const |
| gzBool | isBuiltin () const |
| gzBool | canSave () const |
| Whether the retained contract supports graph-only XML serialization. | |
| gzBool | supportsDerivatives () const |
| gzBool | supportsDeferredBuild () const |
| Whether the captured contract permits generic lowering after build. | |
| gzBool | hasBias () const |
| gzBool | hasWeights () const |
| gzUInt32 | getInputCount () const |
| Zero for Input, two for Add/Multiply, one for other compatibility contracts. | |
| gzString | getPortName (ctxPortKind kind) const |
| ctxValueType | getValueType (ctxPortKind kind) const |
| ctxShape | getShape (const ctxGraphOperation &operation) const |
| gzBool | getSemanticAttributes (const ctxGraphOperation &operation, gzDynamicTypeContainer &attributes) const |
| gzBool | validate (const ctxGraphOperation &operation, gzString &error) const |
| virtual gzBool | validateData (const ctxOperationData &data, gzString &error) const |
| Default contracts reject nonempty data; external definitions may opt in. | |
| ctxGraphOperationLowererPtr | getOperationLowerer () const |
| ctxGraphConnectionLowererPtr | getConnectionLowerer () const |
Static Public Member Functions | |
| static gzType * | getClassType () |
Friends | |
| class | ctxGraph |
Immutable operation contract and retained realization callbacks.
The original constructor describes a rank-one gzFloat, parameter-free unary operation. The explicit-role constructor also supports the existing DenseFrom and Convolution parameter contracts, handles and sharing. The legacy operation type remains a compatibility role, not a registered type identity. Graph-only XML version 8 preserves the exact registered key/version; loading requires that definition to be registered. Custom document snapshots and operation-local state are not supported. Callbacks must preserve the installed semantic contract; mutable per-build state belongs in the lowering context, not in a replacement type catalog. Retaining this object does not make unloading callback code safe.
Definition at line 413 of file ctxGraph.h.
| ctxOperationSchema::ctxOperationSchema | ( | const gzString & | key, |
| gzUInt32 | version, | ||
| ctxGraphOperationLowerer * | operationLowerer, | ||
| ctxGraphConnectionLowerer * | connectionLowerer, | ||
| gzBool | derivatives ) |
References CTX_EXPORT.
Referenced by ctxGraph.
| ctxOperationSchema::ctxOperationSchema | ( | const gzString & | key, |
| gzUInt32 | version, | ||
| ctxGraphOperationType | role, | ||
| ctxGraphOperationLowerer * | operationLowerer, | ||
| ctxGraphConnectionLowerer * | connectionLowerer, | ||
| gzBool | derivatives ) |
Explicit registered role: ACTIVATION, DENSE_FROM or CONVOLUTION_2D.
References CTX_EXPORT.
| gzBool ctxOperationSchema::canSave | ( | ) | const |
Whether the retained contract supports graph-only XML serialization.
References CTX_EXPORT.
|
static |
References CTX_EXPORT.
| ctxGraphOperationType ctxOperationSchema::getCompatibilityType | ( | ) | const |
References CTX_EXPORT.
| ctxGraphConnectionLowererPtr ctxOperationSchema::getConnectionLowerer | ( | ) | const |
References CTX_EXPORT.
| gzUInt32 ctxOperationSchema::getInputCount | ( | ) | const |
Zero for Input, two for Add/Multiply, one for other compatibility contracts.
References CTX_EXPORT.
| gzString ctxOperationSchema::getKey | ( | ) | const |
References CTX_EXPORT.
| ctxGraphOperationLowererPtr ctxOperationSchema::getOperationLowerer | ( | ) | const |
References CTX_EXPORT.
| gzString ctxOperationSchema::getPortName | ( | ctxPortKind | kind | ) | const |
References CTX_EXPORT.
| gzBool ctxOperationSchema::getSemanticAttributes | ( | const ctxGraphOperation & | operation, |
| gzDynamicTypeContainer & | attributes ) const |
References CTX_EXPORT.
| ctxShape ctxOperationSchema::getShape | ( | const ctxGraphOperation & | operation | ) | const |
References CTX_EXPORT.
|
virtual |
Reimplemented in ctxDeferredOperationSchema, and ctxParameterOperationSchema.
| ctxValueType ctxOperationSchema::getValueType | ( | ctxPortKind | kind | ) | const |
References CTX_EXPORT.
| gzUInt32 ctxOperationSchema::getVersion | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxOperationSchema::hasBias | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxOperationSchema::hasWeights | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxOperationSchema::isBuiltin | ( | ) | const |
References CTX_EXPORT.
| gzBool ctxOperationSchema::supportsDeferredBuild | ( | ) | const |
Whether the captured contract permits generic lowering after build.
References CTX_EXPORT.
| gzBool ctxOperationSchema::supportsDerivatives | ( | ) | const |
References CTX_EXPORT.
|
overridevirtual |
References CTX_EXPORT.
| gzBool ctxOperationSchema::validate | ( | const ctxGraphOperation & | operation, |
| gzString & | error ) const |
References CTX_EXPORT.
|
virtual |
Default contracts reject nonempty data; external definitions may opt in.
References CTX_EXPORT.
|
friend |
Definition at line 453 of file ctxGraph.h.
References ctxGraph, and ctxOperationSchema().
Referenced by ctxGraph.