本文整理匯總了Python中tensorflow.contrib.staging.StagingArea方法的典型用法代碼示例。如果您正苦於以下問題:Python staging.StagingArea方法的具體用法?Python staging.StagingArea怎麽用?Python staging.StagingArea使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類tensorflow.contrib.staging
的用法示例。
在下文中一共展示了staging.StagingArea方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _create_staging_area
# 需要導入模塊: from tensorflow.contrib import staging [as 別名]
# 或者: from tensorflow.contrib.staging import StagingArea [as 別名]
def _create_staging_area(self, tensors):
# return tf_staging.StagingArea(dtypes=[tensor.dtype for tensor in tensors], shapes=[tensor.shape for tensor
# in tensors])
names, dtypes, shapes = [], [], []
for name, tensor in tensors.items():
dtypes.append(tensor.dtype)
shapes.append(tensor.shape)
names.append(name)
return tf_staging.StagingArea(dtypes=dtypes, shapes=shapes, names=names)
示例2: _create_staging_area
# 需要導入模塊: from tensorflow.contrib import staging [as 別名]
# 或者: from tensorflow.contrib.staging import StagingArea [as 別名]
def _create_staging_area(self, tensors):
return tf_staging.StagingArea(dtypes=[tensor.dtype for tensor in tensors], shapes=[tensor.shape for tensor in tensors])
示例3: _create_staging_area
# 需要導入模塊: from tensorflow.contrib import staging [as 別名]
# 或者: from tensorflow.contrib.staging import StagingArea [as 別名]
def _create_staging_area(self, tensors):
names, dtypes, shapes = [], [], []
for name, tensor in tensors.items():
dtypes.append(tensor.dtype)
shapes.append(tensor.shape)
names.append(name)
return tf_staging.StagingArea(dtypes=dtypes, shapes=shapes, names=names)