MasterSession should throw error if use_per_session_threads or session_inter_op_thread_pool is set.
PiperOrigin-RevId: 163743936
This commit is contained in:
parent
6ba02f0e92
commit
043505a094
@ -1017,6 +1017,11 @@ void MasterSession::UpdateLastAccessTime() {
|
|||||||
|
|
||||||
Status MasterSession::Create(GraphDef* graph_def,
|
Status MasterSession::Create(GraphDef* graph_def,
|
||||||
const WorkerCacheFactoryOptions& options) {
|
const WorkerCacheFactoryOptions& options) {
|
||||||
|
if (session_opts_.config.use_per_session_threads() ||
|
||||||
|
session_opts_.config.session_inter_op_thread_pool_size() > 0) {
|
||||||
|
return errors::InvalidArgument(
|
||||||
|
"Distributed session does not support session thread pool options.");
|
||||||
|
}
|
||||||
if (session_opts_.config.graph_options().place_pruned_graph()) {
|
if (session_opts_.config.graph_options().place_pruned_graph()) {
|
||||||
// TODO(b/29900832): Fix this or remove the option.
|
// TODO(b/29900832): Fix this or remove the option.
|
||||||
LOG(WARNING) << "Distributed session does not support the "
|
LOG(WARNING) << "Distributed session does not support the "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user