MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::tosa::ValidationOptions Struct Reference

#include "mlir/Dialect/Tosa/Transforms/Passes.h"

Public Member Functions

ValidationOptionssetProfile (TosaProfileEnum profile)
 
ValidationOptionsenableStrictOperationSpecAlignment (bool enable=true)
 
ValidationOptionssetLevel (TosaLevelEnum level)
 

Public Attributes

TosaProfileEnum profile = TosaProfileEnum::Undefined
 Validate if operations match for the given profile. More...
 
bool strictOperationSpecAlignment = false
 Verify if the properties of certain operations align the spec requirement. More...
 
TosaLevelEnum level = TosaLevelEnum::EightK
 Validate if operator parameters are within specfication for the given level. More...
 

Detailed Description

Definition at line 52 of file Passes.h.

Member Function Documentation

◆ enableStrictOperationSpecAlignment()

ValidationOptions& mlir::tosa::ValidationOptions::enableStrictOperationSpecAlignment ( bool  enable = true)
inline

Definition at line 61 of file Passes.h.

References strictOperationSpecAlignment.

◆ setLevel()

ValidationOptions& mlir::tosa::ValidationOptions::setLevel ( TosaLevelEnum  level)
inline

Definition at line 68 of file Passes.h.

References level.

◆ setProfile()

ValidationOptions& mlir::tosa::ValidationOptions::setProfile ( TosaProfileEnum  profile)
inline

Definition at line 55 of file Passes.h.

References profile.

Member Data Documentation

◆ level

TosaLevelEnum mlir::tosa::ValidationOptions::level = TosaLevelEnum::EightK

Validate if operator parameters are within specfication for the given level.

Definition at line 67 of file Passes.h.

Referenced by setLevel().

◆ profile

TosaProfileEnum mlir::tosa::ValidationOptions::profile = TosaProfileEnum::Undefined

Validate if operations match for the given profile.

Definition at line 54 of file Passes.h.

Referenced by setProfile().

◆ strictOperationSpecAlignment

bool mlir::tosa::ValidationOptions::strictOperationSpecAlignment = false

Verify if the properties of certain operations align the spec requirement.

Definition at line 60 of file Passes.h.

Referenced by enableStrictOperationSpecAlignment().


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