Checks if the object is an nn_module
is_nn_module(x)
x
object to check
Tensors and Neural Networks with 'GPU' Acceleration
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.