Đã Hủy

.NET tensorflow problem - LSTM example

I am somewhat new to using Tensorflow and learn to use it from a C# application. I am trying to convert a simple LSTM Python example ([login to view URL]) that works very well on my machine in Python using the GPU. In my C# implementation, I have hard coded the input data to simplify the process. The data is identical in both the Python example and my code. However, when I try to build it in .NET (Visual Studio 2022), it crashes when the fit() method is encountered. First, the input_shape argument is not available in the LSTM constructor within .NET. So, the obvious thing to do would be to add an InputLayer instead. I have done this in the Python example code and it works fine. However, when I try to use the InputLayer in .NET, I get a completely different error than I am getting below. It seems like something rather screwy is going on that is not easily found in the documentation. I am absolutely baffled and have spent more time on this that virtually any other program error in my past. For the .NET application, I have the following 3 Nuget libraries currently added to the project...

[login to view URL] (0.4.0)

scisharp.tensorflow.redist-windows-gpu (2.7.0)

[login to view URL] (0.70.1)

I am including files containing the slightly changed python code (that runs fine) from the online example as well as my C# program code for debugging. Again, here is the link to the online example ([login to view URL]).

Here is the error I get when the fit() method is encountered but I cannot get the InputLayer to work either.

2022-10-02 13:14:20.485908: I tensorflow/core/platform/[login to view URL]] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2

To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

2022-10-02 13:14:20.892331: I tensorflow/core/common_runtime/gpu/[login to view URL]] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 9432 MB memory: -> device: 0, name: NVIDIA GeForce RTX 3080 Ti, pci bus id: 0000:0a:00.0, compute capability: 8.6

Unhandled exception. [login to view URL]: Sequence contains no elements

at [login to view URL]()

at Tensorflow.Keras.Engine.Sequential.track_nodes_created_by_last_call(ILayer layer, List`1 created_nodes)

at Tensorflow.Keras.Engine.Sequential._build_graph_network_for_inferred_shape(Shape input_shape, TF_DataType input_dtype)

at [login to view URL](Tensors inputs, Tensor state, Nullable`1 training)

at [login to view URL](Tensors inputs, Tensor state, Boolean training)

at Tensorflow.Keras.Engine.Model.train_step(Tensor x, Tensor y)

at Tensorflow.Keras.Engine.Model.train_step_function(OwnedIterator iterator)

at [login to view URL](Int32 epochs, Int32 verbose)

at [login to view URL](NDArray x, NDArray y, Int32 batch_size, Int32 epochs, Int32 verbose, Single validation_split, Boolean shuffle, Int32 initial_epoch, Int32 max_queue_size, Int32 workers, Boolean use_multiprocessing)

at [login to view URL](String[] args) in C:\Users\num1\source\repos\LSTM_Test\LSTM_Test\[login to view URL]:line 24

Kĩ năng: Python, Lập trình C#, Tensorflow, .NET, Machine Learning (ML)

Về khách hàng:
( 0 nhận xét ) Anderson, United States

ID dự án: #34823080

22 freelancer chào giá trung bình $23/giờ cho công việc này

tangramua

Hello Prog123457,   We have 20 years of strong experience in Python, .NET, C# Programming, Machine Learning (ML), Tensorflow, as a result, we can successfully complete this project.   Please, review our profile here: h Thêm

$35 USD / giờ
(28 Nhận xét)
6.5
Koki1216

Hello, this is Koki from Japan who has been working with .NET development for over 7 years now. I have checked your project description carefully and I think that I can help you to complete this project fully 100% sure Thêm

$20 USD / giờ
(15 Nhận xét)
6.9
darrel131191

Hello, there. I am very interested in your proposal. I can instantly help you with your starting project with a successful completion. As a professional software developer, I ensure for a perfect ongoing project. You w Thêm

$20 USD / giờ
(24 Nhận xét)
6.5
(114 Nhận xét)
6.5
alimamacentre

♛♛♛ A Talented C/C++, C#/.NET(Winform/WPF), Python, Qt, PyQT Developer ♛♛♛ dear, you are welcome! i have rich experienced of C/C++(VC++, Qt), C#/.NET(Winform, WPF), Python, Qt, PyQT for over 10+ years. so that i can Thêm

$20 USD / giờ
(3 Nhận xét)
5.7
(37 Nhận xét)
5.8
hnutweblera

HI. I have good experience with python and ML/DL programming. Hope more discuss with you. If u choose me, you will get best result. Regards.

$25 USD / giờ
(11 Nhận xét)
5.7
NairaDavtyan

Hello there. I have good experience with python programming and can handle your project. If u choose me, you will get best result. Regards.

$25 USD / giờ
(4 Nhận xét)
5.2
SpencerLuo

How are you? I can definitely help you to fix issue so that end users can see changes in real time, I am a full-stack Website developer with over 6 years of experience and I have worked on various C# as well as have g Thêm

$25 USD / giờ
(9 Nhận xét)
4.5
trevcan106

Greetings! My major skills : Front End: Angular, React, Vue.js Back End: .NET, Symfony, Laravel, Ruby, PHP, Django API Integration: APIs, Unix/Linux, and MVC Framework Architectu Thêm

$22 USD / giờ
(1 Nhận xét)
3.6
maksymkozhedub

Computer Vision and Machine Learnign Expert!!! Hello, I read you description carefully and understood what you need. I am a very good skills and experienced computer vision and machine learning developer, and I have de Thêm

$20 USD / giờ
(2 Nhận xét)
3.9
kveber

Hello. I have read your description very carefully and I can complete it perfectly in short time. I am confident in my skills and always value for client's trust. So I have rich experience in these fields. I can use th Thêm

$20 USD / giờ
(3 Nhận xét)
3.1
pravinjaiswalp

After reading in detail the requirements of your project and concluding that they match my areas of knowledge and skills, I would like to introduce myself. My name is Pravin Jaiswal and I have total 8+ years of experie Thêm

$20 USD / giờ
(1 Nhận xét)
2.0
Nemanjadvp

✔️✔️✔️✔️✔️YOU'RE LOOKING FOR ME!!!⭐⭐⭐⭐⭐ Hi there. I have just read your requirements and attachments, I'm ready to start your project now. As a senior Machine Learning Engineer, I have strong knowledge of Python, Tens Thêm

$25 USD / giờ
(1 Nhận xét)
1.6
riyadhasnat06

Hi i am Riyadhasnat. My career Beginning as an EEE engineer. I developed an intuitive feeling about MATLAB programming. I can write clean validated MATLAB code and make a device-supported ML file. I am an expert on "✔️ Thêm

$20 USD / giờ
(1 Nhận xét)
0.6
CleverEndeavors

Greetings! My major skills : Front End: React, CSS, Angular, HTML5, UI/UX Design, Vue.js, Node.js Back End: Express, NestJS, PHP, Python, C++, Ruby on Rails, Laravel, Codeigniter, Java, Aja Thêm

$22 USD / giờ
(0 Nhận xét)
0.0
oleksanderguru

AI, ML DL, Computer Vision, NLP Expert Hello, thank you very much for your job posting. I am very interested in your project and think I am well suited for this role. I am a professional software engineer who have a wi Thêm

$25 USD / giờ
(0 Nhận xét)
0.0
IanFullstack

Hello, Greetings , Good afternoon! I’ve carefully checked your requirements and really interested in this job. I’m full stack node.js developer working at large-scale apps as a lead developer with U.S. and European te Thêm

$50 USD / giờ
(0 Nhận xét)
0.0
BenjaminEmsallem

Hi Mate , Good afternoon! I’ve carefully checked your requirements and really interested in this job. I’m full stack node.js developer working at large-scale apps as a lead developer with U.S. and European teams. I’m Thêm

$20 USD / giờ
(0 Nhận xét)
0.0
wanjin1227

Hi. I am a C++/Python/C#/ML developer for 12+ years. My main skill is debugging, Error correction, Optimizing, In particular, I have a wealth of knowledge about TensorFlow/Caffe and CNN/RNN/LSTM/OpenAI. I have a wea Thêm

$20 USD / giờ
(0 Nhận xét)
0.0