浏览代码

update mypy-protobuf and generate pyi files (#2757)

/develop-gpu-test
GitHub 5 年前
当前提交
18fcd679
共有 21 个文件被更改,包括 242 次插入135 次删除
  1. 4
      .circleci/config.yml
  2. 24
      ml-agents-envs/mlagents/envs/communicator_objects/agent_action_pb2.pyi
  3. 48
      ml-agents-envs/mlagents/envs/communicator_objects/agent_info_pb2.pyi
  4. 24
      ml-agents-envs/mlagents/envs/communicator_objects/brain_parameters_pb2.pyi
  5. 28
      ml-agents-envs/mlagents/envs/communicator_objects/command_pb2.pyi
  6. 5
      ml-agents-envs/mlagents/envs/communicator_objects/custom_action_pb2.pyi
  7. 5
      ml-agents-envs/mlagents/envs/communicator_objects/custom_observation_pb2.pyi
  8. 5
      ml-agents-envs/mlagents/envs/communicator_objects/custom_reset_parameters_pb2.pyi
  9. 24
      ml-agents-envs/mlagents/envs/communicator_objects/demonstration_meta_pb2.pyi
  10. 32
      ml-agents-envs/mlagents/envs/communicator_objects/engine_configuration_pb2.pyi
  11. 22
      ml-agents-envs/mlagents/envs/communicator_objects/environment_parameters_pb2.pyi
  12. 12
      ml-agents-envs/mlagents/envs/communicator_objects/header_pb2.pyi
  13. 20
      ml-agents-envs/mlagents/envs/communicator_objects/resolution_pb2.pyi
  14. 24
      ml-agents-envs/mlagents/envs/communicator_objects/space_type_pb2.pyi
  15. 12
      ml-agents-envs/mlagents/envs/communicator_objects/unity_input_pb2.pyi
  16. 12
      ml-agents-envs/mlagents/envs/communicator_objects/unity_message_pb2.pyi
  17. 12
      ml-agents-envs/mlagents/envs/communicator_objects/unity_output_pb2.pyi
  18. 12
      ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_input_pb2.pyi
  19. 12
      ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_output_pb2.pyi
  20. 24
      ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_input_pb2.pyi
  21. 16
      ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_output_pb2.pyi

4
.circleci/config.yml


command: |
. venv/bin/activate
pre-commit run --hook-stage manual markdown-link-check --all-files
protobuf_generation_check:
docker:
- image: circleci/python:3.7.3

. venv/bin/activate
pip install --upgrade pip
pip install grpcio-tools==1.13.0 --progress-bar=off
pip install mypy-protobuf --progress-bar=off
pip install mypy-protobuf==1.16.0 --progress-bar=off
- save_cache:
paths:
- ./venv

24
ml-agents-envs/mlagents/envs/communicator_objects/agent_action_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
vector_actions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float]
vector_actions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float]
memories = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float]
value = ... # type: float
memories = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float]
value = ... # type: builtin___float
@property
def custom_action(self) -> mlagents___envs___communicator_objects___custom_action_pb2___CustomActionProto: ...

vector_actions : typing___Optional[typing___Iterable[float]] = None,
vector_actions : typing___Optional[typing___Iterable[builtin___float]] = None,
memories : typing___Optional[typing___Iterable[float]] = None,
value : typing___Optional[float] = None,
memories : typing___Optional[typing___Iterable[builtin___float]] = None,
value : typing___Optional[builtin___float] = None,
def FromString(cls, s: bytes) -> AgentActionProto: ...
def FromString(cls, s: builtin___bytes) -> AgentActionProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_action"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_action"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_action",b"custom_action"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_action",b"custom_action"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"custom_action",b"custom_action",u"memories",b"memories",u"text_actions",b"text_actions",u"value",b"value",u"vector_actions",b"vector_actions"]) -> None: ...

48
ml-agents-envs/mlagents/envs/communicator_objects/agent_info_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
stacked_vector_observation = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float]
visual_observations = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes]
stacked_vector_observation = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float]
visual_observations = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___bytes]
stored_vector_actions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float]
stored_vector_actions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float]
memories = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float]
reward = ... # type: float
done = ... # type: bool
max_step_reached = ... # type: bool
id = ... # type: int
action_mask = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bool]
memories = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float]
reward = ... # type: builtin___float
done = ... # type: builtin___bool
max_step_reached = ... # type: builtin___bool
id = ... # type: builtin___int
action_mask = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___bool]
@property
def custom_observation(self) -> mlagents___envs___communicator_objects___custom_observation_pb2___CustomObservationProto: ...

