Open kant2002 opened 8 months ago
Also I notice that compiler try to reference following assemblies:
Microsoft.ML.Probabilistic
System.Private.CoreLib
netstandard
System.Runtime
System.Runtime.InteropServices
System.IO.MemoryMappedFiles
System.IO.Pipes
System.Diagnostics.Process
System.Security.Cryptography
System.Memory
System.Collections
System.Collections.NonGeneric
System.Collections.Concurrent
System.ObjectModel
System.Collections.Specialized
System.ComponentModel.TypeConverter
System.ComponentModel.EventBasedAsync
System.ComponentModel.Primitives
System.ComponentModel
Microsoft.Win32.Primitives
System.Console
System.Data.Common
System.Diagnostics.TraceSource
System.Diagnostics.Contracts
System.Diagnostics.TextWriterTraceListener
System.Diagnostics.FileVersionInfo
System.Diagnostics.StackTrace
System.Diagnostics.Tracing
System.Drawing.Primitives
System.Linq.Expressions
System.IO.Compression.Brotli
System.IO.Compression
System.IO.Compression.ZipFile
System.IO.FileSystem.DriveInfo
System.IO.FileSystem.Watcher
System.IO.IsolatedStorage
System.Linq
System.Linq.Queryable
System.Linq.Parallel
System.Threading.Thread
System.Net.Requests
System.Net.Primitives
System.Net.HttpListener
System.Net.ServicePoint
System.Net.NameResolution
System.Net.WebClient
System.Net.Http
System.Net.WebHeaderCollection
System.Net.WebProxy
System.Net.Mail
System.Net.NetworkInformation
System.Net.Ping
System.Net.Security
System.Net.Sockets
System.Net.WebSockets.Client
System.Net.WebSockets
System.Runtime.Numerics
System.Numerics.Vectors
System.Reflection.DispatchProxy
System.Reflection.Emit
System.Reflection.Emit.ILGeneration
System.Reflection.Emit.Lightweight
System.Reflection.Primitives
System.Resources.Writer
System.Runtime.CompilerServices.VisualC
System.Runtime.Serialization.Primitives
System.Runtime.Serialization.Xml
System.Runtime.Serialization.Json
System.Runtime.Serialization.Formatters
System.Security.Claims
System.Text.Encoding.Extensions
System.Text.RegularExpressions
System.Threading
System.Threading.Overlapped
System.Threading.ThreadPool
System.Threading.Tasks.Parallel
System.Transactions.Local
System.Web.HttpUtility
System.Xml.ReaderWriter
System.Xml.XDocument
System.Xml.XmlSerializer
System.Xml.XPath.XDocument
System.Xml.XPath
System.Private.Xml
System.Runtime.Loader
System.Private.Xml.Linq
System.Private.DataContractSerialization
System.Runtime.Intrinsics
System.Reflection.Metadata
System.Collections.Immutable
System.Runtime.InteropServices.JavaScript
System.Diagnostics.DiagnosticSource
System.Private.Uri
System.Formats.Asn1
I think list a bit excessive. Maybe we can teach model compiler to pass less references?
We could easily provide a function that generates the source code and doesn't try to compile it using the C# compiler. When you compile that code, you can use any references you want. Would that solve the problem? Try engine.GetCodeToInfer
.
I only report this for now, after your fix in #462 I now receve stack trace listed below. I do not this there easy fix, maybe I'm wrong. I definitely try to build from source and play with compilation.
Also maybe it is make sense somehow to document build of the model manually. Maybe serialize results of compilation somehow and provide a way to run model from precompiled state.