Backends/SiaNet.Backend.TensorSharp/Cuda/RuntimeCompiler/KernelConfig.cs
/// <summary>
/// Determines whether the specified <see cref="System.Object" /> is equal to this instance.
/// </summary>
/// <param name="obj">The object to compare with the current object.</param>
/// <returns><c>true</c> if the specified <see cref="System.Object" /> is equal to this instance; otherwise, <c>false</c>.</returns>
Determines whether the specified  is equal to this instance.
Determines whether the specified is equal to this instance .
public override bool Equals(object obj)
        {
            var o = obj as KernelConfig;
            if (o == null) return false;
            if (values.Count != o.values.Count) return false;
            foreach (var kvp in values)
            {
                string oValue;
                if (values.TryGetValue(kvp.Key, out oValue))
                {
                    if (!kvp.Value.Equals(oValue))
                        return false;
                }
                else
                {
                    return false;
                }
            }
            return true;
        }
public override bool Equals ( object obj ) { var o = obj as KernelConfig ; if ( o == null ) return false ; if ( values . Count != o . values . Count ) return false ; foreach ( var kvp in values ) { string oValue ; if ( values . TryGetValue ( kvp . Key , out oValue ) ) { if ( ! kvp . Value . Equals ( oValue ) ) return false ; } else { return false ; } } return true ; }
Determines whether the specified  is equal to this instance.
Determines whether the specified is equal to this instance .
true is equal to this instance; otherwise, false
true is equal to this instance ; otherwise false
obj
object
The object to compare with the current object.
The object to compare with the current object .