stacked_vector_observation : typing___Optional[typing___Iterable[float]] = None,
visual_observations : typing___Optional[typing___Iterable[bytes]] = None,
stacked_vector_observation : typing___Optional[typing___Iterable[builtin___float]] = None,
visual_observations : typing___Optional[typing___Iterable[builtin___bytes]] = None,
stored_vector_actions : typing___Optional[typing___Iterable[float]] = None,
stored_vector_actions : typing___Optional[typing___Iterable[builtin___float]] = None,
memories : typing___Optional[typing___Iterable[float]] = None,
reward : typing___Optional[float] = None,
done : typing___Optional[bool] = None,
max_step_reached : typing___Optional[bool] = None,
id : typing___Optional[int] = None,
action_mask : typing___Optional[typing___Iterable[bool]] = None,
memories : typing___Optional[typing___Iterable[builtin___float]] = None,
reward : typing___Optional[builtin___float] = None,
done : typing___Optional[builtin___bool] = None,
max_step_reached : typing___Optional[builtin___bool] = None,
id : typing___Optional[builtin___int] = None,
action_mask : typing___Optional[typing___Iterable[builtin___bool]] = None,
def FromString(cls, s: bytes) -> AgentInfoProto: ...
def FromString(cls, s: builtin___bytes) -> AgentInfoProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_observation"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_observation"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_observation",b"custom_observation"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_observation",b"custom_observation"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"action_mask",b"action_mask",u"custom_observation",b"custom_observation",u"done",b"done",u"id",b"id",u"max_step_reached",b"max_step_reached",u"memories",b"memories",u"reward",b"reward",u"stacked_vector_observation",b"stacked_vector_observation",u"stored_text_actions",b"stored_text_actions",u"stored_vector_actions",b"stored_vector_actions",u"text_observation",b"text_observation",u"visual_observations",b"visual_observations"]) -> None: ...

24
ml-agents-envs/mlagents/envs/communicator_objects/brain_parameters_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
vector_observation_size = ... # type: int
num_stacked_vector_observations = ... # type: int
vector_action_size = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int]
vector_observation_size = ... # type: builtin___int
num_stacked_vector_observations = ... # type: builtin___int
vector_action_size = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int]
is_training = ... # type: bool
is_training = ... # type: builtin___bool
@property
def camera_resolutions(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[mlagents___envs___communicator_objects___resolution_pb2___ResolutionProto]: ...

vector_observation_size : typing___Optional[int] = None,
num_stacked_vector_observations : typing___Optional[int] = None,
vector_action_size : typing___Optional[typing___Iterable[int]] = None,
vector_observation_size : typing___Optional[builtin___int] = None,
num_stacked_vector_observations : typing___Optional[builtin___int] = None,
vector_action_size : typing___Optional[typing___Iterable[builtin___int]] = None,
is_training : typing___Optional[bool] = None,
is_training : typing___Optional[builtin___bool] = None,
def FromString(cls, s: bytes) -> BrainParametersProto: ...
def FromString(cls, s: builtin___bytes) -> BrainParametersProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

28
ml-agents-envs/mlagents/envs/communicator_objects/command_pb2.pyi


)
class CommandProto(int):
builtin___int = int
builtin___str = str
class CommandProto(builtin___int):
def Name(cls, number: int) -> str: ...
def Name(cls, number: builtin___int) -> builtin___str: ...
def Value(cls, name: str) -> CommandProto: ...
def Value(cls, name: builtin___str) -> 'CommandProto': ...
def keys(cls) -> typing___List[str]: ...
def keys(cls) -> typing___List[builtin___str]: ...
def values(cls) -> typing___List[CommandProto]: ...
def values(cls) -> typing___List['CommandProto']: ...
def items(cls) -> typing___List[typing___Tuple[str, CommandProto]]: ...
STEP = typing___cast(CommandProto, 0)
RESET = typing___cast(CommandProto, 1)
QUIT = typing___cast(CommandProto, 2)
STEP = typing___cast(CommandProto, 0)
RESET = typing___cast(CommandProto, 1)
QUIT = typing___cast(CommandProto, 2)
def items(cls) -> typing___List[typing___Tuple[builtin___str, 'CommandProto']]: ...
STEP = typing___cast('CommandProto', 0)
RESET = typing___cast('CommandProto', 1)
QUIT = typing___cast('CommandProto', 2)
STEP = typing___cast('CommandProto', 0)
RESET = typing___cast('CommandProto', 1)
QUIT = typing___cast('CommandProto', 2)

