Skip to content

Add internal slots to MLOperand, MLActivation and basic algorithms #336

@zolkis

Description

@zolkis

In the validation steps for various operations (for instance Batch Norm), the following dependencies/references/algorithms need to be defined (this entry will be kept updated):

  • Internal slots for MLOperand:
    • [[type]] as MLOperandType
    • [[dimensions]] as sequence<unsigned long>
    • [[name]] as string (only for input operands)
    • [[data]] as ArrayBufferView (tensor of given dimensions)
    • [[builder]] the associated MLGraphBuilder
  • Algorithm (or internal slot) to get the rank of the operand (for checking range for axis)
  • Algorithm to internally create an MLOperand given |builder| and |descriptor|, used by op algorithms.
  • Algorithm to internally copy an MLOperand, used by op algorithms.
  • Algorithm to check dimensions given |dimensions| and |type|.
  • Internal slots for MLActivation:
    • [[name]] as string, e.g. "relu", "sigmoid", "softmax", etc.
    • ? [[input]] as MLOperand (needed?)
    • ? [[output]] as MLOperand (intermediate output?)
  • Algorithm to create an MLActivation, used by the op algorithms.

Related to the clarification of terms requested in #335.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions