Skip to content

Commit

Permalink
fix several spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdluminate committed Aug 11, 2016
1 parent 041c610 commit f527a8c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ The roadmap focuses on five separate things
Also, I agree, I actually could not install iTorch on my laptop
before cvpr tutorial somehow, it did not want to work :).
- **soumith**: I think we should propose a common display API that any interface can implement,
that way the users dont need to change scripts across different UI backends.
that way the users don't need to change scripts across different UI backends.
Also, szym/display is a good candidate for the Web UI, ITorch is indeed a bit of a pain to install.

- Should we endorse iTorch for everyone to use?
Expand Down
2 changes: 1 addition & 1 deletion Tensor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ torch.repeatTensor = Tensor.repeatTensor
--- One of the size elements can be -1,
--- a new LongStorage is then returned.
--- The length of the unspecified dimension
--- is infered from the number of remaining elements.
--- is inferred from the number of remaining elements.
local function specifyFully(size, nElements)
local nCoveredElements = 1
local remainingDim = nil
Expand Down
2 changes: 1 addition & 1 deletion Tester.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function Tester:_assertTensorEqOrNeq(ta, tb, negate, ...)
if self._assertTensorEqIgnoresDims and (not negate) and success
and not ta:isSameSizeAs(tb) then
self:_warning("Tensors have the same content but different dimensions. "
.. "For backwards compatability, they are considered equal, "
.. "For backwards compatibility, they are considered equal, "
.. "but this may change in the future. Consider using :eq "
.. "to check for equality instead.")
end
Expand Down
2 changes: 1 addition & 1 deletion lib/TH/THDiskFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static size_t THDiskFile_position(THFile *self)
if (offset > -1)
return (size_t)offset;
else if(!dfself->file.isQuiet)
THError("unable to obtain disk file offset (maybe a long overflow occured)");
THError("unable to obtain disk file offset (maybe a long overflow occurred)");

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/TH/generic/THTensorRandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void THTensor_(multinomial)(THLongTensor *self, THGenerator *_generator, THTenso
THArgCheckWithCleanup((sum > 0), THCleanup(THDoubleTensor_free(cum_dist);), 2,
"invalid multinomial distribution (sum of probabilities <= 0)");
/* normalize cumulative probability distribution so that last val is 1
i.e. dosen't assume original prob_dist row sums to one */
i.e. doesn't assume original prob_dist row sums to one */
if ( (sum > 0) || ( ( sum < 1.00001) && (sum > 0.99999) ) )
{
for (j=0; j<n_categories; j++)
Expand Down
2 changes: 1 addition & 1 deletion lib/luaT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ shall not be freed. It is a pointer inside `tname` string.

<a name="luat_classmodulename"/>
### int luaT_classmodulename(const char *tname, char *parent_name) ###
Alias to `luaT_fullparentname ` for ensuring backwards compatibilty;
Alias to `luaT_fullparentname ` for ensuring backwards compatibility;
use of `luaT_fullparentname` is preferred.

<a name="luat_fullparentname"/>
Expand Down
2 changes: 1 addition & 1 deletion test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function torchtest.rsqrt()
end

function torchtest.sigmoid()
-- cant use genericSingleOpTest, since `math.sigmoid` doesnt exist, have to use
-- can't use genericSingleOpTest, since `math.sigmoid` doesn't exist, have to use
-- `torch.sigmoid` instead
local inputValues = {-1000,-1,0,0.5,1,2,1000}
local expectedOutput = {0.0000, 0.2689, 0.5, 0.6225, 0.7311, 0.8808, 1.000}
Expand Down

0 comments on commit f527a8c

Please sign in to comment.