Skip to content

Commit

Permalink
add note on AD
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Sep 4, 2024
1 parent c60189f commit 77992a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/discrete_blocks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,9 @@ A quantization block that quantizes the input signal to a specified number of bi
# Variables
- `y`: Output signal, equal to `output.u`
- `u`: Input signal, equal to `input.u`
# Automatic differentiation
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.
"""
@mtkmodel Quantization begin
@extend u, y = siso = SISO()
Expand Down

0 comments on commit 77992a6

Please sign in to comment.