1 implementation of IFileHandle
Microsoft.ML.Core (1)
Data\IFileHandle.cs (1)
43public sealed class SimpleFileHandle : IFileHandle
23 references to IFileHandle
Microsoft.ML.Core (5)
Data\IHostEnvironment.cs (2)
36public static IFileHandle OpenInputFile(this IHostEnvironment env, string path) 46public static IFileHandle CreateOutputFile(this IHostEnvironment env, string path)
EntryPoints\ModuleArgs.cs (2)
568/// A file handle, represented by an <see cref="IFileHandle"/>. 627if (typeof(IFileHandle).IsAssignableFrom(type))
Utilities\ResourceManagerUtils.cs (1)
269using (var fh = env.CreateOutputFile(tempPath))
Microsoft.ML.Data (14)
Commands\DataCommand.cs (1)
401public static void SaveLoader(ILegacyDataLoader loader, IFileHandle file, IHostEnvironment host)
Commands\SaveDataCommand.cs (1)
188public static void SaveDataView(IChannel ch, IDataSaver saver, IDataView view, IFileHandle file, bool keepHidden = false)
Commands\SavePredictorCommand.cs (7)
83using (var binFile = CreateFile(_args.BinaryFile)) 85using (var sumFile = CreateFile(_args.SummaryFile)) 87using (var txtFile = CreateFile(_args.TextFile)) 89using (var iniFile = CreateFile(_args.IniFile)) 91using (var codFile = CreateFile(_args.CodeFile)) 99private IFileHandle CreateFile(string path) 109private Stream CreateStrm(IFileHandle file)
Commands\TrainCommand.cs (1)
317public static void SaveModel(IHostEnvironment env, IChannel ch, IFileHandle output,
DataLoadSave\MultiFileSource.cs (3)
98/// Wraps an <see cref="IFileHandle"/> as an IMultiStreamSource. 102private readonly IFileHandle _file; 104public FileHandleSource(IFileHandle file)
EntryPoints\EntryPointNode.cs (1)
80type == typeof(IFileHandle) ||
Microsoft.ML.EntryPoints (4)
ImportTextData.cs (2)
23public IFileHandle InputFile; 49public IFileHandle InputFile;
JsonUtils\ExecuteGraphCommand.cs (2)
143var fh = runner.GetOutput<IFileHandle>(varName);