"...text-generation-inference.git" did not exist on "9d8f21cace66e8593bc559174de0eed3ecdab6a2"
Unverified Commit 4edabbc7 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Minor typo fixes in comments (#4520)

parent 903ea4a6
...@@ -116,7 +116,7 @@ show(dogs_with_boxes) ...@@ -116,7 +116,7 @@ show(dogs_with_boxes)
# lraspp mobilenet models # lraspp mobilenet models
# (:func:`~torchvision.models.segmentation.lraspp_mobilenet_v3_large`). # (:func:`~torchvision.models.segmentation.lraspp_mobilenet_v3_large`).
# #
# Let's start by looking at the ouput of the model. Remember that in general, # Let's start by looking at the output of the model. Remember that in general,
# images must be normalized before they're passed to a semantic segmentation # images must be normalized before they're passed to a semantic segmentation
# model. # model.
......
...@@ -230,7 +230,7 @@ class RegionProposalNetwork(torch.nn.Module): ...@@ -230,7 +230,7 @@ class RegionProposalNetwork(torch.nn.Module):
# type: (Tensor, Tensor, List[Tuple[int, int]], List[int]) -> Tuple[List[Tensor], List[Tensor]] # type: (Tensor, Tensor, List[Tuple[int, int]], List[int]) -> Tuple[List[Tensor], List[Tensor]]
num_images = proposals.shape[0] num_images = proposals.shape[0]
device = proposals.device device = proposals.device
# do not backprop throught objectness # do not backprop through objectness
objectness = objectness.detach() objectness = objectness.detach()
objectness = objectness.reshape(num_images, -1) objectness = objectness.reshape(num_images, -1)
......
...@@ -37,7 +37,7 @@ class NodePathTracer(LeafModuleAwareTracer): ...@@ -37,7 +37,7 @@ class NodePathTracer(LeafModuleAwareTracer):
""" """
NodePathTracer is an FX tracer that, for each operation, also records the NodePathTracer is an FX tracer that, for each operation, also records the
name of the Node from which the operation originated. A node name here is name of the Node from which the operation originated. A node name here is
a `.` seperated path walking the hierarchy from top level module down to a `.` separated path walking the hierarchy from top level module down to
leaf operation or leaf module. The name of the top level module is not leaf operation or leaf module. The name of the top level module is not
included as part of the node name. For example, if we trace a module whose included as part of the node name. For example, if we trace a module whose
forward method applies a ReLU module, the name for that node will simply forward method applies a ReLU module, the name for that node will simply
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment