ValueDepend
Function
Indicates whether an input is a data-dependent input. Functions such as Tiling and InferShape depend on specific data of such inputs when implemented. The input data is on the host. You can obtain the input data by using GetInputTensor of the TilingContext class or GetInputTensor of the InferShapeContext class in the Tiling or InferShape function.
Prototype
1 2 |
OpParamDef &ValueDepend(Option value_depend) OpParamDef &ValueDepend(Option value_depend, DependScope scope) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
value_depend |
Input |
The options of value_depend are as follows:
|
|
scope |
Input |
The scope type is the enumeration DependScope. The options are as follows:
|
Returns
OpParamDef operator definition. For details, see OpParamDef.