Comparison: Layers equality testing

Description Usage Arguments See Also Examples

Description

Binary operator to test for equality or inequality of two Layers. This is equal to a call to identical.

Usage

1
2
3
4
5
## S3 method for class 'Layer'
e1 == e2

## S3 method for class 'Layer'
e1 != e2

Arguments

e1, e2

Layers to compare

See Also

Comparison Layer

Examples

1
2
3
4
5
6
Layer(10L, "gaussian") == Layer(10L, "gaussian") # TRUE
Layer(10L, "gaussian") == Layer(10L, "continuous") # FALSE
Layer(10L, "gaussian") == Layer(20L, "gaussian") # FALSE
Layer(10L, "gaussian") != Layer(10L, "gaussian") # FALSE
Layer(10L, "gaussian") != Layer(10L, "continuous") # TRUE
Layer(10L, "gaussian") != Layer(20L, "gaussian") # TRUE

xrobin/DeepLearning documentation built on Sept. 18, 2020, 5:23 a.m.