diff options
Diffstat (limited to 'rs')
-rw-r--r-- | rs/java/android/renderscript/ScriptIntrinsicBLAS.java | 2 | ||||
-rw-r--r-- | rs/java/android/renderscript/ScriptIntrinsicBlend.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/rs/java/android/renderscript/ScriptIntrinsicBLAS.java b/rs/java/android/renderscript/ScriptIntrinsicBLAS.java index 06134e5..c04191b 100644 --- a/rs/java/android/renderscript/ScriptIntrinsicBLAS.java +++ b/rs/java/android/renderscript/ScriptIntrinsicBLAS.java @@ -3272,7 +3272,7 @@ public final class ScriptIntrinsicBLAS extends ScriptIntrinsic { /** - * 8-bit GEMM-like operation for neural networks: C = B.transposed() * A + * 8-bit GEMM-like operation for neural networks: C = A * Transpose(B) * Calculations are done in 1.10.21 fixed-point format for the final output, * just before there's a shift down to drop the fractional parts. The output * values are gated to 0 to 255 to fit in a byte, but the 10-bit format diff --git a/rs/java/android/renderscript/ScriptIntrinsicBlend.java b/rs/java/android/renderscript/ScriptIntrinsicBlend.java index 906e0f6..6b09bb7 100644 --- a/rs/java/android/renderscript/ScriptIntrinsicBlend.java +++ b/rs/java/android/renderscript/ScriptIntrinsicBlend.java @@ -360,6 +360,8 @@ public class ScriptIntrinsicBlend extends ScriptIntrinsic { /** * dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb * dst.a = src.a + * Note: Before API 23, the alpha channel was not correctly set. + * Please use with caution when targeting older APIs. * * @param ain The source buffer * @param aout The destination buffer @@ -371,6 +373,8 @@ public class ScriptIntrinsicBlend extends ScriptIntrinsic { /** * dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb * dst.a = src.a + * Note: Before API 23, the alpha channel was not correctly set. + * Please use with caution when targeting older APIs. * * @param ain The source buffer * @param aout The destination buffer |