5
ml-agents-envs/mlagents/envs/communicator_objects/custom_action_pb2.pyi


)
builtin___bytes = bytes
class CustomActionProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

def FromString(cls, s: bytes) -> CustomActionProto: ...
def FromString(cls, s: builtin___bytes) -> CustomActionProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...

5
ml-agents-envs/mlagents/envs/communicator_objects/custom_observation_pb2.pyi


)
builtin___bytes = bytes
class CustomObservationProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

def FromString(cls, s: bytes) -> CustomObservationProto: ...
def FromString(cls, s: builtin___bytes) -> CustomObservationProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...

5
ml-agents-envs/mlagents/envs/communicator_objects/custom_reset_parameters_pb2.pyi


)
builtin___bytes = bytes
class CustomResetParametersProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

def FromString(cls, s: bytes) -> CustomResetParametersProto: ...
def FromString(cls, s: builtin___bytes) -> CustomResetParametersProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...

24
ml-agents-envs/mlagents/envs/communicator_objects/demonstration_meta_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
api_version = ... # type: int
api_version = ... # type: builtin___int
number_steps = ... # type: int
number_episodes = ... # type: int
mean_reward = ... # type: float
number_steps = ... # type: builtin___int
number_episodes = ... # type: builtin___int
mean_reward = ... # type: builtin___float
api_version : typing___Optional[int] = None,
api_version : typing___Optional[builtin___int] = None,
number_steps : typing___Optional[int] = None,
number_episodes : typing___Optional[int] = None,
mean_reward : typing___Optional[float] = None,
number_steps : typing___Optional[builtin___int] = None,
number_episodes : typing___Optional[builtin___int] = None,
mean_reward : typing___Optional[builtin___float] = None,
def FromString(cls, s: bytes) -> DemonstrationMetaProto: ...
def FromString(cls, s: builtin___bytes) -> DemonstrationMetaProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

32
ml-agents-envs/mlagents/envs/communicator_objects/engine_configuration_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
width = ... # type: int
height = ... # type: int
quality_level = ... # type: int
time_scale = ... # type: float
target_frame_rate = ... # type: int
show_monitor = ... # type: bool
width = ... # type: builtin___int
height = ... # type: builtin___int
quality_level = ... # type: builtin___int
time_scale = ... # type: builtin___float
target_frame_rate = ... # type: builtin___int
show_monitor = ... # type: builtin___bool
width : typing___Optional[int] = None,
height : typing___Optional[int] = None,
quality_level : typing___Optional[int] = None,
time_scale : typing___Optional[float] = None,
target_frame_rate : typing___Optional[int] = None,
show_monitor : typing___Optional[bool] = None,
width : typing___Optional[builtin___int] = None,
height : typing___Optional[builtin___int] = None,
quality_level : typing___Optional[builtin___int] = None,
time_scale : typing___Optional[builtin___float] = None,
target_frame_rate : typing___Optional[builtin___int] = None,
show_monitor : typing___Optional[builtin___bool] = None,
def FromString(cls, s: bytes) -> EngineConfigurationProto: ...
def FromString(cls, s: builtin___bytes) -> EngineConfigurationProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

22
ml-agents-envs/mlagents/envs/communicator_objects/environment_parameters_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
value = ... # type: float
value = ... # type: builtin___float
value : typing___Optional[float] = None,
value : typing___Optional[builtin___float] = None,
def FromString(cls, s: bytes) -> EnvironmentParametersProto.FloatParametersEntry: ...
def FromString(cls, s: builtin___bytes) -> EnvironmentParametersProto.FloatParametersEntry: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

@property
def float_parameters(self) -> typing___MutableMapping[typing___Text, float]: ...
def float_parameters(self) -> typing___MutableMapping[typing___Text, builtin___float]: ...
@property
def custom_reset_parameters(self) -> mlagents___envs___communicator_objects___custom_reset_parameters_pb2___CustomResetParametersProto: ...

