rlmodule 0.1.0__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rlmodule-0.1.5/LICENSE +30 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/PKG-INFO +1 -1
- {rlmodule-0.1.0 → rlmodule-0.1.5}/pyproject.toml +1 -1
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/__init__.py +1 -1
- rlmodule-0.1.5/rlmodule/skrl/torch/__init__.py +9 -0
- {rlmodule-0.1.0/rlmodule/skrl → rlmodule-0.1.5/rlmodule/skrl/torch}/examples/gymnasium/skrl_gymnasium_pendulum.py +39 -48
- rlmodule-0.1.5/rlmodule/skrl/torch/network/__init__.py +8 -0
- rlmodule-0.1.5/rlmodule/skrl/torch/output_layer/__init__.py +5 -0
- rlmodule-0.1.0/rlmodule/source/model_builder.py → rlmodule-0.1.5/rlmodule/source/build.py +1 -1
- rlmodule-0.1.0/rlmodule/source/modules.py → rlmodule-0.1.5/rlmodule/source/network.py +2 -2
- rlmodule-0.1.0/rlmodule/source/modules_cfg.py → rlmodule-0.1.5/rlmodule/source/network_cfg.py +2 -2
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/output_layer.py +1 -1
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/output_layer_cfg.py +1 -1
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/rlmodel.py +9 -19
- rlmodule-0.1.0/rlmodule/source/model_cfg.py → rlmodule-0.1.5/rlmodule/source/rlmodel_cfg.py +8 -1
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule.egg-info/PKG-INFO +1 -1
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule.egg-info/SOURCES.txt +9 -6
- rlmodule-0.1.0/LICENSE +0 -21
- {rlmodule-0.1.0 → rlmodule-0.1.5}/README.md +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/skrl/__init__.py +0 -0
- {rlmodule-0.1.0/rlmodule/skrl → rlmodule-0.1.5/rlmodule/skrl/torch}/examples/gymnasium/skrl_gymnasium_pendulum_no_module.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/__init__.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/deprecated.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/model.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/nvidia_utils/__init__.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/nvidia_utils/configclass.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/nvidia_utils/dict.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/nvidia_utils/string.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule/source/utils.py +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule.egg-info/dependency_links.txt +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule.egg-info/requires.txt +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/rlmodule.egg-info/top_level.txt +0 -0
- {rlmodule-0.1.0 → rlmodule-0.1.5}/setup.cfg +0 -0
rlmodule-0.1.5/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Copyright (c) 2024 by Fabrica AI Corp.
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
8
|
+
are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer.
|
|
12
|
+
|
|
13
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
and/or other materials provided with the distribution.
|
|
16
|
+
|
|
17
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
18
|
+
may be used to endorse or promote products derived from this software without
|
|
19
|
+
specific prior written permission.
|
|
20
|
+
|
|
21
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
22
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
23
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
24
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
25
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
26
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
27
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
28
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
29
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
30
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# TODO this is not very good way
|
|
2
2
|
from .source.rlmodel import RLModel, SharedRLModel # noqa: F401, F403
|
|
3
3
|
from .source.output_layer import GaussianLayer, DeterministicLayer # noqa: F401, F403
|
|
4
|
-
from .source.
|
|
4
|
+
from .source.network import MLP # noqa: F401, F403
|
|
@@ -2,17 +2,10 @@ import gymnasium as gym
|
|
|
2
2
|
|
|
3
3
|
import torch.nn as nn
|
|
4
4
|
|
|
5
|
-
from rlmodule.
|
|
6
|
-
from rlmodule.
|
|
7
|
-
from rlmodule.
|
|
8
|
-
|
|
9
|
-
from rlmodule.source.model_builder import build_model
|
|
10
|
-
|
|
11
|
-
# example how this could be called:
|
|
12
|
-
# from rlmodule.skrl.torch.model import SharedRLModelCfg
|
|
13
|
-
# from rlmodule.skrl.torch.module import LstmCfg
|
|
14
|
-
# from rlmodule.skrl.torch.output_layer import DeterministicLayerCfg, GaussianLayerCfg
|
|
15
|
-
# from rlmodule.skrl.torch import build_model
|
|
5
|
+
from rlmodule.skrl.torch import build_model, SharedRLModelCfg, RLModelCfg, SeparatedRLModelCfg
|
|
6
|
+
from rlmodule.skrl.torch.network import MlpCfg
|
|
7
|
+
from rlmodule.skrl.torch.output_layer import DeterministicLayerCfg, GaussianLayerCfg
|
|
8
|
+
|
|
16
9
|
|
|
17
10
|
# import the skrl components to build the RL system
|
|
18
11
|
from skrl.agents.torch.ppo import PPO, PPO_RNN, PPO_DEFAULT_CONFIG
|
|
@@ -38,7 +31,7 @@ set_seed() # e.g. `set_seed(42)` for fixed seed
|
|
|
38
31
|
# (Done) Move things logically
|
|
39
32
|
# (Done) Handle input shapes better?
|
|
40
33
|
# (Done except Cnn) Convert all rest modules to use Configclass
|
|
41
|
-
# Rearrange library in the way it can be used for other rllibs and for torch/jax?
|
|
34
|
+
# (Done) Rearrange library in the way it can be used for other rllibs and for torch/jax?
|
|
42
35
|
# Create examples - mlp, rnn,gru,lstm, Lstmmlp, shared - separate , custom net by fcion
|
|
43
36
|
# - examples from modules make in class header not function
|
|
44
37
|
# WRITE README tutorial
|
|
@@ -47,6 +40,8 @@ set_seed() # e.g. `set_seed(42)` for fixed seed
|
|
|
47
40
|
# extensive comments
|
|
48
41
|
# Launch new version to pip
|
|
49
42
|
# Import new version in Isaac-lab
|
|
43
|
+
# Change structure of source
|
|
44
|
+
# lazy linear? what is it ?
|
|
50
45
|
|
|
51
46
|
|
|
52
47
|
|
|
@@ -61,7 +56,7 @@ set_seed() # e.g. `set_seed(42)` for fixed seed
|
|
|
61
56
|
# ),
|
|
62
57
|
# mlp = MlpCfg(
|
|
63
58
|
# hidden_units = [64, 64, 64],
|
|
64
|
-
# activations = [nn.ReLU
|
|
59
|
+
# activations = [nn.ReLU, nn.ReLU, nn.ReLU],
|
|
65
60
|
# ),
|
|
66
61
|
# )
|
|
67
62
|
# return RnnMlp(cfg)
|
|
@@ -72,7 +67,7 @@ def get_shared_model(env):
|
|
|
72
67
|
net_cfg = MlpCfg(
|
|
73
68
|
input_size = env.observation_space,
|
|
74
69
|
hidden_units = [64, 64, 64],
|
|
75
|
-
activations = [nn.ReLU
|
|
70
|
+
activations = [nn.ReLU, nn.ReLU, nn.ReLU],
|
|
76
71
|
)
|
|
77
72
|
|
|
78
73
|
# 2
|
|
@@ -95,7 +90,7 @@ def get_shared_model(env):
|
|
|
95
90
|
# ),
|
|
96
91
|
# mlp = MlpCfg(
|
|
97
92
|
# hidden_units = [64, 64, 64],
|
|
98
|
-
# activations = [nn.ReLU
|
|
93
|
+
# activations = [nn.ReLU, nn.ReLU, nn.ReLU],
|
|
99
94
|
# ),
|
|
100
95
|
# )
|
|
101
96
|
|
|
@@ -111,7 +106,7 @@ def get_shared_model(env):
|
|
|
111
106
|
# ),
|
|
112
107
|
# mlp = MlpCfg(
|
|
113
108
|
# hidden_units = [64, 64, 64],
|
|
114
|
-
# activations = [nn.ReLU
|
|
109
|
+
# activations = [nn.ReLU, nn.ReLU, nn.ReLU],
|
|
115
110
|
# ),
|
|
116
111
|
# )
|
|
117
112
|
|
|
@@ -167,40 +162,35 @@ def get_shared_model(env):
|
|
|
167
162
|
return {'policy': model, 'value': model}
|
|
168
163
|
|
|
169
164
|
# TODO Update separate model to configclass
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
# net = MLP(params)
|
|
177
|
-
|
|
178
|
-
# policy_model = RLModel(
|
|
179
|
-
# network=net,
|
|
180
|
-
# device= device,
|
|
181
|
-
# output_layer = GaussianLayer(
|
|
182
|
-
# input_size=64, # TODO
|
|
183
|
-
# output_size=env.action_space,
|
|
184
|
-
# output_activation=nn.Tanh(),
|
|
185
|
-
# clip_actions=False,
|
|
186
|
-
# clip_log_std=True,
|
|
187
|
-
# min_log_std=-1.2,
|
|
188
|
-
# max_log_std=2,
|
|
189
|
-
# initial_log_std=0.2,
|
|
190
|
-
# ),
|
|
191
|
-
# )
|
|
165
|
+
def get_separated_model(env):
|
|
166
|
+
net_cfg = MlpCfg(
|
|
167
|
+
input_size = env.observation_space,
|
|
168
|
+
hidden_units = [64, 64, 64],
|
|
169
|
+
activations = [nn.ReLU, nn.ReLU, nn.ReLU],
|
|
170
|
+
)
|
|
192
171
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
172
|
+
policy_model = build_model(
|
|
173
|
+
RLModelCfg(
|
|
174
|
+
network= net_cfg,
|
|
175
|
+
device= device,
|
|
176
|
+
output_layer= GaussianLayerCfg(
|
|
177
|
+
output_size=env.action_space,
|
|
178
|
+
min_log_std=-1.2,
|
|
179
|
+
max_log_std=2,
|
|
180
|
+
initial_log_std=0.2,
|
|
181
|
+
),
|
|
182
|
+
)
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
value_model = build_model(
|
|
186
|
+
RLModelCfg(
|
|
187
|
+
network= net_cfg,
|
|
188
|
+
device= device,
|
|
189
|
+
output_layer= DeterministicLayerCfg(),
|
|
190
|
+
)
|
|
191
|
+
)
|
|
202
192
|
|
|
203
|
-
|
|
193
|
+
return {'policy': policy_model, 'value': value_model}
|
|
204
194
|
|
|
205
195
|
|
|
206
196
|
# load and wrap the gymnasium environment.
|
|
@@ -221,6 +211,7 @@ device = env.device
|
|
|
221
211
|
memory = RandomMemory(memory_size=1024, num_envs=env.num_envs, device=device)
|
|
222
212
|
|
|
223
213
|
models = get_shared_model(env)
|
|
214
|
+
#models = get_separated_model(env)
|
|
224
215
|
|
|
225
216
|
print(models)
|
|
226
217
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
__all__ = [
|
|
2
|
+
# modules:
|
|
3
|
+
"MLP", "RNN", "GRU", "LSTM", "RnnBase", "RnnMlp",
|
|
4
|
+
# configs:
|
|
5
|
+
"NetworkCfg", "MlpCfg", "RnnBaseCfg", "RnnCfg", "GruCfg", "LstmCfg", "RnnMlpCfg"
|
|
6
|
+
]
|
|
7
|
+
from rlmodule.source.network import MLP, RNN, GRU, LSTM, RnnBase, RnnMlp
|
|
8
|
+
from rlmodule.source.network_cfg import NetworkCfg, MlpCfg, RnnBaseCfg, RnnCfg, GruCfg, LstmCfg, RnnMlpCfg
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from rlmodule.source.
|
|
1
|
+
from rlmodule.source.rlmodel_cfg import BaseRLCfg, RLModelCfg, SharedRLModelCfg
|
|
2
2
|
from rlmodule.source.utils import get_output_size
|
|
3
3
|
|
|
4
4
|
#TODO this, or inside RLModel class that have a config passed
|
|
@@ -26,13 +26,13 @@ class MLP(nn.Module):
|
|
|
26
26
|
# input layer
|
|
27
27
|
layers = [
|
|
28
28
|
nn.Linear(cfg.input_size, cfg.hidden_units[0]),
|
|
29
|
-
cfg.activations[0],
|
|
29
|
+
cfg.activations[0](),
|
|
30
30
|
]
|
|
31
31
|
|
|
32
32
|
# hidden layers
|
|
33
33
|
for i in range(len(cfg.hidden_units) - 1):
|
|
34
34
|
layers.append(nn.Linear(cfg.hidden_units[i], cfg.hidden_units[i + 1]))
|
|
35
|
-
layers.append(cfg.activations[i + 1])
|
|
35
|
+
layers.append(cfg.activations[i + 1]())
|
|
36
36
|
|
|
37
37
|
self.mlp = nn.Sequential(*layers)
|
|
38
38
|
|
rlmodule-0.1.0/rlmodule/source/modules_cfg.py → rlmodule-0.1.5/rlmodule/source/network_cfg.py
RENAMED
|
@@ -6,7 +6,7 @@ from dataclasses import MISSING
|
|
|
6
6
|
from collections.abc import Callable
|
|
7
7
|
from typing import List, Sequence, Union
|
|
8
8
|
|
|
9
|
-
from rlmodule.source.
|
|
9
|
+
from rlmodule.source.network import GRU, LSTM, MLP, RNN, RnnBase, RnnMlp
|
|
10
10
|
|
|
11
11
|
# use isaac-lab native configclass if available to avoid it being declared twice
|
|
12
12
|
try:
|
|
@@ -26,7 +26,7 @@ class MlpCfg(NetworkCfg):
|
|
|
26
26
|
module: type[MLP] = MLP
|
|
27
27
|
|
|
28
28
|
hidden_units: List[int] = MISSING
|
|
29
|
-
activations: List[nn.Module] = MISSING
|
|
29
|
+
activations: List[type[nn.Module]] = MISSING
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
@configclass
|
|
@@ -23,7 +23,7 @@ class OutputLayerCfg:
|
|
|
23
23
|
@configclass
|
|
24
24
|
class GaussianLayerCfg(OutputLayerCfg):
|
|
25
25
|
class_type: type[GaussianLayer] = GaussianLayer
|
|
26
|
-
output_activation: nn.Module = nn.Tanh
|
|
26
|
+
output_activation: type[nn.Module] = nn.Tanh
|
|
27
27
|
|
|
28
28
|
clip_log_std: bool = True
|
|
29
29
|
min_log_std: float = -20
|
|
@@ -78,13 +78,8 @@ class RLModel(Model):
|
|
|
78
78
|
self._lstm = contains_rnn_module( self, nn.LSTM)
|
|
79
79
|
self._rnn = contains_rnn_module( self, (nn.LSTM, nn.RNN, nn.GRU))
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
print("
|
|
83
|
-
print("!lstm: ", self._lstm)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
print("!rnn: ", self._rnn)
|
|
87
|
-
print("!lstm: ", self._lstm)
|
|
81
|
+
print("is rnn: ", self._rnn)
|
|
82
|
+
print("is lstm: ", self._lstm)
|
|
88
83
|
|
|
89
84
|
# TODO(ll) one liner:
|
|
90
85
|
# self.net = nn.Sequential(network, self._get_num_units_by_shape(self.output_shape), torch.nn.Tanh())
|
|
@@ -120,13 +115,6 @@ class RLModel(Model):
|
|
|
120
115
|
else:
|
|
121
116
|
return {}
|
|
122
117
|
|
|
123
|
-
# TODO(ll) RNN & GRU has this simplier specification
|
|
124
|
-
# def get_specification(self):
|
|
125
|
-
|
|
126
|
-
# # batch size (N) is the number of envs
|
|
127
|
-
# return {"rnn": {"sequence_length": self.sequence_length,
|
|
128
|
-
# "sizes": [(self.num_layers, self.num_envs, self.hidden_size)]}} # hidden states (D ∗ num_layers, N, Hout)
|
|
129
|
-
|
|
130
118
|
def get_entropy(self, role: str = "") -> torch.Tensor:
|
|
131
119
|
"""Compute and return the entropy of the model
|
|
132
120
|
|
|
@@ -163,14 +151,16 @@ class RLModel(Model):
|
|
|
163
151
|
inputs: Mapping[str, Union[torch.Tensor, Any]],
|
|
164
152
|
role: str = "") -> Tuple[torch.Tensor, Union[torch.Tensor, None], Mapping[str, Union[torch.Tensor, Any]]]:
|
|
165
153
|
|
|
154
|
+
states = inputs["states"]
|
|
155
|
+
|
|
166
156
|
# TODO(ll) once shared model is design, you may rethink this to do by call some function pointer or whatever.
|
|
167
157
|
# or consider inheritance GaussianModelRNN
|
|
168
158
|
# TODO(ll) if one of the models is not rnn ... and PPO_RNN is called what happens?
|
|
169
159
|
if self._rnn:
|
|
170
|
-
output, output_dict = self.net(
|
|
160
|
+
output, output_dict = self.net(states, inputs.get('terminated', None), inputs['rnn'])
|
|
171
161
|
else:
|
|
172
162
|
|
|
173
|
-
output = self.net(
|
|
163
|
+
output = self.net(states)
|
|
174
164
|
output_dict = {}
|
|
175
165
|
|
|
176
166
|
# TODO(ll) passing by independetly as together sequential has just one input in forward
|
|
@@ -188,7 +178,7 @@ class RLModel(Model):
|
|
|
188
178
|
|
|
189
179
|
# TODO(ll) output scale removed .. check that tanh where is
|
|
190
180
|
# return output * self.instantiator_output_scale, self.log_std_parameter, {}
|
|
191
|
-
return output, self.log_std_parameter, output_dict
|
|
181
|
+
# return output, self.log_std_parameter, output_dict
|
|
192
182
|
|
|
193
183
|
class SharedRLModel(Model):
|
|
194
184
|
def __init__(self,
|
|
@@ -253,8 +243,8 @@ class SharedRLModel(Model):
|
|
|
253
243
|
self._lstm = contains_rnn_module( self, nn.LSTM)
|
|
254
244
|
self._rnn = contains_rnn_module( self, (nn.LSTM, nn.RNN, nn.GRU))
|
|
255
245
|
|
|
256
|
-
print("
|
|
257
|
-
print("
|
|
246
|
+
print("is rnn: ", self._rnn)
|
|
247
|
+
print("is lstm: ", self._lstm)
|
|
258
248
|
|
|
259
249
|
# caching for shared forward pass for policy and value roles
|
|
260
250
|
self._cached_states = None
|
|
@@ -30,4 +30,11 @@ class RLModelCfg(BaseRLCfg):
|
|
|
30
30
|
class SharedRLModelCfg(BaseRLCfg):
|
|
31
31
|
class_type: type[SharedRLModel] = SharedRLModel
|
|
32
32
|
policy_output_layer: OutputLayerCfg = MISSING
|
|
33
|
-
value_output_layer: OutputLayerCfg = MISSING
|
|
33
|
+
value_output_layer: OutputLayerCfg = MISSING
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
@configclass
|
|
37
|
+
class SeparatedRLModelCfg:
|
|
38
|
+
"""Convenience class to hold two separate instances of RLModelCfg. One for policy and one for value model."""
|
|
39
|
+
policy: RLModelCfg = MISSING
|
|
40
|
+
value: RLModelCfg = MISSING
|
|
@@ -8,18 +8,21 @@ rlmodule.egg-info/dependency_links.txt
|
|
|
8
8
|
rlmodule.egg-info/requires.txt
|
|
9
9
|
rlmodule.egg-info/top_level.txt
|
|
10
10
|
rlmodule/skrl/__init__.py
|
|
11
|
-
rlmodule/skrl/
|
|
12
|
-
rlmodule/skrl/examples/gymnasium/
|
|
11
|
+
rlmodule/skrl/torch/__init__.py
|
|
12
|
+
rlmodule/skrl/torch/examples/gymnasium/skrl_gymnasium_pendulum.py
|
|
13
|
+
rlmodule/skrl/torch/examples/gymnasium/skrl_gymnasium_pendulum_no_module.py
|
|
14
|
+
rlmodule/skrl/torch/network/__init__.py
|
|
15
|
+
rlmodule/skrl/torch/output_layer/__init__.py
|
|
13
16
|
rlmodule/source/__init__.py
|
|
17
|
+
rlmodule/source/build.py
|
|
14
18
|
rlmodule/source/deprecated.py
|
|
15
19
|
rlmodule/source/model.py
|
|
16
|
-
rlmodule/source/
|
|
17
|
-
rlmodule/source/
|
|
18
|
-
rlmodule/source/modules.py
|
|
19
|
-
rlmodule/source/modules_cfg.py
|
|
20
|
+
rlmodule/source/network.py
|
|
21
|
+
rlmodule/source/network_cfg.py
|
|
20
22
|
rlmodule/source/output_layer.py
|
|
21
23
|
rlmodule/source/output_layer_cfg.py
|
|
22
24
|
rlmodule/source/rlmodel.py
|
|
25
|
+
rlmodule/source/rlmodel_cfg.py
|
|
23
26
|
rlmodule/source/utils.py
|
|
24
27
|
rlmodule/source/nvidia_utils/__init__.py
|
|
25
28
|
rlmodule/source/nvidia_utils/configclass.py
|
rlmodule-0.1.0/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 FabricaAI
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|