BitwiseNot
Function Usage
Image processing algorithm, BitwiseNot, supporting the uint8 data type. Asynchronous calling is supported. The inplace operation is not supported.
It is supported by the Atlas inference product and
For the
The following conditions must be met:
- The input and output tensors must be on the device or DVPP side, and the parameters (stream and data memory) must be on the same device.
- For synchronization, the device where the data memory is located must be the same as the initialized device.
- Handle the issue of out-of-range data if any.
- The input and output parameters cannot exceed four dimensions, and must match the tensor shapes and types.
Prototype
1 | APP_ERROR BitwiseNot(const Tensor &src, Tensor &dst, AscendStream& stream=AscendStream::DefaultStream()); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
src |
Input |
Tensor class, input tensor, supporting the uint8 data type. The data memory must be on the device or DVPP side. |
dst |
Output |
Tensor, output tensor of the uint8 type. Empty tensors can be passed. If dst is not empty, the shape of dst must be the same as that of src. Call Tensor.Malloc() to allocate memory in advance. The data memory must be on the device (the same device as src) or DVPP. |
stream |
Input |
AscendStream type. The default value is AscendStream::DefaultStream(). When the parameter value is the default value, the API calling is a synchronous operation. In other cases, the API calling is an asynchronous operation. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |