Skip to content

Unable to load libtensorflow.dll assembly on ASP.net 4.6 #322

Open
@ghost

Description

Describe the bug
When I go to instantiate a new TFGraph instance, the application will report back and claim that it is unable to load the libtensorflow.dll assembly. However, unlike other similar issues, I have confirmed that the libtensorflow.dll file IS PRESENT in the bin/Debug folder. The interesting part is that when I locally run the API, this issue is nonexistent. However, after using Web Deploy 3.6 and pushing the code to an actual IIS server for debugging, the application is unable to load the assembly. In fact, even in the web deploy target server's bin/Debug folder the libtensorflow.dll is present.

To Reproduce
Launch a ASP.net web API with TensorFlowSharp installed via NuGet. First run the API on your local machine to ensure that the sample code for loading a pre-trained model on the main Github is working (I'm using the same code snippet). Next publish the API to an IIS server (the server I am publishing to is in a data center so I must RDP into it). Finally, load a protobuf file of your choice with sample data and attempt to run the code. It should come back and say that the assembly libtensorflow.dll could not be loaded.

Expected behavior
The application should be able to create a new instance of TFGraph.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows Server 2016
  • Browser: Google Chrome
  • Version: TensorFlowSharp v1.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions