Skip to content

Commit b14ed12

Browse files
Typo
Change torch.type -> torch.typename in corresponding example.
1 parent 8d690fe commit b14ed12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/utility.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ Checks if `object` has a metatable. If it does, and if it corresponds to a
127127
class. Returns `nil` in any other cases.
128128

129129
```lua
130-
> torch.type(torch.Tensor())
130+
> torch.typename(torch.Tensor())
131131
torch.DoubleTensor
132-
> torch.type({})
132+
> torch.typename({})
133133

134-
> torch.type(7)
134+
> torch.typename(7)
135135

136136
```
137137

0 commit comments

Comments
 (0)