Shortcuts

unike.module.strategy.Strategy 源代码

# coding:utf-8
#
# unike/module/strategy/Strategy.py
#
# git pull from OpenKE-PyTorch by LuYF-Lemon-love <luyanfeng_nlp@qq.com> on May 7, 2023
# updated by LuYF-Lemon-love <luyanfeng_nlp@qq.com> on Jan 4, 2023
#
# 该脚本定义了损失函数的基类.

"""
Strategy - 该脚本定义了训练策略的基类。
"""

from ..BaseModule import BaseModule

[文档]class Strategy(BaseModule): """ 继承自 :py:class:`unike.module.BaseModule`,什么额外的属性都没有增加。 """
[文档] def __init__(self): """创建 Loss 对象。""" super(Strategy, self).__init__()

Docs

Access comprehensive developer documentation for UniKE

View Docs