float_parameters : typing___Optional[typing___Mapping[typing___Text, float]] = None,
float_parameters : typing___Optional[typing___Mapping[typing___Text, builtin___float]] = None,
def FromString(cls, s: bytes) -> EnvironmentParametersProto: ...
def FromString(cls, s: builtin___bytes) -> EnvironmentParametersProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_reset_parameters"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_reset_parameters"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_reset_parameters",b"custom_reset_parameters"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"custom_reset_parameters",b"custom_reset_parameters"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"custom_reset_parameters",b"custom_reset_parameters",u"float_parameters",b"float_parameters"]) -> None: ...

12
ml-agents-envs/mlagents/envs/communicator_objects/header_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
status = ... # type: int
status = ... # type: builtin___int
status : typing___Optional[int] = None,
status : typing___Optional[builtin___int] = None,
def FromString(cls, s: bytes) -> HeaderProto: ...
def FromString(cls, s: builtin___bytes) -> HeaderProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

20
ml-agents-envs/mlagents/envs/communicator_objects/resolution_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
width = ... # type: int
height = ... # type: int
gray_scale = ... # type: bool
width = ... # type: builtin___int
height = ... # type: builtin___int
gray_scale = ... # type: builtin___bool
width : typing___Optional[int] = None,
height : typing___Optional[int] = None,
gray_scale : typing___Optional[bool] = None,
width : typing___Optional[builtin___int] = None,
height : typing___Optional[builtin___int] = None,
gray_scale : typing___Optional[builtin___bool] = None,
def FromString(cls, s: bytes) -> ResolutionProto: ...
def FromString(cls, s: builtin___bytes) -> ResolutionProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

24
ml-agents-envs/mlagents/envs/communicator_objects/space_type_pb2.pyi


)
class SpaceTypeProto(int):
builtin___int = int
builtin___str = str
class SpaceTypeProto(builtin___int):
def Name(cls, number: int) -> str: ...
def Name(cls, number: builtin___int) -> builtin___str: ...
def Value(cls, name: str) -> SpaceTypeProto: ...
def Value(cls, name: builtin___str) -> 'SpaceTypeProto': ...
def keys(cls) -> typing___List[str]: ...
def keys(cls) -> typing___List[builtin___str]: ...
def values(cls) -> typing___List[SpaceTypeProto]: ...
def values(cls) -> typing___List['SpaceTypeProto']: ...
def items(cls) -> typing___List[typing___Tuple[str, SpaceTypeProto]]: ...
discrete = typing___cast(SpaceTypeProto, 0)
continuous = typing___cast(SpaceTypeProto, 1)
discrete = typing___cast(SpaceTypeProto, 0)
continuous = typing___cast(SpaceTypeProto, 1)
def items(cls) -> typing___List[typing___Tuple[builtin___str, 'SpaceTypeProto']]: ...
discrete = typing___cast('SpaceTypeProto', 0)
continuous = typing___cast('SpaceTypeProto', 1)
discrete = typing___cast('SpaceTypeProto', 0)
continuous = typing___cast('SpaceTypeProto', 1)

12
ml-agents-envs/mlagents/envs/communicator_objects/unity_input_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
class UnityInputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

rl_initialization_input : typing___Optional[mlagents___envs___communicator_objects___unity_rl_initialization_input_pb2___UnityRLInitializationInputProto] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityInputProto: ...
def FromString(cls, s: builtin___bytes) -> UnityInputProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",u"rl_input"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",u"rl_input"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",b"rl_initialization_input",u"rl_input",b"rl_input"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",b"rl_initialization_input",u"rl_input",b"rl_input"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",b"rl_initialization_input",u"rl_input",b"rl_input"]) -> None: ...

12
ml-agents-envs/mlagents/envs/communicator_objects/unity_message_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
class UnityMessageProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

unity_input : typing___Optional[mlagents___envs___communicator_objects___unity_input_pb2___UnityInputProto] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityMessageProto: ...
def FromString(cls, s: builtin___bytes) -> UnityMessageProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"header",u"unity_input",u"unity_output"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"header",u"unity_input",u"unity_output"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"header",b"header",u"unity_input",b"unity_input",u"unity_output",b"unity_output"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"header",b"header",u"unity_input",b"unity_input",u"unity_output",b"unity_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"header",b"header",u"unity_input",b"unity_input",u"unity_output",b"unity_output"]) -> None: ...

12
ml-agents-envs/mlagents/envs/communicator_objects/unity_output_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
class UnityOutputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

