From 645e61810d161ea316990631a509daf446a8b55b Mon Sep 17 00:00:00 2001 From: layla <111667698+04cb@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:01:50 +0000 Subject: [PATCH] Fix spelling errors in the code --- python/src/nnabla/core/sequential.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/src/nnabla/core/sequential.py b/python/src/nnabla/core/sequential.py index 291246673..b4620ba8a 100644 --- a/python/src/nnabla/core/sequential.py +++ b/python/src/nnabla/core/sequential.py @@ -39,13 +39,13 @@ def call(self, x): x = F.relu(x) return x - # Example of using Sequentional + # Example of using Sequential layer = nn.Sequential( ConvLayer(48, kernel=1), ConvLayer(64, kernel=3, pad=1) ) - # Example of using Sequentional with a specify name for each layer + # Example of using Sequential with a specified name for each layer layer = nn.Sequential( ('conv1', ConvLayer(48, kernel=1)), ('conv2', ConvLayer(64, kernel=3, pad=1)) @@ -59,14 +59,14 @@ def __init__(self, *args, **kwargs): self.submodules[module.name + '_' + str(idx)] = module else: raise TypeError( - "The input layer {}/{} should be a instance of nn.Module".format(self.name, + "The input layer {}/{} should be an instance of nn.Module".format(self.name, module.__class__.__name__)) else: if isinstance(module[1], nn.Module): self.submodules[module[0]] = module[1] else: raise TypeError( - "The input layer {}/{} should be a instance of nn.Module".format(self.name, + "The input layer {}/{} should be an instance of nn.Module".format(self.name, module[1].__class__.__name__)) def call(self, *args, **kwargs):