浏览代码

remove unused

/develop/add-fire/ckpt-2
Ruo-Ping Dong 4 年前
当前提交
af2517a4
共有 1 个文件被更改,包括 0 次插入19 次删除
  1. 19
      ml-agents/mlagents/trainers/torch/model_serialization.py

19
ml-agents/mlagents/trainers/torch/model_serialization.py


from mlagents_envs.logging_util import get_logger
from mlagents.trainers.settings import SerializationSettings
from IPython import embed
POSSIBLE_INPUT_NODES = frozenset(
[
"action_masks",
"prev_action",
"recurrent_in",
"sequence_length",
"vector_observation",
]
)
POSSIBLE_OUTPUT_NODES = frozenset(
["action", "action_probs", "recurrent_out", "value_estimate"]
)
class ModelSerializer:

"""
if not os.path.exists(output_filepath):
os.makedirs(output_filepath)
onnx_output_path = f"{output_filepath}.onnx"
logger.info(f"Converting to {onnx_output_path}")

正在加载...
取消
保存