當前位置: 首頁>>代碼示例>>Python>>正文


Python tensorpack.InputDesc方法代碼示例

本文整理匯總了Python中tensorpack.InputDesc方法的典型用法代碼示例。如果您正苦於以下問題:Python tensorpack.InputDesc方法的具體用法?Python tensorpack.InputDesc怎麽用?Python tensorpack.InputDesc使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在tensorpack的用法示例。


在下文中一共展示了tensorpack.InputDesc方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _get_inputs

# 需要導入模塊: import tensorpack [as 別名]
# 或者: from tensorpack import InputDesc [as 別名]
def _get_inputs(self):
        return [InputDesc(self.image_dtype, [None, self.image_shape, self.image_shape, 3], 'input'),
                InputDesc(tf.int32, [None], 'label')] 
開發者ID:qinenergy,項目名稱:webvision-2.0-benchmarks,代碼行數:5,代碼來源:imagenet_utils.py

示例2: _get_inputs

# 需要導入模塊: import tensorpack [as 別名]
# 或者: from tensorpack import InputDesc [as 別名]
def _get_inputs(self):
        return [InputDesc(tf.float32, (BATCH_SIZE, IMAGE_WIDTH, IMAGE_HEIGHT, 3), 'input_a'),
                InputDesc(tf.float32, (BATCH_SIZE,), 'score_a'),
                InputDesc(tf.float32, (BATCH_SIZE, IMAGE_WIDTH, IMAGE_HEIGHT, 3), 'input_p'),
                InputDesc(tf.float32, (BATCH_SIZE,), 'score_p'),
                InputDesc(tf.float32, (BATCH_SIZE, IMAGE_WIDTH, IMAGE_HEIGHT, 3), 'input_n'),
                InputDesc(tf.float32, (BATCH_SIZE,), 'score_n')] 
開發者ID:cgtuebingen,項目名稱:will-people-like-your-image,代碼行數:9,代碼來源:resnet50_for_embedding.py

示例3: inputs

# 需要導入模塊: import tensorpack [as 別名]
# 或者: from tensorpack import InputDesc [as 別名]
def inputs(self):
        # Use a combined state for efficiency.
        # The first h channels are the current state, and the last h channels are the next state.
        return [InputDesc(tf.uint8,
                          (None,) + self.image_shape + (self.channel + 1,),
                          'comb_state'),
                InputDesc(tf.int64, (None,), 'action'),
                InputDesc(tf.float32, (None,), 'reward'),
                InputDesc(tf.bool, (None,), 'isOver')] 
開發者ID:amiralansary,項目名稱:rl-medical,代碼行數:11,代碼來源:DQNModel.py

示例4: _get_inputs

# 需要導入模塊: import tensorpack [as 別名]
# 或者: from tensorpack import InputDesc [as 別名]
def _get_inputs(self):
        # Use a combined state for efficiency.
        # The first h channels are the current state, and the last h channels are the next state.
        return [InputDesc(tf.uint8,
                          (None,) + (self.agents,)+self.image_shape + (self.channel + 1,),
                          'comb_state'),
                InputDesc(tf.int64, (None,self.agents), 'action'),
                InputDesc(tf.float32, (None,self.agents), 'reward'),
                InputDesc(tf.bool, (None,self.agents), 'isOver'),
                ] 
開發者ID:thanosvlo,項目名稱:MARL-for-Anatomical-Landmark-Detection,代碼行數:12,代碼來源:DQNModel.py


注:本文中的tensorpack.InputDesc方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。