LostTech.TensorFlow : API Documentation

Type CollectionTools

Namespace LostTech.Gradient

Simplifies interop between Gradient and.NET collections

Methods

Public static methods

IDictionary<TKey, TValue> ToPyDict<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> seq)

Creates Python-compatible IDictionary`2. Use this when a method in Gradient-based binding refuses to accept standard or custom .NET dictionary types (usually by throwing TypeError or ValueError ).
Creates a copy of the original sequence

IList<T> ToPyList<T>(this IEnumerable<T> seq)

Creates Python-compatible IList`1 from IEnumerable`1. Use this when a method in Gradient-based binding refuses to accept other sequence or collection types (usually by throwing TypeError or ValueError ).
Creates a copy of the original sequence