CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxOperationSchema Class Reference

Immutable operation contract and retained realization callbacks. More...

#include <ctxGraph.h>

Inheritance diagram for ctxOperationSchema:
ctxDeferredOperationSchema ctxParameterOperationSchema

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ctxOperationSchema() [1/2]

ctxOperationSchema::ctxOperationSchema ( const gzString & key,
gzUInt32 version,
ctxGraphOperationLowerer * operationLowerer,
ctxGraphConnectionLowerer * connectionLowerer,
gzBool derivatives )

References CTX_EXPORT.

Referenced by ctxGraph.

◆ ctxOperationSchema() [2/2]

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.

Member Function Documentation

◆ canSave()

gzBool ctxOperationSchema::canSave ( ) const

Whether the retained contract supports graph-only XML serialization.

References CTX_EXPORT.

◆ getClassType()

gzType * ctxOperationSchema::getClassType ( )
static

References CTX_EXPORT.

◆ getCompatibilityType()

ctxGraphOperationType ctxOperationSchema::getCompatibilityType ( ) const

References CTX_EXPORT.

◆ getConnectionLowerer()

ctxGraphConnectionLowererPtr ctxOperationSchema::getConnectionLowerer ( ) const

References CTX_EXPORT.

◆ getInputCount()

gzUInt32 ctxOperationSchema::getInputCount ( ) const

Zero for Input, two for Add/Multiply, one for other compatibility contracts.

References CTX_EXPORT.

◆ getKey()

gzString ctxOperationSchema::getKey ( ) const

References CTX_EXPORT.

◆ getOperationLowerer()

ctxGraphOperationLowererPtr ctxOperationSchema::getOperationLowerer ( ) const

References CTX_EXPORT.

◆ getPortName()

gzString ctxOperationSchema::getPortName ( ctxPortKind kind) const

References CTX_EXPORT.

◆ getSemanticAttributes()

gzBool ctxOperationSchema::getSemanticAttributes ( const ctxGraphOperation & operation,
gzDynamicTypeContainer & attributes ) const

References CTX_EXPORT.

◆ getShape()

ctxShape ctxOperationSchema::getShape ( const ctxGraphOperation & operation) const

References CTX_EXPORT.

◆ getType()

virtual gzType * ctxOperationSchema::getType ( ) const
virtual

◆ getValueType()

ctxValueType ctxOperationSchema::getValueType ( ctxPortKind kind) const

References CTX_EXPORT.

◆ getVersion()

gzUInt32 ctxOperationSchema::getVersion ( ) const

References CTX_EXPORT.

◆ hasBias()

gzBool ctxOperationSchema::hasBias ( ) const

References CTX_EXPORT.

◆ hasWeights()

gzBool ctxOperationSchema::hasWeights ( ) const

References CTX_EXPORT.

◆ isBuiltin()

gzBool ctxOperationSchema::isBuiltin ( ) const

References CTX_EXPORT.

◆ supportsDeferredBuild()

gzBool ctxOperationSchema::supportsDeferredBuild ( ) const

Whether the captured contract permits generic lowering after build.

References CTX_EXPORT.

◆ supportsDerivatives()

gzBool ctxOperationSchema::supportsDerivatives ( ) const

References CTX_EXPORT.

◆ useDeepCopy()

virtual gzBool ctxOperationSchema::useDeepCopy ( )
overridevirtual

References CTX_EXPORT.

◆ validate()

gzBool ctxOperationSchema::validate ( const ctxGraphOperation & operation,
gzString & error ) const

References CTX_EXPORT.

◆ validateData()

virtual gzBool ctxOperationSchema::validateData ( const ctxOperationData & data,
gzString & error ) const
virtual

Default contracts reject nonempty data; external definitions may opt in.

References CTX_EXPORT.

◆ ctxGraph

friend class ctxGraph
friend

Definition at line 453 of file ctxGraph.h.

References ctxGraph, and ctxOperationSchema().

Referenced by ctxGraph.


The documentation for this class was generated from the following file: