Skip to content

Commit 77992a6

Browse files
committed
add note on AD
1 parent c60189f commit 77992a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/discrete_blocks.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,9 @@ A quantization block that quantizes the input signal to a specified number of bi
897897
# Variables
898898
- `y`: Output signal, equal to `output.u`
899899
- `u`: Input signal, equal to `input.u`
900+
901+
# Automatic differentiation
902+
This block is not differentiable, the derivative is zero everywhere exect for at the level transition where it is ill defined. To use in a differentiable context, set `quantized = false` which turns this block into the identity function.
900903
"""
901904
@mtkmodel Quantization begin
902905
@extend u, y = siso = SISO()

0 commit comments

Comments
 (0)