Conv3D Tiling Constructor
Function Usage
Creates a Conv3D single-core tiling object.
Prototype
- Parameterized constructor, which requires the hardware platform information to be passed. You are advised to use this type of constructor to achieve better compatibility.
- Use PlatformAscendC to pass information.
1explicit Conv3dTiling(const platform_ascendc::PlatformAscendC& ascendcPlatform)
- Use PlatformInfo to pass information.If platform_ascendc::PlatformAscendC fails to be obtained during tiling running, you need to construct the PlatformInfo structure and transparently transmit it to the Conv3dTiling constructor.
1explicit Conv3dTiling(const PlatformInfo& platform)
- Use PlatformAscendC to pass information.
- Base class constructor
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
ascendcPlatform |
Input |
Hardware platform information that is passed. For details about the definition of PlatformAscendC, see Constructor and Destructor. |
||
platform |
Input |
Hardware version and memory size of each hardware unit in the AI Core that are passed. The value is obtained through Constructor and Destructor during PlatformInfo construction. The PlatformInfo structure is defined as follows. socVersion is obtained through GetSocVersion and transparently transmitted. Hardware storage space sizes are obtained through GetCoreMemSize and transparently transmitted.
|
Restrictions
None
Examples
1 2 3 4 5 6 7 | // Instantiate the Conv3d API. auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo()); Conv3dTilingApi::Conv3dTiling conv3dApiTiling(ascendcPlatform); conv3dApiTiling.SetGroups(groups); conv3dApiTiling.SetOrgWeightShape(cout, kd, kh, kw); ... conv3dApiTiling.GetTiling(conv3dCustomTilingData.conv3dApiTilingData); |
Parent topic: Conv3D Tiling APIs