Skip to content

Commit e1c5ed2

Browse files
authored
several small documentation fixes (#107)
Some documentation syntax, some spelling.
1 parent 4a5edb5 commit e1c5ed2

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

docs/src/custom_behaviour.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Specifying a backend
22

3-
By default TensorBoardLogger follows those rules to chose what backend a certain
3+
By default TensorBoardLogger follows these rules to choose what backend a certain
44
value is sent to:
55

66
- `::AbstractVector{<:Real}` -> [Histogram backend](https://www.tensorflow.org/guide/tensorboard_histograms) as a vector

docs/src/deserialization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you want to read data that have been saved previously, you can also construct
2727
Alternatively, you can use the method [`map_summaries`](@ref) to iterate a function of your choice among the data contained in a logger. This function
2828
takes two arguments: a function and the path/`TBLogger` to the data.
2929

30-
The function is mapped across all logged summaries. It's signature should be
30+
The function is mapped across all logged summaries. Its signature should be
3131
`fun(tag, iteration, value)`, where tag is a `String` with the tag used to serialize the data, `iteration` is an `Int` corresponding to the iteration at which the data was serialized, and `value` is the serialized value.
3232

3333
An attempt is made to reconstruct as much as possible the original data, but in the serialization process data is usually converted to lower precision and compressed, so sometimes it's not the case.

docs/src/examples/flux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Using TensorBoard with [Flux](https://fluxml.ai)
2-
For a Google Colab version of this example, go [here](https://colab.research.google.com/drive/1xfUsBn9GEqbRjBF-UX_jnGjHZNtNsMae)
2+
For a Google Colab version of this example, go [here](https://colab.research.google.com/drive/1xfUsBn9GEqbRjBF-UX_jnGjHZNtNsMae).
33
The most important part of the example is the callback `TBCallback` which
44
handles logging to TensorBoard.
55

docs/src/explicit_interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
in addition to the standard logging interface, it is possible to log
44
data to TensorBoard using the functions documented below.
5-
All the functions accept take as first argument a `TBLogger` object
5+
All the functions take as first argument a `TBLogger` object
66
and as the second argument a `String` as the tag under which the
77
data will be logged.
88

docs/src/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ end
9191

9292
When you log data to tensorboard, it is processed to convert it to the format
9393
used by TensorBoard.
94-
In particoular, fields in structures are logged individually individually and complex
95-
numbers/arrays are split into their real and imaginary parts. Depending on it's type, an
94+
In particular, fields in structures are logged individually and complex
95+
numbers/arrays are split into their real and imaginary parts. Depending on its type, an
9696
object is serialized to the relevant backend, with the text backend being the
9797
default fallback.
9898

@@ -116,6 +116,6 @@ We also support logging custom types from a the following third-party libraries:
116116

117117
## Explicit logging
118118

119-
In alternative, you can also log data to TensorBoard through it's functional interface,
119+
In alternative, you can also log data to TensorBoard through its functional interface,
120120
by calling the relevant method with a tag string and the data. For information
121-
on this interface refer to [Explicit interface]@ref()...
121+
on this interface refer to [Explicit interface](@ref)...

src/Deserialization/histograms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function lookahead_deserialize_histogram_summary(old_tag, old_val, evs::Summary,
2929
res = iterate(evs, state + 1)
3030
res == nothing && return result
3131

32-
# if the next event is identified, check it's type
32+
# if the next event is identified, check its type
3333
(new_tag, summary), i_state = res
3434
typ = summary_type(summary)
3535

src/Deserialization/lookahead.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function lookahead_deserialize_simple_value_summary(old_tag, old_val, evs::Summa
5454
res = iterate(evs, state + 1)
5555
res == nothing && return result
5656

57-
# if the next event is identified, check it's type
57+
# if the next event is identified, check its type
5858
(new_tag, summary), i_state = res
5959
typ = summary_type(summary)
6060

src/Loggers/LogCustomScalar.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
@enum tb_chart_type tb_multiline=1 tb_margin=2
33

44
"""
5-
log_custom_scalar(logger, layout::AbstractDict; step = step(logger))
5+
log_custom_scalar(logger, layout::AbstractDict; step = step(logger))
66
77
Groups multiple scalars in the same plot to be visualized by the CUSTOM_SCALARS
88
plugin. Note that this function sets the metadata: the actual values must be
99
logged separately with `log_value` and referenced with the correct tag.
1010
1111
The `layout` argument is structured as follows:
1212
13-
layout = Dict(category => Dict(name => (chart_type, [tag1, tag2, ...])))
13+
layout = Dict(category => Dict(name => (chart_type, [tag1, tag2, ...])))
1414
1515
where `category` is the main tag for the plot, `name` is the plot's name,
1616
`chart_type` is one between `tb_multiline` and `tb_margin` and the array of tags

src/Loggers/LogValue.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
log_value(logger, name, value; step=step(logger))
33
4-
Logs a Floating-point variable with name `name` at step `step`.
4+
Logs a floating-point variable with name `name` at step `step`.
55
If `value` is a complex number, the real and imaginary part are logged
66
separately.
77
"""

src/PNG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include("FileIO_workaround.jl")
1212
"""
1313
PngImage
1414
15-
A wrapper around the binary encoding of a PNG image, holding it's attributes
15+
A wrapper around the binary encoding of a PNG image, holding its attributes
1616
"""
1717
struct PngImage
1818
attr::Dict

0 commit comments

Comments
 (0)