Mercurial > repos > public > sbplib_julia
comparison test/LazyTensors/lazy_tensor_operations_test.jl @ 1004:7fd37aab84fe refactor/lazy_tensors
Simplify bounds handling for LazyElementwiseOperation
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 20 Mar 2022 21:35:20 +0100 |
parents | 271aa6ae1055 |
children | becd95ba0fce |
comparison
equal
deleted
inserted
replaced
1003:7ef605b8f132 | 1004:7fd37aab84fe |
---|---|
23 @test range_size(m') == :domain_size | 23 @test range_size(m') == :domain_size |
24 @test domain_size(m') == :range_size | 24 @test domain_size(m') == :range_size |
25 end | 25 end |
26 | 26 |
27 | 27 |
28 @testset "TensorApplication" begin | 28 @testset "LazyTensorApplication" begin |
29 struct SizeDoublingMapping{T,R,D} <: LazyTensor{T,R,D} | 29 struct SizeDoublingMapping{T,R,D} <: LazyTensor{T,R,D} |
30 domain_size::NTuple{D,Int} | 30 domain_size::NTuple{D,Int} |
31 end | 31 end |
32 | 32 |
33 LazyTensors.apply(m::SizeDoublingMapping{T,R}, v, i::Vararg{Any,R}) where {T,R} = (:apply,v,i) | 33 LazyTensors.apply(m::SizeDoublingMapping{T,R}, v, i::Vararg{Any,R}) where {T,R} = (:apply,v,i) |