"examples/vscode:/vscode.git/clone" did not exist on "5ffb73d4aeac9eaef8366d7b21872d64009bd1c7"
Commit 333e53f7 authored by Jie's avatar Jie
Browse files

commenting on unnecessarily exposed buffer at user code

parent 2b67bc33
...@@ -136,6 +136,9 @@ class BatchNorm2d_NHWC(_BatchNorm): ...@@ -136,6 +136,9 @@ class BatchNorm2d_NHWC(_BatchNorm):
self.grid_dim_y = (num_features + 63) // 64 self.grid_dim_y = (num_features + 63) // 64
# allocate scratch space used by implementation # allocate scratch space used by implementation
# TODO: scratch space that is not supposed to be exposed at user code. We only need one time initialization, the
# same buffer could be reused in future iterations. Currently we exposed it here instead of requesting new
# buffer from cache allocator to avoid unnecessary initialization at future iterations.
self.ret_cta = torch.cuda.ByteTensor(8192).fill_(0) self.ret_cta = torch.cuda.ByteTensor(8192).fill_(0)
#FIXME: turn pair handles into an array #FIXME: turn pair handles into an array
......
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