Generate: move generation_*.py src files into generation/*.py (#20096)
* move generation_*.py src files into generation/*.py * populate generation.__init__ with lazy loading * move imports and references from generation.xxx.object to generation.object
This commit is contained in:
@@ -85,7 +85,7 @@ if is_tf_available():
|
||||
TFRagModel,
|
||||
TFSharedEmbeddings,
|
||||
)
|
||||
from transformers.generation_tf_utils import (
|
||||
from transformers.generation import (
|
||||
TFBeamSampleDecoderOnlyOutput,
|
||||
TFBeamSampleEncoderDecoderOutput,
|
||||
TFBeamSearchDecoderOnlyOutput,
|
||||
|
||||
Reference in New Issue
Block a user