python_code
stringlengths
0
679k
repo_name
stringlengths
9
41
file_path
stringlengths
6
149
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/homomorphic_encryption/he_pt_model_reader_writer.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/shareablegenerators/__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/shareablegenerators/full_model_shareable_generator.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/hub/hub_app_deployer.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/hub/hub_executor.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/hub/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/hub/hub_controller.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/widgets/event_recorder.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/widgets/convert_to_fed_event.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/widgets/__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/widgets/validation_json_generator.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/widgets/streaming.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/app_common/widgets/intime_model_selector.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/spec.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/poc.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/utils.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/provision.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/service_constants.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/tplt_utils.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/he.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/docker.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/cert.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/template.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/helm_chart.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/workspace.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/signature.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/local_cert.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/local_static_file.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/lighter/impl/static_file.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/config.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/decorator.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/constants.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/api.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/utils.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/model_registry.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/client/lightning/__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/widgets/widget.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/widgets/fed_event.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/widgets/__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/widgets/info_collector.py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/widgets/comp_caller.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/preflight_check.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/api_utils.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/poc/poc_commands.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/poc/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/package_checker.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/nvflare_console_package_checker.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/__init__.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/utils.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/overseer_package_checker.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/check_rule.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/server_package_checker.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/package_checker/client_package_checker.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/job/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/job/job_cli.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/job/job_client_const.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/job/config/configer.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/job/config/__init__.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # 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 appli...
NVFlare-main
nvflare/tool/job/config/config_indexer.py
#! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must reta...
CUDALibrarySamples-master
cuTENSOR/python/setup.py
#! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must reta...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/package_info.py
# ! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must ret...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/c_extensions_utils.py
# ! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must ret...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/c_extensions.py
#! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must reta...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/__init__.py
# ! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must ret...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/common.py
#! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must reta...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/torch/einsum_test.py
#! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must reta...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/torch/einsum.py
#! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must reta...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/torch/__init__.py
# ! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must ret...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/tensorflow/einsum_test.py
# ! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must ret...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/tensorflow/einsum.py
# ! /usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # - Redistributions of source code must ret...
CUDALibrarySamples-master
cuTENSOR/python/cutensor/tensorflow/__init__.py
import argparse import time import cupy import numpy as np import matplotlib.pyplot as plt import tifffile import nvtiff parser = argparse.ArgumentParser() parser.add_argument('tiff_file', type=str, help='tiff file to decode.') parser.add_argument('-o', '--output_file_prefix', type=str, default=None, help='Output f...
CUDALibrarySamples-master
nvTIFF/nvTIFF-Python-Example/nvtiff_test.py
#!/usr/bin/env python import codecs import os import subprocess import sys import distutils.sysconfig import pybind11 from setuptools import Extension, find_packages, setup from setuptools.command.build_ext import build_ext HERE = os.path.dirname(os.path.realpath(__file__)) def read(*parts): with codecs.open(os...
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/setup.py
# -*- coding: utf-8 -*- import time import math import numpy as np import sys import jax import jax.numpy as jnp from jax.experimental import maps from jax.experimental.pjit import pjit from fft_common import Dist, Dir from cufftmp_jax import cufftmp from xfft import xfft import helpers def main(): opt = hel...
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/tests/fft_test.py
import argparse import jax from jax.experimental.pjit import pjit from jax.experimental.maps import xmap def Frob_error_impl(dtest, dref): derr2 = jax.numpy.linalg.norm(dtest - dref) ** 2 dnorm2 = jax.numpy.linalg.norm(dref) ** 2 derr2_sum = jax.lax.psum(derr2, axis_name="gpus") dnorm2_sum = jax.lax...
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/tests/helpers.py
# -*- coding: utf-8 -*- from .utils import Dist, Dir
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/src/fft_common/__init__.py
from enum import Enum import jax from jax.experimental import PartitionSpec class Dist(Enum): """Describes a SLAB data decomposition For a X*Y*Z array, SLABS_X indicates the array is distributed along the first dimension, i.e., each device owns a slab of size (X // nGPUs)*Y*Z SLABS_Y indicates...
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/src/fft_common/utils.py
from functools import partial import jax from jax._src.sharding import NamedSharding from jax.experimental.custom_partitioning import custom_partitioning from fft_common import Dir def _fft(x, dist, dir): """ Compute a local FFT along the appropriate axes (based on dist), in the forward or backward directio...
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/src/xfft/xfft.py
# -*- coding: utf-8 -*- from .xfft import xfft
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/src/xfft/__init__.py
# -*- coding: utf-8 -*- __all__ = ["cufftmp"] from functools import partial import math import jax from jax.lib import xla_client from jax import core, dtypes from jax.interpreters import xla, mlir from jax.abstract_arrays import ShapedArray from jax._src.sharding import NamedSharding from jax.experimental.custom_pa...
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/src/cufftmp_jax/cufftmp_jax.py
# -*- coding: utf-8 -*- from .cufftmp_jax import cufftmp
CUDALibrarySamples-master
cuFFTMp/JAX_FFT/src/cufftmp_jax/__init__.py
# Copyright (c) 2022 NVIDIA CORPORATION. # Licensed under the MIT license. import os import sys from collections import defaultdict from tqdm import tqdm import argparse import warnings warnings.filterwarnings("ignore") import numpy as np from scipy.io import wavfile from pesq import pesq from pystoi import stoi...
CleanUNet-main
python_eval.py
# Adapted from https://github.com/kan-bayashi/ParallelWaveGAN # Original Copyright 2019 Tomoki Hayashi # MIT License (https://opensource.org/licenses/MIT) """STFT-based Loss modules.""" import torch import torch.nn.functional as F from distutils.version import LooseVersion is_pytorch_17plus = LooseVersion(torch._...
CleanUNet-main
stft_loss.py
import os import time import functools import numpy as np from math import cos, pi, floor, sin from tqdm import tqdm import torch import torch.nn as nn import torch.nn.functional as F from stft_loss import MultiResolutionSTFTLoss def flatten(v): return [x for y in v for x in y] def rescale(x): return (x ...
CleanUNet-main
util.py
# Copyright (c) 2022 NVIDIA CORPORATION. # Licensed under the MIT license. import os import numpy as np from scipy.io.wavfile import read as wavread import warnings warnings.filterwarnings("ignore") import torch from torch.utils.data import Dataset from torch.utils.data.distributed import DistributedSampler impo...
CleanUNet-main
dataset.py
# Adapted from https://github.com/NVIDIA/waveglow under the BSD 3-Clause License. # ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are...
CleanUNet-main
distributed.py
# Copyright (c) 2022 NVIDIA CORPORATION. # Licensed under the MIT license. import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from util import weight_scaling_init # Transformer (encoder) https://github.com/jadore801120/attention-is-all-you-need-pytorch # Original Copyright 201...
CleanUNet-main
network.py
# Adapted from https://github.com/NVIDIA/waveglow under the BSD 3-Clause License. # ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are...
CleanUNet-main
train.py
# Adapted from https://github.com/NVIDIA/waveglow under the BSD 3-Clause License. # ***************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are...
CleanUNet-main
denoise.py
""" # Code adapted from: # https://github.com/facebookresearch/Detectron/blob/master/detectron/core/config.py Source License # Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obta...
semantic-segmentation-main
config.py
""" Copyright 2020 Nvidia Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Re...
semantic-segmentation-main
train.py
# This code is adapted from: https://github.com/ZJULearning/RMI # python 2.X, 3.X compatibility from __future__ import print_function from __future__ import division from __future__ import absolute_import import torch import torch.nn.functional as F __all__ = ['map_get_pairs', 'log_det_by_cholesky'] def map_get_p...
semantic-segmentation-main
loss/rmi_utils.py
""" This code is adapted from: https://github.com/ZJULearning/RMI The implementation of the paper: Region Mutual Information Loss for Semantic Segmentation. """ # python 2.X, 3.X compatibility from __future__ import print_function from __future__ import division from __future__ import absolute_import import torch im...
semantic-segmentation-main
loss/rmi.py
""" Copyright 2020 Nvidia Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Re...
semantic-segmentation-main
loss/utils.py
""" This code adapted from: https://github.com/LiyuanLucasLiu/RAdam From the paper: https://arxiv.org/abs/1908.03265 """ import math import torch # pylint: disable=no-name-in-module from torch.optim.optimizer import Optimizer class RAdam(Optimizer): """RAdam optimizer""" def __init__(self, params, lr=1e-3, b...
semantic-segmentation-main
loss/radam.py
""" Copyright 2020 Nvidia Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Re...
semantic-segmentation-main
loss/optimizer.py