[go: nahoru, domu]

Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 553184312
Change-Id: I3de6dcbd8289d0726f8714b84b166645a0e297a1
  • Loading branch information
TF-Agents Team authored and Copybara-Service committed Aug 2, 2023
1 parent da4be6a commit 6c32f58
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tf_agents/bandits/environments/bandit_py_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ def _observe(self) -> types.NestedArray:
"""Returns an observation."""

@property
def name(self) -> Text:
def name(self) -> Optional[Text]:
return self._name
2 changes: 1 addition & 1 deletion tf_agents/bandits/environments/bandit_tf_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,5 @@ def _observe(self) -> types.NestedTensor:
"""Returns an observation."""

@property
def name(self) -> Text:
def name(self) -> Optional[Text]:
return self._name
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def __init__(
)

@property
def batch_size(self) -> int:
def batch_size(self) -> Optional[int]:
return self._batch_size

@property
Expand Down
2 changes: 1 addition & 1 deletion tf_agents/bandits/environments/ranking_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def batched(self) -> bool:
return True

@property
def batch_size(self) -> int:
def batch_size(self) -> Optional[int]:
return self._batch_size

def _observe(self) -> types.NestedArray:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def batched(self) -> bool:
return True

@property
def batch_size(self) -> int:
def batch_size(self) -> Optional[int]:
return self._batch_size

def _observe(self) -> types.NestedArray:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def batched(self) -> bool:
return True

@property
def batch_size(self) -> int:
def batch_size(self) -> Optional[int]:
return self._batch_size

def _observe(self) -> types.NestedArray:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def batched(self) -> bool:
return True

@property
def batch_size(self) -> int:
def batch_size(self) -> Optional[int]:
return self._batch_size

def _generate_batch_of_observations(self, generator_fn, num_samples):
Expand Down

0 comments on commit 6c32f58

Please sign in to comment.