Comments (10)
I know it's been a while since someone posted on this thread, but I wanted to point out that if you just go to project/properties/build and use 64bits, that should fix the issue
from tensorflowsharp.
Hi Dom Li,
I think that Miguel's suggestion was to run that given command in a PowerShell environment within Windows itself, not exactly under VirtualBox. You might need to install bazel through Chocolatey first, though.
Regards,
Cesar
from tensorflowsharp.
Hi,
I tried this. What happens is you need to run ./configure in the TensorFlow repository before you can build this shared libraries. This presents issues in that every time it got past the 'Python Libraries stage' it would simply restart. This has been frustrating as I know my Bazel build for windows works as I tried building some examples, so it just seems like another hurdle to get over!
from tensorflowsharp.
You need to get a native build of libtensorflow.dll for Windows for this to work
TensorFlowSharp.dll is the managed code (the cross platform code) which calls into the native code (libtensorflow.dll). So you do need to build the latter on Windows for this to work.
from tensorflowsharp.
from tensorflowsharp.
from tensorflowsharp.
from tensorflowsharp.
hi,
i getting the same error
System.BadImageFormatException occurred
HResult=0x8007000B
Message=Could not load file or assembly 'TensorFlowSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
i have both dll files build in my project TensorFlowSharp.dll and libtensorflow.dll
this is my code, could anyone help me to solve this problem
i really problematic for this
try
{
var graph = new TFGraph();
// Load the serialized GraphDef from a file.
var model = File.ReadAllBytes("D:\Projects\ImageROICollection\ImageROICollection\overfeat_rezoom_2017_07_15_12.51\save.ckpt-10000");
graph.Import(model, "");
using (var session = new TFSession(graph))
{
var tensor = CreateTensorFromImageFile(filesName[mainIndex]);
var runner = session.GetRunner();
runner.AddInput(graph["input"][0], tensor);
runner.Fetch(graph["output"][0]);
var output = runner.Run();
// Fetch the results from output:
TFTensor result = output[0];
MessageBox.Show(result.ToString());
}
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
from tensorflowsharp.
hi,
i getting the same error
System.BadImageFormatException occurred
HResult=0x8007000B
Message=Could not load file or assembly 'TensorFlowSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
i have both dll files build in my project TensorFlowSharp.dll and libtensorflow.dll
this is my code, could anyone help me to solve this problem
i really problematic for this
try
{
var graph = new TFGraph();
// Load the serialized GraphDef from a file.
var model = File.ReadAllBytes("D:\Projects\ImageROICollection\ImageROICollection\overfeat_rezoom_2017_07_15_12.51\save.ckpt-10000");
graph.Import(model, "");
using (var session = new TFSession(graph))
{
var tensor = CreateTensorFromImageFile(filesName[mainIndex]);
var runner = session.GetRunner();
runner.AddInput(graph["input"][0], tensor);
runner.Fetch(graph["output"][0]);
var output = runner.Run();
// Fetch the results from output:
TFTensor result = output[0];
MessageBox.Show(result.ToString());
}
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}
from tensorflowsharp.
Good work sayfee That worked like a charm.
from tensorflowsharp.
Related Issues (20)
- Provide a NuGet package for TensorFlowSharp without precompiled native binaries HOT 1
- TensorFlowSharp Gpu use HOT 3
- TensorFlowSharp is flexible and portable, Can it supply with NMT sample?
- The type initializer for 'TensorFlow.TFDisposable' threw an exception.
- I run into below exception message in some of image
- Build TensorFlowSharp for iOS
- tensorflowsharp load model(pb file) and predict, the results are always same HOT 1
- How can I feed batch of data to the model when predicting? HOT 1
- Cannot load savedmodel in tf# ERROR: "Note:Users need to βimport tensorflow.contrib.decent_qβexplicitly in the evaluation python script to register the custom quantize operation as tensorflow.contrib is lazy loaded now."
- How to load large model ?
- How to change tensor's value order
- I can run tensorflowgpu by python. How should my C code execute GPU? HOT 2
- ROCm support for AMD GPUs
- nuget.org missing v1.15.3
- How to load PB file saved by Keras model ? HOT 1
- Error when i run my-app on linux CENTOS 7
- Any plans to update to TensorFlow 2 C API? HOT 1
- Cannot Load the Model
- TensorFlow
- Tersorflow dllnotfoundExseption
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflowsharp.