inference-engine-node icon indicating copy to clipboard operation
inference-engine-node copied to clipboard

Add Symbol.toStringTag for each class

Open lionkunonly opened this issue 4 years ago • 0 comments

This PR can fix all the failed cases caused by using String to check class. The sample looks like:

  it('readNetwork should return a Network object', async () => {
    expect(await core.readNetwork(model_path, weights_path)).to.be.a('Network');
  });

This case is failed before the PR. And the PR fixes all similar failed test cases.

lionkunonly avatar Jun 03 '21 07:06 lionkunonly