You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

missing.py 397 B

3 years ago
12345678910
  1. import numpy
  2. class missing:
  3. def __init__(self):
  4. self.alltext = ['ne pars pas', 'what do you mean ?', 'on est en agile là !', 'approches-toi ^ ^', 'un café ?', 'qu"est-ce qu"il fait beau aujourd"hui !', 'il est trop froid ?']
  5. def saysomething(self):
  6. x = numpy.random.randint(len(self.alltext))
  7. text_rand = self.alltext[x]
  8. return text_rand

TensorLayer3.0 是一款兼容多种深度学习框架为计算后端的深度学习库。计划兼容TensorFlow, Pytorch, MindSpore, Paddle.