/// <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); }
protected ContextInstantiatorBase(TrainContextBase ctx) { Owner = ctx; }