super(Embeddings, self).__init__()
时间: 2023-11-29 21:26:41 浏览: 59
python中super().__init__()
This line of code is calling the constructor of the parent class of the current class. In other words, it is initializing the class by calling the constructor of its parent class, and any necessary initialization or setup for the parent class will be performed.
The `super()` function is used to call a method of a parent class, and in this case, it is calling the constructor of the parent class of `Embeddings`. This is often used in object-oriented programming to avoid duplicating code in child classes that already exists in a parent class.
阅读全文