Skip to content

Commit 2480b4c

Browse files
committed
fix: reorganize config module.
1 parent 5aa6d9c commit 2480b4c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from typing import NamedTuple
22

3+
from tensorflow.config import experimental as experimental
4+
35
class PhysicalDevice(NamedTuple):
46
name: str
57
device_type: str
68

79
def list_physical_devices(device_type: None | str = None) -> list[PhysicalDevice]: ...
8-
def set_memory_growth(device: PhysicalDevice, enable: bool) -> None: ...
910
def set_visible_devices(devices: list[PhysicalDevice], device_type: None | str = None) -> None: ...
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from tensorflow.config import PhysicalDevice
2+
3+
def set_memory_growth(device: PhysicalDevice, enable: bool) -> None: ...

0 commit comments

Comments
 (0)