Files
Reinforced-Learning-Godot/rl/Lib/site-packages/onnx/reference/ops/op_range.py
2024-10-30 22:14:35 +01:00

14 lines
326 B
Python

# Copyright (c) ONNX Project Contributors
# SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
import numpy as np
from onnx.reference.op_run import OpRun
class Range(OpRun):
def _run(self, starts, ends, steps): # type: ignore
return (np.arange(starts, ends, steps).astype(starts.dtype),)