Added ScriptFunction pkl exception for issue #61210 #61381 (#67076)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/61381, https://github.com/pytorch/pytorch/issues/61210
Pull Request resolved: https://github.com/pytorch/pytorch/pull/67076
Reviewed By: jbschlosser
Differential Revision: D32908175
Pulled By: suo
fbshipit-source-id: f6e175793243dc96cde5e44022d92f2623b934eb
Co-authored-by: LucaStubbe <stubbeluca@gmail.com>
Co-authored-by: Kanon Tromp <ktromp1@student.cccd.edu>