Browse Source

!2714 add notice

Merge pull request !2714 from jinyaohui/print
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
5b46b05b50
6 changed files with 84 additions and 0 deletions
  1. +14
    -0
      tests/ut/python/optimizer/test_while_ScatterNdUpdate.py
  2. +14
    -0
      tests/ut/python/parallel/test_auto_parallel_double_subgraphs.py
  3. +14
    -0
      tests/ut/python/parallel/test_auto_parallel_inference.py
  4. +14
    -0
      tests/ut/python/pynative_mode/test_hook.py
  5. +14
    -0
      tests/ut/python/train/quant/mobilenetv2.py
  6. +14
    -0
      tests/ut/python/train/quant/mobilenetv2_combined.py

+ 14
- 0
tests/ut/python/optimizer/test_while_ScatterNdUpdate.py View File

@@ -1,3 +1,17 @@
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed 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.
# ============================================================================
import numpy as np
from mindspore import context, nn, Tensor, Parameter
from mindspore.common import dtype as mstype


+ 14
- 0
tests/ut/python/parallel/test_auto_parallel_double_subgraphs.py View File

@@ -1,3 +1,17 @@
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed 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.
# ============================================================================
import numpy as np

import mindspore as ms


+ 14
- 0
tests/ut/python/parallel/test_auto_parallel_inference.py View File

@@ -1,3 +1,17 @@
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed 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.
# ============================================================================
import numpy as np

import mindspore.nn as nn


+ 14
- 0
tests/ut/python/pynative_mode/test_hook.py View File

@@ -1,3 +1,17 @@
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed 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.
# ============================================================================
import numpy as np

import mindspore.nn as nn


+ 14
- 0
tests/ut/python/train/quant/mobilenetv2.py View File

@@ -1,3 +1,17 @@
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed 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.
# ============================================================================
"""MobileNetV2"""
from mindspore import nn
from mindspore.ops import operations as P


+ 14
- 0
tests/ut/python/train/quant/mobilenetv2_combined.py View File

@@ -1,3 +1,17 @@
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed 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.
# ============================================================================
"""mobile net v2"""
from mindspore import nn
from mindspore.ops import operations as P


Loading…
Cancel
Save