Skip to content

Remove Google.Protobuf dependency from Microsoft.ML #162

Closed
@eerhardt

Description

@eerhardt

System information

  • OS version/distro: all
  • .NET Version (eg., dotnet --info): all

Issue

  • What did you do?
    Install the base Microsoft.ML nuget package

  • What happened?
    It also adds a reference to Google.Protobuf

  • What did you expect?
    I expected that the base Microsoft.ML nuget package would have minimal dependencies. From my understanding, Google.Protobuf is only used in ML.NET for the ONNX support, which isn't needed all of the time. We should move the ONNX support into a separate NuGet package that developers can opt into. That way developers who aren't using this functionality won't need to pay for this dependency.

Source code / logs

<PackageReference Include="Google.Protobuf" Version="$(GoogleProtobufPackageVersion)" />
is the only place that uses this dependency. This project should be factored out of the base package, similar to what we've done with the Microsoft.ML.Parquet package.

/cc @glebuk @TomFinley

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions