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