コード例 #1
0
ファイル: trace.py プロジェクト: ravisoni31/fastestimator
 def __init__(self,
              inputs: Union[None, str, Iterable[str]] = None,
              outputs: Union[None, str, Iterable[str]] = None,
              mode: Union[None, str, Iterable[str]] = None) -> None:
     self.inputs = to_list(inputs)
     self.outputs = to_list(outputs)
     self.mode = parse_modes(to_set(mode))
コード例 #2
0
ファイル: trace.py プロジェクト: vbvg2008/fastestimator
 def __init__(self,
              inputs: Union[None, str, Iterable[str]] = None,
              outputs: Union[None, str, Iterable[str]] = None,
              mode: Union[None, str, Iterable[str]] = None) -> None:
     self.inputs = to_list(inputs)
     self.outputs = to_list(outputs)
     self.mode = parse_modes(to_set(mode))
     self.fe_monitor_names = set()  # The use-case here is rare enough that we don't want to add this to the init sig
コード例 #3
0
 def __init__(self,
              inputs: Union[None, str, Iterable[str]] = None,
              outputs: Union[None, str, Iterable[str]] = None,
              mode: Union[None, str, Iterable[str]] = None) -> None:
     self.inputs = to_list(inputs)
     self.outputs = to_list(outputs)
     self.mode = parse_modes(to_set(mode))
     self.in_list = not isinstance(inputs, (str, type(None)))
     self.out_list = not isinstance(outputs, (str, type(None)))
コード例 #4
0
ファイル: op.py プロジェクト: Vivek305/fastestimator
 def __init__(self,
              inputs: Union[None, str, Iterable[str]] = None,
              outputs: Union[None, str, Iterable[str]] = None,
              mode: Union[None, str, Iterable[str]] = None,
              ds_id: Union[None, str, Iterable[str]] = None) -> None:
     self.inputs = check_io_names(to_list(inputs))
     self.outputs = check_io_names(to_list(outputs))
     self.mode = parse_modes(to_set(mode))
     self.ds_id = check_ds_id(to_set(ds_id))
     self.in_list = not isinstance(inputs, (str, type(None)))
     self.out_list = not isinstance(outputs, (str, type(None)))