|
| | MLGraphBuilder () |
| |
| | MLGraphBuilder (MLContext &context) |
| |
| | ~MLGraphBuilder () |
| |
| | MLGraphBuilder (const MLGraphBuilder &)=delete |
| |
| MLGraphBuilder & | operator= (const MLGraphBuilder &)=delete |
| |
| | MLGraphBuilder (MLGraphBuilder &&other) noexcept |
| |
| MLGraphBuilder & | operator= (MLGraphBuilder &&other) noexcept |
| |
| MLOperand | input (const std::string &name, const MLOperandDescriptor &descriptor) |
| | Declare a named graph input with the supplied type and shape.
|
| |
| template<typename T > |
| MLOperand | constant (const MLOperandDescriptor &descriptor, const std::vector< T > &data) |
| | Copy constant data into the graph; T must match the descriptor's storage.
|
| |
| MLOperand | unary (RustnnUnaryOperation operation, const MLOperand &input) |
| |
| MLOperand | unary (RustnnUnaryOperation operation, const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | binary (RustnnBinaryOperation operation, const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | binary (RustnnBinaryOperation operation, const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | add (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | add (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | subtract (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | subtract (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | multiply (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | multiply (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | divide (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | divide (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | power (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | power (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | maximum (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | maximum (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | minimum (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | minimum (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | equal (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | equal (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | greater (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | greater (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | greaterOrEqual (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | greaterOrEqual (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | lesser (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | lesser (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | lesserOrEqual (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | lesserOrEqual (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | notEqual (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | notEqual (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | logicalAnd (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | logicalAnd (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | logicalOr (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | logicalOr (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | logicalXor (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | logicalXor (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | matmul (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | matmul (const MLOperand &lhs, const MLOperand &rhs, const MLOperatorOptions &options) |
| |
| MLOperand | abs (const MLOperand &input) |
| |
| MLOperand | abs (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | roundEven (const MLOperand &input) |
| |
| MLOperand | roundEven (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | ceil (const MLOperand &input) |
| |
| MLOperand | ceil (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | cos (const MLOperand &input) |
| |
| MLOperand | cos (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | exp (const MLOperand &input) |
| |
| MLOperand | exp (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | floor (const MLOperand &input) |
| |
| MLOperand | floor (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | gelu (const MLOperand &input) |
| |
| MLOperand | gelu (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | log (const MLOperand &input) |
| |
| MLOperand | log (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | negate (const MLOperand &input) |
| |
| MLOperand | negate (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | relu (const MLOperand &input) |
| |
| MLOperand | relu (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | sigmoid (const MLOperand &input) |
| |
| MLOperand | sigmoid (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | sin (const MLOperand &input) |
| |
| MLOperand | sin (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | sqrt (const MLOperand &input) |
| |
| MLOperand | sqrt (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | tan (const MLOperand &input) |
| |
| MLOperand | tan (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | tanh (const MLOperand &input) |
| |
| MLOperand | tanh (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | erf (const MLOperand &input) |
| |
| MLOperand | erf (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | reciprocal (const MLOperand &input) |
| |
| MLOperand | reciprocal (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | sign (const MLOperand &input) |
| |
| MLOperand | sign (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | logicalNot (const MLOperand &input) |
| |
| MLOperand | logicalNot (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | identity (const MLOperand &input) |
| |
| MLOperand | identity (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | softplus (const MLOperand &input) |
| |
| MLOperand | softplus (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | softsign (const MLOperand &input) |
| |
| MLOperand | softsign (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | isNaN (const MLOperand &input) |
| |
| MLOperand | isNaN (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | isInfinite (const MLOperand &input) |
| |
| MLOperand | isInfinite (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | shape (const MLOperand &input) |
| |
| MLOperand | shape (const MLOperand &input, const MLOperatorOptions &options) |
| |
| MLOperand | elu (const MLOperand &input) |
| |
| MLOperand | hardSigmoid (const MLOperand &input) |
| |
| MLOperand | hardSwish (const MLOperand &input) |
| |
| MLOperand | leakyRelu (const MLOperand &input) |
| |
| MLOperand | linear (const MLOperand &input) |
| |
| MLOperand | clamp (const MLOperand &input) |
| |
| MLOperand | instanceNormalization (const MLOperand &input) |
| |
| MLOperand | layerNormalization (const MLOperand &input) |
| |
| MLOperand | resample2d (const MLOperand &input) |
| |
| MLOperand | reverse (const MLOperand &input) |
| |
| MLOperand | triangular (const MLOperand &input) |
| |
| MLOperand | averagePool2d (const MLOperand &input) |
| |
| MLOperand | maxPool2d (const MLOperand &input) |
| |
| MLOperand | l2Pool2d (const MLOperand &input) |
| |
| MLOperand | reduceSum (const MLOperand &input) |
| |
| MLOperand | reduceMean (const MLOperand &input) |
| |
| MLOperand | reduceMax (const MLOperand &input) |
| |
| MLOperand | reduceMin (const MLOperand &input) |
| |
| MLOperand | reduceProduct (const MLOperand &input) |
| |
| MLOperand | reduceL1 (const MLOperand &input) |
| |
| MLOperand | reduceL2 (const MLOperand &input) |
| |
| MLOperand | reduceLogSum (const MLOperand &input) |
| |
| MLOperand | reduceLogSumExp (const MLOperand &input) |
| |
| MLOperand | reduceSumSquare (const MLOperand &input) |
| |
| MLOperand | transpose (const MLOperand &input) |
| |
| MLOperand | squeeze (const MLOperand &input) |
| |
| MLOperand | unsqueeze (const MLOperand &input) |
| |
| MLOperand | gemm (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | conv2d (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | convTranspose2d (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | gather (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | gatherElements (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | gatherND (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | prelu (const MLOperand &lhs, const MLOperand &rhs) |
| |
| MLOperand | batchNormalization (const MLOperand &first, const MLOperand &second, const MLOperand &third) |
| |
| MLOperand | where (const MLOperand &first, const MLOperand &second, const MLOperand &third) |
| |
| MLOperand | scatterElements (const MLOperand &first, const MLOperand &second, const MLOperand &third) |
| |
| MLOperand | scatterND (const MLOperand &first, const MLOperand &second, const MLOperand &third) |
| |
| MLOperand | argMin (const MLOperand &input, std::uint32_t axis) |
| |
| MLOperand | argMax (const MLOperand &input, std::uint32_t axis) |
| |
| MLOperand | cast (const MLOperand &input, MLOperandDataType data_type) |
| |
| MLOperand | cumulativeSum (const MLOperand &input, std::uint32_t axis) |
| |
| MLOperand | softmax (const MLOperand &input, std::uint32_t axis) |
| |
| MLOperand | expand (const MLOperand &input, const std::vector< std::uint32_t > &new_shape) |
| |
| MLOperand | reshape (const MLOperand &input, const std::vector< std::uint32_t > &new_shape) |
| |
| MLOperand | tile (const MLOperand &input, const std::vector< std::uint32_t > &repetitions) |
| |
| MLOperand | pad (const MLOperand &input, const std::vector< std::uint32_t > &beginning_padding, const std::vector< std::uint32_t > &ending_padding) |
| |
| MLOperand | slice (const MLOperand &input, const std::vector< std::uint32_t > &starts, const std::vector< std::uint32_t > &sizes) |
| |
| MLOperand | concat (const std::vector< const MLOperand * > &inputs, std::uint32_t axis) |
| |
| MLOperand | quantizeLinear (const MLOperand &input, const MLOperand &scale, const MLOperand *zero_point=nullptr) |
| |
| MLOperand | dequantizeLinear (const MLOperand &input, const MLOperand &scale, const MLOperand *zero_point=nullptr) |
| |
| std::vector< MLOperand > | split (const MLOperand &input, const std::vector< std::uint32_t > &splits) |
| |
| std::vector< MLOperand > | split (const MLOperand &input, std::uint32_t num_splits) |
| |
| std::vector< MLOperand > | gru (const MLOperand &input, const MLOperand &weight, const MLOperand &recurrent_weight, std::uint32_t steps, std::uint32_t hidden_size) |
| |
| MLOperand | gruCell (const MLOperand &input, const MLOperand &weight, const MLOperand &recurrent_weight, const MLOperand &hidden_state, std::uint32_t hidden_size) |
| |
| std::vector< MLOperand > | lstm (const MLOperand &input, const MLOperand &weight, const MLOperand &recurrent_weight, std::uint32_t steps, std::uint32_t hidden_size) |
| |
| std::vector< MLOperand > | lstmCell (const MLOperand &input, const MLOperand &weight, const MLOperand &recurrent_weight, const MLOperand &hidden_state, const MLOperand &cell_state, std::uint32_t hidden_size) |
| |
| std::vector< std::uint64_t > | operandShape (const MLOperand &operand) |
| | Return an operand's inferred dimensions.
|
| |
| MLOperandDataType | dataType (const MLOperand &operand) |
| |
| std::string | webnnText (const std::vector< std::pair< std::string, const MLOperand * > > &outputs) const |
| | Serialize the named outputs as rustnn WebNN graph text.
|
| |
| MLGraph | build (const std::vector< std::pair< std::string, const MLOperand * > > &outputs) |
| | Compile named outputs and consume this builder; the context must outlive the graph.
|
| |
Records and validates graph operations.
The default constructor supports graph construction and text export. Construct with MLContext to compile a graph; build() consumes the builder.
Definition at line 385 of file rustnn.hpp.