Use correct API macro in VariableHooksInterface. (#30320)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30320
Fixes #30296
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Differential Revision: D18665704
Pulled By: ezyang
fbshipit-source-id: f09a953137fcc105959382254f9b8886af5aea3b