thermal decomposition results in Nitrous Oxide (Laughing gas).
AN to actualy detonate not only needs a primer but also has a critical diameter, under which diameter will not result in complete detonation, with a sensitiser this diameter can be reduced though.
and as Jdurg says, there aren`t any inorganic nitrates that I can think of either that will react in the way mentioned. at minimum you need a binary mixture or at least a Carbon group