Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def generate_apidocs(*args):
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme_options = {
"external_links": [{"url": "https://github.com/Project-MONAI/tutorials", "name": "Tutorials"}],
"collapse_navigation": True,
"icon_links": [
{
"name": "GitHub",
Expand Down
1 change: 0 additions & 1 deletion monai/data/csv_saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def save(self, data: Union[torch.Tensor, np.ndarray], meta_data: Optional[Dict]
"""
save_key = meta_data[Key.FILENAME_OR_OBJ] if meta_data else str(self._data_index)
self._data_index += 1
data_: np.ndarray
if isinstance(data, torch.Tensor):
data = data.detach().cpu().numpy()
self._cache_dict[save_key] = np.asarray(data, dtype=float)
Expand Down
1 change: 1 addition & 0 deletions monai/engines/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def set_sampler_epoch(engine: Engine):
self.prepare_batch = prepare_batch
self.metric_cmp_fn = metric_cmp_fn
self.amp = amp
self.scaler = None

if event_names is None:
event_names = [IterationEvents]
Expand Down
2 changes: 1 addition & 1 deletion monai/transforms/io/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def switch_endianness(data, new="<"):
"""
if isinstance(data, np.ndarray):
# default to system endian
sys_native = ((sys.byteorder == "little") and "<") or ">"
sys_native = "<" if (sys.byteorder == "little") else ">"
current_ = sys_native if data.dtype.byteorder not in ("<", ">") else data.dtype.byteorder
if new not in ("<", ">"):
raise NotImplementedError(f"Not implemented option new={new}.")
Expand Down