Lens Scripting API
    Preparing search index...

    Class BasePlaceholder

    Base class for Input and Output Placeholders used by MLComponent.

    Hierarchy (View Summary)

    Index

    Properties

    dataLayout: DataLayout

    The data layout of the current BasePlaceholder, which defines the order in which multidimensional data is accessed in memory. The default layout is MachineLearning.DataLayout.NHWC.

    internalDataLayout: DataLayout

    The internal data layout of the current BasePlaceholder. This layout is used by ML backend. If dataLayout is not the same as internalDataLayout, a layout conversion will happen when process models input/output.

    name: string

    The name of the Placeholder.

    shape: vec3

    The shape of the Placeholder's data.

    transformer: Transformer

    Transformer object for applying transformations on the PlaceHolder's data.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean