Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 4120 #4297

Merged
merged 10 commits into from
Oct 4, 2019
6 changes: 4 additions & 2 deletions src/Microsoft.ML.OnnxTransformer/OnnxSequenceType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Collections.Generic;
using System.ComponentModel;
using Microsoft.ML.Data;

namespace Microsoft.ML.Transforms.Onnx
Expand Down Expand Up @@ -58,8 +59,9 @@ public sealed class OnnxSequenceTypeAttribute : DataViewTypeAttribute

// Make default constructor obsolete.
// Use default constructor will left the _elemType field empty and cause exception in methods using _elemType.
// User will receive compile error when try to use [OnnxSequenceType] attribute directly without specify sequence type
[Obsolete("Please specify sequence type when use OnnxSequenceType Attribute", true)]
// User will receive compile warning when try to use [OnnxSequenceType] attribute directly without specify sequence type
[Obsolete("Please specify sequence type when use OnnxSequenceType Attribute", false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public OnnxSequenceTypeAttribute()
{
}
Expand Down