Python models.resnet50() Examples

The following are 1 code examples of models.resnet50(). 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 models , or try the search function .
Example #1
Source File: cifar10.py    From tf-variational-dropout with GNU General Public License v3.0 5 votes vote down vote up
def inference(images, phase, conv2d):
  """Build the CIFAR-10 model.

  Args:
    images: Images returned from distorted_inputs() or inputs().

  Returns:
    Logits.
  """
  if conv2d is not None:
    return models.resnet50(images, phase, conv2d)
  else:
    return models.resnet50(images, phase)