Python mxnet.module.base_module._parse_data_desc() Examples
The following are 30
code examples of mxnet.module.base_module._parse_data_desc().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
mxnet.module.base_module
, or try the search function
.
Example #1
Source File: module.py From RoITransformer_DOTA with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #2
Source File: module.py From Decoupled-Classification-Refinement with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #3
Source File: module.py From Decoupled-Classification-Refinement with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #4
Source File: module.py From Decoupled-Classification-Refinement with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #5
Source File: module.py From Decoupled-Classification-Refinement with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #6
Source File: module.py From Sequence-Level-Semantics-Aggregation with Apache License 2.0 | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #7
Source File: module.py From Faster_RCNN_for_DOTA with Apache License 2.0 | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #8
Source File: module.py From mx-DeepIM with Apache License 2.0 | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip( *[ _parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes) ] ) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #9
Source File: module.py From Accel with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #10
Source File: module.py From Accel with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #11
Source File: module.py From Accel with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #12
Source File: module.py From Accel with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #13
Source File: module.py From Relation-Networks-for-Object-Detection with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #14
Source File: module.py From RoITransformer_DOTA with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #15
Source File: module.py From Deep-Feature-Flow-Segmentation with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #16
Source File: module.py From Deformable-ConvNets with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #17
Source File: module.py From Deformable-ConvNets with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #18
Source File: module.py From Deformable-ConvNets with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #19
Source File: module.py From Deformable-ConvNets with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #20
Source File: module.py From Flow-Guided-Feature-Aggregation with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #21
Source File: module.py From Deep-Feature-Flow with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #22
Source File: module.py From Deep-Feature-Flow with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #23
Source File: module.py From MANet_for_Video_Object_Detection with Apache License 2.0 | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #24
Source File: module.py From kaggle-rsna18 with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #25
Source File: module.py From kaggle-rsna18 with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #26
Source File: module.py From kaggle-rsna18 with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #27
Source File: module.py From kaggle-rsna18 with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #28
Source File: module.py From kaggle-rsna18 with MIT License | 6 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshape the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is `data_iter.provide_data`. label_shapes : list of (str, tuple) Typically is `data_iter.provide_label`. """ assert self.binded # self._data_shapes, self._label_shapes = _parse_data_desc( # self.data_names, self.label_names, data_shapes, label_shapes) self._data_shapes, self._label_shapes = zip(*[_parse_data_desc(self.data_names, self.label_names, data_shape, label_shape) for data_shape, label_shape in zip(data_shapes, label_shapes)]) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #29
Source File: detection_module.py From groupsoftmax-simpledet with Apache License 2.0 | 5 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshapes the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is ``data_iter.provide_data``. label_shapes : list of (str, tuple) Typically is ``data_iter.provide_label``. """ assert self.binded self._data_shapes, self._label_shapes = _parse_data_desc( self.data_names, self.label_names, data_shapes, label_shapes) self._exec_group.reshape(self._data_shapes, self._label_shapes)
Example #30
Source File: detection_module.py From simpledet with Apache License 2.0 | 5 votes |
def reshape(self, data_shapes, label_shapes=None): """Reshapes the module for new input shapes. Parameters ---------- data_shapes : list of (str, tuple) Typically is ``data_iter.provide_data``. label_shapes : list of (str, tuple) Typically is ``data_iter.provide_label``. """ assert self.binded self._data_shapes, self._label_shapes = _parse_data_desc( self.data_names, self.label_names, data_shapes, label_shapes) self._exec_group.reshape(self._data_shapes, self._label_shapes)