Skip to content

Commit 6bdda37

Browse files
author
Brandyn Tucknott
committed
Fix spelling errors.
1 parent ae6c7f3 commit 6bdda37

6 files changed

Lines changed: 15 additions & 11 deletions

File tree

lib/Layer.chpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ module Layer {
279279
}
280280

281281
override proc forward(input: dynamicTensor(eltType)): dynamicTensor(eltType) do
282-
return input.hardtanh(minVal, maxVal);
282+
return input.hardTanh(minVal, maxVal);
283283

284284
override proc attributes(): moduleAttributes do
285285
return new moduleAttributes(

test/tiny/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,18 @@ set_target_properties(BrandynTanhshrink PROPERTIES
232232

233233

234234

235-
add_executable(BrandynSoftsign
235+
add_executable(BrandynSoftSign
236236
${CMAKE_CURRENT_SOURCE_DIR}/brandyn_softsign.chpl
237237
${CHAI_LIB_FILES}
238238
)
239-
add_dependencies(BrandynSoftsign bridge)
240-
add_dependencies(BrandynSoftsign ChAI)
241-
target_link_options(BrandynSoftsign
239+
add_dependencies(BrandynSoftSign bridge)
240+
add_dependencies(BrandynSoftSign ChAI)
241+
target_link_options(BrandynSoftSign
242242
PRIVATE
243243
${CHAI_LINKER_ARGS}
244244
)
245245

246-
set_target_properties(BrandynSoftsign PROPERTIES
246+
set_target_properties(BrandynSoftSign PROPERTIES
247247
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
248248
)
249249

test/tiny/brandyn_elu.chpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use Layer;
44
proc main() {
55
writeln("Small ELU test. ");
66
var elu = new shared ELU();
7-
writeln(elu(Tensor.zeros(4) - 1));
7+
writeln(elu(Tensor.zeros(4) - 1).toNDArray(1));
88
writeln("Should be: [-0.6321, -0.6321, -0.6321, -0.6321]"); // output according to pytorch
99

1010
elu = new shared ELU(alpha=0.1);
11-
writeln(elu(Tensor.zeros(4) - 1));
11+
writeln(elu(Tensor.zeros(4) - 1).toNDArray(1));
1212
writeln("Should be: [-0.0632, -0.0632, -0.0632, -0.0632]"); // output according to pytorch
1313
}

test/tiny/brandyn_relu.chpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ proc main() {
1010
relu = new shared ReLU();
1111
writeln(relu(Tensor.zeros(4) + 1.5));
1212
writeln("Should be: [1.5, 1.5, 1.5, 1.5]"); // output according to pytorch
13+
14+
relu = new shared ReLU();
15+
writeln(relu(Tensor.zeros(4) + 2.4903));
16+
writeln("Should be: [2.4903, 2.4903, 2.4903, 2.4903]"); // output according to pytorch
1317
}

test/tiny/brandyn_selu.chpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Layer;
33

44
proc main() {
55
writeln("Small SELU test. ");
6-
var selu = new shared selu();
6+
var selu = new shared SELU();
77
writeln(selu(Tensor.zeros(4) - 1));
88
writeln("Should be: [-1.1113, -1.1113, -1.1113, -1.1113]"); // output according to pytorch
99
}

test/tiny/brandyn_softsign.chpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use Tensor;
22
use Layer;
33

44
proc main() {
5-
writeln("Small Softsign test. ");
6-
var softsign = new shared Softsign();
5+
writeln("Small SoftSign test. ");
6+
var softsign = new shared SoftSign();
77
writeln(softsign(Tensor.zeros(4) - 1));
88
writeln("Should be: [-0.5, -0.5, -0.5, -0.5]"); // output according to pytorch
99
}

0 commit comments

Comments
 (0)