Skip to content

Commit

Permalink
make operators' parameters empty as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Nov 17, 2018
1 parent de335fb commit a69e2d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.jl
Expand Up @@ -44,5 +44,6 @@ function register_parameters end
# TODO: move this to YAAD
register_parameters(op::T) where T = error("$T's parameters are not registered")
register_parameters(op::Function) = ()
register_parameters(op::Operator) = ()
# just an eye candy
parameters(op) = register_parameters(op)

0 comments on commit a69e2d7

Please sign in to comment.