示例#1
0
 /// <summary>
 /// Gets the environment hidden within the context.
 /// </summary>
 /// <param name="ctx">The context.</param>
 /// <returns>An environment that can be used when instantiating components.</returns>
 public static IHostEnvironment GetEnvironment(TrainContextBase ctx)
 {
     Contracts.CheckValue(ctx, nameof(ctx));
     return(ctx.Environment);
 }
示例#2
0
 protected ContextInstantiatorBase(TrainContextBase ctx)
 {
     Owner = ctx;
 }