rl_initialization_output : typing___Optional[mlagents___envs___communicator_objects___unity_rl_initialization_output_pb2___UnityRLInitializationOutputProto] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityOutputProto: ...
def FromString(cls, s: builtin___bytes) -> UnityOutputProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",u"rl_output"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",u"rl_output"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",b"rl_initialization_output",u"rl_output",b"rl_output"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",b"rl_initialization_output",u"rl_output",b"rl_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",b"rl_initialization_output",u"rl_output",b"rl_output"]) -> None: ...

12
ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_input_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
seed = ... # type: int
seed = ... # type: builtin___int
seed : typing___Optional[int] = None,
seed : typing___Optional[builtin___int] = None,
def FromString(cls, s: bytes) -> UnityRLInitializationInputProto: ...
def FromString(cls, s: builtin___bytes) -> UnityRLInitializationInputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

12
ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_initialization_output_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
class UnityRLInitializationOutputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
name = ... # type: typing___Text

environment_parameters : typing___Optional[mlagents___envs___communicator_objects___environment_parameters_pb2___EnvironmentParametersProto] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityRLInitializationOutputProto: ...
def FromString(cls, s: builtin___bytes) -> UnityRLInitializationOutputProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters",b"environment_parameters"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters",b"environment_parameters"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"brain_parameters",b"brain_parameters",u"environment_parameters",b"environment_parameters",u"log_path",b"log_path",u"name",b"name",u"version",b"version"]) -> None: ...

24
ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_input_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
class UnityRLInputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
class ListAgentActionProto(google___protobuf___message___Message):

value : typing___Optional[typing___Iterable[mlagents___envs___communicator_objects___agent_action_pb2___AgentActionProto]] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityRLInputProto.ListAgentActionProto: ...
def FromString(cls, s: builtin___bytes) -> UnityRLInputProto.ListAgentActionProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

value : typing___Optional[UnityRLInputProto.ListAgentActionProto] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityRLInputProto.AgentActionsEntry: ...
def FromString(cls, s: builtin___bytes) -> UnityRLInputProto.AgentActionsEntry: ...
def HasField(self, field_name: typing_extensions___Literal[u"value"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"value"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
is_training = ... # type: bool
is_training = ... # type: builtin___bool
command = ... # type: mlagents___envs___communicator_objects___command_pb2___CommandProto
@property

*,
agent_actions : typing___Optional[typing___Mapping[typing___Text, UnityRLInputProto.ListAgentActionProto]] = None,
environment_parameters : typing___Optional[mlagents___envs___communicator_objects___environment_parameters_pb2___EnvironmentParametersProto] = None,
is_training : typing___Optional[bool] = None,
is_training : typing___Optional[builtin___bool] = None,
def FromString(cls, s: bytes) -> UnityRLInputProto: ...
def FromString(cls, s: builtin___bytes) -> UnityRLInputProto: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters",b"environment_parameters"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"environment_parameters",b"environment_parameters"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"agent_actions",b"agent_actions",u"command",b"command",u"environment_parameters",b"environment_parameters",u"is_training",b"is_training"]) -> None: ...

16
ml-agents-envs/mlagents/envs/communicator_objects/unity_rl_output_pb2.pyi


)
builtin___bool = bool
builtin___bytes = bytes
builtin___float = float
builtin___int = int
class UnityRLOutputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
class ListAgentInfoProto(google___protobuf___message___Message):

value : typing___Optional[typing___Iterable[mlagents___envs___communicator_objects___agent_info_pb2___AgentInfoProto]] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityRLOutputProto.ListAgentInfoProto: ...
def FromString(cls, s: builtin___bytes) -> UnityRLOutputProto.ListAgentInfoProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

value : typing___Optional[UnityRLOutputProto.ListAgentInfoProto] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityRLOutputProto.AgentInfosEntry: ...
def FromString(cls, s: builtin___bytes) -> UnityRLOutputProto.AgentInfosEntry: ...
def HasField(self, field_name: typing_extensions___Literal[u"value"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"value"]) -> builtin___bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> bool: ...
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...

agentInfos : typing___Optional[typing___Mapping[typing___Text, UnityRLOutputProto.ListAgentInfoProto]] = None,
) -> None: ...
@classmethod
def FromString(cls, s: bytes) -> UnityRLOutputProto: ...
def FromString(cls, s: builtin___bytes) -> UnityRLOutputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):

正在加载...
取消
保存