Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ci/docker/install/requirements
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ numpy>1.16.0,<1.19.0 # Restrict numpy version to < 1.19.0 due to https://github
pylint==2.3.1 # pylint and astroid need to be aligned
astroid==2.3.3 # pylint and astroid need to be aligned
requests<2.19.0,>=2.18.4
scipy==1.2.1
scipy<1.7.0 # Restrict scipy version due to https://github.com/apache/incubator-mxnet/issues/20389
setuptools
coverage
coverage
5 changes: 3 additions & 2 deletions ci/docker/install/ubuntu_caffe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial_hl.so.10.0.2 /usr/lib/x86_64-linu

make all pycaffe -j$(nproc)

cd python
for req in $(cat requirements.txt); do pip3 install $req; done
# Do not install caffe python dependencies, as it overwrites our specified versions in ci/docker/install/requirements
#cd python
#pip3 install -r requirements.txt
3 changes: 3 additions & 0 deletions rat-excludes
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,14 @@ CODEOWNERS

# Incorporated third-party source files that carry its own license, captured in licenses/
pool.h
pool.cuh
erfinv-inl.h
im2col.cuh
im2col.h
deformable_im2col.cuh
deformable_im2col.h
modulated_deformable_im2col.cuh
modulated_deformable_im2col.h
FindCUDAToolkit.cmake
select_compute_arch.cmake

Expand Down
19 changes: 0 additions & 19 deletions src/operator/contrib/nn/modulated_deformable_im2col.cuh
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/*!
******************* BEGIN Caffe Copyright Notice and Disclaimer ****************
*
Expand Down
19 changes: 0 additions & 19 deletions src/operator/contrib/nn/modulated_deformable_im2col.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/*!
******************* BEGIN Caffe Copyright Notice and Disclaimer ****************
*
Expand Down
19 changes: 0 additions & 19 deletions src/operator/nn/pool.cuh
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

/*!
******************* BEGIN Caffe Copyright Notice and Disclaimer ****************
*
Expand Down
2 changes: 0 additions & 2 deletions tests/python/unittest/test_numpy_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -3493,7 +3493,6 @@ def hybrid_forward(self, F, a):

@with_seed()
@use_np
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_np_randint():
ctx = mx.context.current_context()
# test shapes
Expand Down Expand Up @@ -7257,7 +7256,6 @@ def hybrid_forward(self,F,A,**kwargs):

@with_seed()
@use_np
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_np_rand():
# Test shapes.
shapes = [
Expand Down
7 changes: 0 additions & 7 deletions tests/python/unittest/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,6 @@ def test_sample_multinomial():

# Test the generators with the chi-square testing
@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_normal_generator():
ctx = mx.context.current_context()
samples = 1000000
Expand All @@ -628,7 +627,6 @@ def test_normal_generator():
nsamples=samples, nrepeat=trials)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_uniform_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand Down Expand Up @@ -662,7 +660,6 @@ def test_gamma_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs, success_rate=success_rate)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_exponential_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand All @@ -677,7 +674,6 @@ def test_exponential_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs, success_rate=0.20)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_poisson_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand All @@ -693,7 +689,6 @@ def test_poisson_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_negative_binomial_generator():
ctx = mx.context.current_context()
for dtype in ['float16', 'float32', 'float64']:
Expand Down Expand Up @@ -723,7 +718,6 @@ def test_negative_binomial_generator():
verify_generator(generator=generator_mx_same_seed, buckets=buckets, probs=probs)

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_multinomial_generator():
# This test fails with dtype float16 if the probabilities themselves cannot be
# well-represented in float16. When the float16 random picks are assigned to buckets,
Expand Down Expand Up @@ -1006,7 +1000,6 @@ def test_randint_extremes():
assert a>=50000000 and a<=50000010

@with_seed()
@unittest.skipIf(sys.platform.startswith('win'), 'https://github.com/apache/incubator-mxnet/issues/20389')
def test_randint_generator():
ctx = mx.context.current_context()
for dtype in ['int32', 'int64']:
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ nose
nose-timer
ipython
numpy>1.16.0,<1.19.0 # Restrict numpy version to < 1.19.0 due to https://github.com/apache/incubator-mxnet/issues/18600
scipy
scipy<1.7.0 # Restrict scipy version due to https://github.com/apache/incubator-mxnet/issues/20389
onnxruntime
3 changes: 3 additions & 0 deletions tools/license_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@

# Licensed under Caffe header
'src/operator/nn/pool.h',
'src/operator/nn/pool.cuh',
'src/operator/contrib/psroi_pooling-inl.h',
'src/operator/contrib/nn/deformable_im2col.h',
'src/operator/contrib/nn/deformable_im2col.cuh',
'src/operator/contrib/nn/modulated_deformable_im2col.h',
'src/operator/contrib/nn/modulated_deformable_im2col.cuh',
'src/operator/nn/im2col.h',
'src/operator/nn/im2col.cuh',

Expand Down