public SessionOptions(string target = "", ConfigProto config = null) { Handle = c_api.TF_NewSessionOptions(); c_api.TF_SetTarget(Handle, target); if (config != null) { SetConfig(config); } }
public static extern IntPtr TF_LoadSessionFromSavedModel(SafeSessionOptionsHandle session_options, IntPtr run_options, string export_dir, string[] tags, int tags_len, IntPtr graph, ref TF_Buffer meta_graph_def, SafeStatusHandle status);
public static extern IntPtr TF_NewSession(IntPtr graph, SafeSessionOptionsHandle opts, SafeStatusHandle status);
public static extern void TF_SetTarget(SafeSessionOptionsHandle options, string target);
public static extern void TF_SetConfig(SafeSessionOptionsHandle options, IntPtr proto, ulong proto_len, SafeStatusHandle status);