Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/TorchSharp/Export/ExportedProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public static partial class export
/// package_path="model.pt2"
/// )
/// </code>
///
/// Only load models from trusted sources. Loading models from untrusted sources is a security risk.
/// </remarks>
public static ExportedProgram load(string filename)
{
Expand All @@ -46,6 +48,7 @@ public static ExportedProgram load(string filename)
/// <summary>
/// Load a PyTorch ExportedProgram with typed output.
/// </summary>
/// <remarks>Only load models from trusted sources. Loading models from untrusted sources is a security risk.</remarks>
public static ExportedProgram<TResult> load<TResult>(string filename)
{
return new ExportedProgram<TResult>(filename);
Expand Down
Loading