def _init_by_initializer_conf(self, initializer_conf): if self.is_determined: with self._placement_scope(): check_point_v2.init_by_initializer_conf( self, initializer_conf, True, None) else: self.set_data_initializer(initializer_conf) return self
def _init_by_initializer_conf(self, initializer_conf): if self.is_determined: variable = flow.get_all_variables()[self._variable_name] check_point_v2.init_by_initializer_conf(variable, initializer_conf, True) else: self.set_data_initializer(initializer_conf) return self
def _init_by_initializer_conf(self, initializer_conf): if self.is_determined: if self.is_consistent: with self._placement_scope(): check_point_v2.init_by_initializer_conf( self, initializer_conf, True, None) else: _init_eager_local_tensor_by_initializer_conf( self._local_or_consistent_tensor, initializer_conf) else: self.set_data_initializer(initializer_conf) return self