class_docstr: Test FingerPrint Network
class_docstr_tok: ["Test","FingerPrint","Network"]
code: def test_nnfp(self):
      x = torch.rand(2, 10, 80)
      params = {
          "dim": 8,
          "h": 16,
          "u": 2,
          "fuller": True,
          "activation": "relu",
          "sample_rate": 80,
          "n_mels": 10,
          "segment_size": 1,
          "hop_length": 1,
      }
      segn = int(params["segment_size"] * params["sample_rate"])
      t = (segn + params["hop_length"] - 1) // params["hop_length"]
  
      model = NNFp(
          dim=params["dim"],
          h=params["h"],
          u=params["u"],
          in_f=params["n_mels"],
          in_t=t,
      )
      outs = model(x)
      self.assertEqual(outs.shape, (x.shape[0], params["dim"]))
  
imports: import unittest
  import torch
  from towhee.models.nnfp import NNFp
label_desc: Use image node_id 1 for calling the TestFp obj's underlying member method code with example usage: obj.test_nnfp() without return types