python_code stringlengths 0 679k | repo_name stringlengths 9 41 | file_path stringlengths 6 149 |
|---|---|---|
#!/usr/bin/env python
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===------------... | libcudacxx-main | .upstream-tests/utils/sym_diff.py |
#!/usr/bin/env python
import os
import tempfile
def get_libcxx_paths():
utils_path = os.path.dirname(os.path.abspath(__file__))
script_name = os.path.basename(__file__)
assert os.path.exists(utils_path)
src_root = os.path.dirname(utils_path)
include_path = os.path.join(src_root, 'include')
assert os.path.... | libcudacxx-main | .upstream-tests/utils/generate_feature_test_macro_components.py |
#!/usr/bin/env python
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===------------... | libcudacxx-main | .upstream-tests/utils/sym_match.py |
#!/usr/bin/env python
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===------------... | libcudacxx-main | .upstream-tests/utils/merge_archives.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/not.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/gdb/libcxx/printers.py |
#! /usr/bin/env python
# encoding: utf-8
import argparse
import errno
import logging
import os
import platform
import re
import sys
import subprocess
import tempfile
try:
import winreg
except ImportError:
import _winreg as winreg
try:
import urllib.request as request
except ImportError:
import urllib ... | libcudacxx-main | .upstream-tests/utils/google-benchmark/mingw.py |
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
'-Wall',
'-Werror',
'-pedantic-errors',
'-std=c++0x',
'-fno-strict-aliasing'... | libcudacxx-main | .upstream-tests/utils/google-benchmark/.ycm_extra_conf.py |
#!/usr/bin/env python
"""
strip_asm.py - Cleanup ASM output for the specified file
"""
from argparse import ArgumentParser
import sys
import os
import re
def find_used_labels(asm):
found = set()
label_re = re.compile("\s*j[a-z]+\s+\.L([a-zA-Z0-9][a-zA-Z0-9_]*)")
for l in asm.splitlines():
m = lab... | libcudacxx-main | .upstream-tests/utils/google-benchmark/tools/strip_asm.py |
#!/usr/bin/env python
import unittest
"""
compare.py - versatile benchmark output compare tool
"""
import argparse
from argparse import ArgumentParser
import sys
import gbench
from gbench import util, report
from gbench.util import *
def check_inputs(in1, in2, flags):
"""
Perform checking on the user provid... | libcudacxx-main | .upstream-tests/utils/google-benchmark/tools/compare.py |
"""util.py - General utilities for running, loading, and processing benchmarks
"""
import json
import os
import tempfile
import subprocess
import sys
# Input file type enumeration
IT_Invalid = 0
IT_JSON = 1
IT_Executable = 2
_num_magic_bytes = 2 if sys.platform.startswith('win') else 4
def is_executable_file(filena... | libcudacxx-main | .upstream-tests/utils/google-benchmark/tools/gbench/util.py |
"""Google Benchmark tooling"""
__author__ = 'Eric Fiselier'
__email__ = 'eric@efcs.ca'
__versioninfo__ = (0, 5, 0)
__version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev'
__all__ = []
| libcudacxx-main | .upstream-tests/utils/google-benchmark/tools/gbench/__init__.py |
import unittest
"""report.py - Utilities for reporting statistics about benchmark results
"""
import os
import re
import copy
from scipy.stats import mannwhitneyu
class BenchmarkColor(object):
def __init__(self, name, code):
self.name = name
self.code = code
def __repr__(self):
retur... | libcudacxx-main | .upstream-tests/utils/google-benchmark/tools/gbench/report.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/compiler.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/util.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/__init__.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/test/tracing.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/test/config.py |
libcudacxx-main | .upstream-tests/utils/libcudacxx/test/__init__.py | |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/test/format.py |
from __future__ import absolute_import
import os
import subprocess
import sys
import lit.Test
import lit.TestRunner
import lit.util
from lit.formats.base import TestFormat
kIsWindows = sys.platform in ['win32', 'cygwin']
class GoogleBenchmark(TestFormat):
def __init__(self, test_sub_dirs, test_suffix, benchmark_... | libcudacxx-main | .upstream-tests/utils/libcudacxx/test/googlebenchmark.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/test/executor.py |
#===----------------------------------------------------------------------===//
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/test/target_info.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/sym_check/util.py |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | .upstream-tests/utils/libcudacxx/sym_check/__init__.py |
# -*- Python -*- vim: set syntax=python tabstop=4 expandtab cc=80:
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apac... | libcudacxx-main | .upstream-tests/utils/libcudacxx/sym_check/diff.py |
# -*- Python -*- vim: set syntax=python tabstop=4 expandtab cc=80:
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apac... | libcudacxx-main | .upstream-tests/utils/libcudacxx/sym_check/extract.py |
# -*- Python -*- vim: set syntax=python tabstop=4 expandtab cc=80:
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apac... | libcudacxx-main | .upstream-tests/utils/libcudacxx/sym_check/match.py |
# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79:
# Configuration file for the 'lit' test runner.
import os
import site
site.addsitedir(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'utils'))
from libcxx.test.googlebenchmark import GoogleBenchmark
# Tell pylint that we know config and lit_conf... | libcudacxx-main | .upstream-tests/benchmarks/lit.cfg.py |
# All the Lit configuration is handled in the site configs -- this file is only
# left as a canary to catch invocations of Lit that do not go through llvm-lit.
#
# Invocations that go through llvm-lit will automatically use the right Lit
# site configuration inside the build directory.
lit_config.fatal(
"You seem ... | libcudacxx-main | libcxxabi/test/lit.cfg.py |
libcudacxx-main | libcxxabi/test/libcxxabi/__init__.py | |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | libcxxabi/test/libcxxabi/test/config.py |
libcudacxx-main | libcxxabi/test/libcxxabi/test/__init__.py | |
# All the Lit configuration is handled in the site configs -- this file is only
# left as a canary to catch invocations of Lit that do not go through llvm-lit.
#
# Invocations that go through llvm-lit will automatically use the right Lit
# site configuration inside the build directory.
lit_config.fatal(
"You seem ... | libcudacxx-main | libunwind/test/lit.cfg.py |
libcudacxx-main | libunwind/test/libunwind/__init__.py | |
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------... | libcudacxx-main | libunwind/test/libunwind/test/config.py |
libcudacxx-main | libunwind/test/libunwind/test/__init__.py | |
# -*- coding: utf-8 -*-
#
# libunwind documentation build configuration file.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are comm... | libcudacxx-main | libunwind/docs/conf.py |
import argparse
import logging as log
import os
import time
from math import ceil, floor
from tensorboardX import SummaryWriter
import torch
import torch.distributed as dist
import torch.optim as optim
import torch.utils.data.distributed
from torch.multiprocessing import Process
from torch.autograd import Variable
f... | nvvl-master | examples/pytorch_superres/main.py |
import argparse
import os
import subprocess
def split_scenes(raw_data_path, out_data_path):
out_data_path = os.path.join(out_data_path,'orig','scenes')
if not os.path.isdir(os.path.join(out_data_path,'train')):
os.makedirs(os.path.join(out_data_path,'train'))
if not os.path.isdir(os.path.join(ou... | nvvl-master | examples/pytorch_superres/tools/split_scenes.py |
import argparse
import os
import subprocess
default_format = "png"
default_qscale_jpg = "4"
def extract_frames(master_data, resolution, format, q, quiet,
transcoded, codec, crf, keyint):
if transcoded:
desc = [resolution, 'scenes']
desc += [codec] if codec else []
desc ... | nvvl-master | examples/pytorch_superres/tools/extract_frames.py |
import argparse
import os
import subprocess
default_codec = "h264"
default_crf = "18"
default_keyint = "4"
def downsample_scenes(master_data, resolution, codec, crf, keyint, quiet):
desc = [resolution, 'scenes']
if not codec:
codec = default_codec
else:
desc += [codec]
assert codec in... | nvvl-master | examples/pytorch_superres/tools/transcode_scenes.py |
import sys
import copy
from glob import glob
import math
import os
import torch
from torch.utils.data import DataLoader
from dataloading.datasets import imageDataset
import nvvl
class NVVL():
def __init__(self, frames, is_cropped, crop_size, root,
batchsize=1, device_id=0,
shuff... | nvvl-master | examples/pytorch_superres/dataloading/dataloaders.py |
import copy
import sys, time, argparse, os, subprocess, shutil
import math, numbers, random, bisect
from random import Random
from skimage import io, transform
from os import listdir
from os.path import join
from glob import glob
import numpy as np
import torch
import torch.utils.data as data
class imageDataset()... | nvvl-master | examples/pytorch_superres/dataloading/datasets.py |
import torch
from torch import nn
from torch.autograd import Variable
from torch.nn.parameter import Parameter
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
from nvidia.loss_scaler import DynamicLossScaler, LossScaler
FLOAT_TYPES = (torch.FloatTensor, torch.cuda.FloatTensor)
HALF_TYPES = (... | nvvl-master | examples/pytorch_superres/nvidia/fp16.py |
import torch
import torch.nn as nn
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
class tofp16(nn.Module):
"""
Model wrapper that implements::
def forward(self, input):
return input.half()
"""
def __init__(self):
super(tofp16, self).__init__()
... | nvvl-master | examples/pytorch_superres/nvidia/fp16util.py |
import torch
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
import torch.distributed as dist
from torch.nn.modules import Module
def flat_dist_call(tensors, call, extra_args=None):
flat_dist_call.warn_on_half = True
buckets = {}
for tensor in tensors:
tp = tensor.type()
... | nvvl-master | examples/pytorch_superres/nvidia/distributed.py |
import torch
class LossScaler:
def __init__(self, scale=1):
self.cur_scale = scale
# `params` is a list / generator of torch.Variable
def has_overflow(self, params):
return False
# `x` is a torch.Tensor
def _has_inf_or_nan(x):
return False
# `overflow` is boolean ind... | nvvl-master | examples/pytorch_superres/nvidia/loss_scaler.py |
from math import floor
# Cyclic learning rate
def cycle(iteration, stepsize):
return floor(1 + iteration / (2 * stepsize))
def abs_pos(cycle_num, iteration, stepsize):
return abs(iteration / stepsize - 2 * cycle_num + 1)
def rel_pos(iteration, stepsize):
return max(0, (1-abs_pos(cycle(iteration, stepsize... | nvvl-master | examples/pytorch_superres/model/clr.py |
import time
import scipy.misc
import numpy as np
from math import floor, log
import torch
import torch.nn as nn
from torch.nn import init
from torch.autograd import Variable
from torch.nn.functional import upsample
import sys
sys.path.append('flownet2-pytorch/networks')
try:
from submodules import *
except Module... | nvvl-master | examples/pytorch_superres/model/model.py |
import os
import torch
import subprocess
from string import Template
from torch.utils.ffi import create_extension
this_file = os.path.dirname(__file__)
nvvl_path = os.path.join(this_file, "../")
sources = ['nvvl/src/nvvl_th.c']
headers = ['nvvl/src/nvvl_generated.h',
'nvvl/src/nvvl_th.h']
defines = [('W... | nvvl-master | pytorch/build.py |
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.build_ext import build_ext as build_ext_orig
from distutils.command.build import build as build_orig
from setuptools.command.install import install as install_orig
from setuptools.command.develop import deve... | nvvl-master | pytorch/setup.py |
from .dataset import VideoDataset,ProcessDesc
from .loader import VideoLoader
def video_size_from_file(filename):
return lib.nvvl_video_size_from_file(str.encode(filename))
| nvvl-master | pytorch/nvvl/__init__.py |
import bisect
import cffi
import collections
import random
import sys
import torch
import torch.utils.data
from . import lib
class ProcessDesc(object):
"""Describes processing done on a decoded frame.
Parameters
----------
type : string, optional
Type of the output, can be one of "float", "ha... | nvvl-master | pytorch/nvvl/dataset.py |
import collections
import torch
from .dataset import VideoDataset
class VideoLoader(object):
"""Loads batches of sequences of frames from a video file. Meant to be
nearly a drop-in replacement for a torch.util.data.DataLoader.
Parameters
----------
dataset : VideoDataset
dataset from wh... | nvvl-master | pytorch/nvvl/loader.py |
from __future__ import print_function
import argparse
from glob import glob
import os
import sys
import time
import torch
import nvvl
import psutil
from dataloading.dataloaders import get_loader
parser = argparse.ArgumentParser()
parser.add_argument('--root', type=str, required=True,
help='folder of mp4/png f... | nvvl-master | pytorch/test/benchmark.py |
import sys
import copy
from glob import glob
import math
import os
import torch
from torch.utils.data import DataLoader
from dataloading.datasets import imageDataset, lintelDataset
import nvvl
class NVVL():
def __init__(self, frames, is_cropped, crop_size, root,
batchsize=1, device_id=0,
... | nvvl-master | pytorch/test/dataloading/dataloaders.py |
import copy
import sys, time, argparse, os, subprocess, shutil
import math, numbers, random, bisect
import subprocess
from random import Random
from skimage import io, transform
from os import listdir
from os.path import join
from glob import glob
import numpy as np
import torch
import torch.utils.data as data
imp... | nvvl-master | pytorch/test/dataloading/datasets.py |
#!/usr/bin/env python
import os
import subprocess
import sys
from setuptools import setup, find_packages
import torch.utils.cpp_extension
from torch.utils.cpp_extension import CUDAExtension, BuildExtension as build_ext_orig
from distutils.command.build import build as build_orig
from setuptools.command.install import... | nvvl-master | pytorch1.0/setup.py |
from .dataset import VideoDataset,ProcessDesc
from .loader import VideoLoader
from ._nvvl import video_size_from_file
| nvvl-master | pytorch1.0/nvvl/__init__.py |
import bisect
import collections
import random
import sys
import torch
import torch.utils.data
from . import _nvvl
class ProcessDesc(object):
"""Describes processing done on a decoded frame.
Parameters
----------
type : string, optional
Type of the output, can be one of "float", "half", or "b... | nvvl-master | pytorch1.0/nvvl/dataset.py |
import collections
import torch
from .dataset import VideoDataset
class VideoLoader(object):
"""Loads batches of sequences of frames from a video file. Meant to be
nearly a drop-in replacement for a torch.util.data.DataLoader.
Parameters
----------
dataset : VideoDataset
dataset from wh... | nvvl-master | pytorch1.0/nvvl/loader.py |
from __future__ import print_function
import argparse
from glob import glob
import os
import sys
import time
import torch
import nvvl
import psutil
from dataloading.dataloaders import get_loader
parser = argparse.ArgumentParser()
parser.add_argument('--root', type=str, required=True,
help='folder of mp4/png f... | nvvl-master | pytorch1.0/test/benchmark.py |
import sys
import copy
from glob import glob
import math
import os
import torch
from torch.utils.data import DataLoader
from dataloading.datasets import imageDataset, lintelDataset
import nvvl
class NVVL():
def __init__(self, frames, is_cropped, crop_size, root,
batchsize=1, device_id=0,
... | nvvl-master | pytorch1.0/test/dataloading/dataloaders.py |
import copy
import sys, time, argparse, os, subprocess, shutil
import math, numbers, random, bisect
import subprocess
from random import Random
from skimage import io, transform
from os import listdir
from os.path import join
from glob import glob
import numpy as np
import torch
import torch.utils.data as data
imp... | nvvl-master | pytorch1.0/test/dataloading/datasets.py |
# Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
"""Setup script to build the TAO Toolkit package."""
import os
import setuptools
from release.python.utils import utils
PACKAGE_LIST = [
"nvidia_tao_tf1",
"third_party",
]
version_locals = utils.get_version_details()
setuptools_packages =... | tao_tensorflow1_backend-main | setup.py |
# Copyright NVIDIA Corporation
"""Instantiate the TAO-TF1 docker container for developers."""
import argparse
from distutils.version import LooseVersion
import json
import os
import subprocess
import sys
ROOT_DIR = os.getenv("NV_TAO_TF_TOP", os.path.dirname(os.path.dirname(os.getcwd())))
print(f"Current root directo... | tao_tensorflow1_backend-main | runner/tao_tf.py |
# Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
"""TAO Toolkit TF1 runner"""
| tao_tensorflow1_backend-main | runner/__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... | tao_tensorflow1_backend-main | internal/__init__.py |
"""Init module to run the tflite conversion."""
import os
# Apply patch to keras if only the model is loaded with native keras
# and not tensorflow.keras.
if os.getenv("TF_KERAS", "0") != "1":
import third_party.keras.mixed_precision as MP
import third_party.keras.tensorflow_backend as TFB
MP.patch()
... | tao_tensorflow1_backend-main | internal/tflite/__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... | tao_tensorflow1_backend-main | internal/tflite/export.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... | tao_tensorflow1_backend-main | internal/export/__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... | tao_tensorflow1_backend-main | internal/export/generate_classifier.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... | tao_tensorflow1_backend-main | internal/export/calibrator_app.py |
# Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
"""Module containing implementation of release packaging."""
| tao_tensorflow1_backend-main | release/__init__.py |
import argparse
import glob
import os
import subprocess
import sys
from ci.utils import CI
from nvidia_tao_tf1.core.utils.path_utils import expand_path
def execute_command(command_args):
"""Execute the shell command."""
for command in command_args:
try:
subprocess.call(
com... | tao_tensorflow1_backend-main | release/docker/build_kernels.py |
# Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
"""Version string for the TAO Toolkit TF2 AI models/tasks."""
MAJOR = "5"
MINOR = "0.0"
PATCH = "01"
PRE_RELEASE = ''
# Getting the build number.
def get_build_info():
"""Get the build version number."""
# required since setup.py runs a ve... | tao_tensorflow1_backend-main | release/python/version.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... | tao_tensorflow1_backend-main | release/python/__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... | tao_tensorflow1_backend-main | release/python/utils/__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... | tao_tensorflow1_backend-main | release/python/utils/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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/__init__.py |
"TAO module containing blocks."
from nvidia_tao_tf1.blocks import dataloader
from nvidia_tao_tf1.blocks import learning_rate_schedules
from nvidia_tao_tf1.blocks import losses
from nvidia_tao_tf1.blocks import models
from nvidia_tao_tf1.blocks import optimizers
from nvidia_tao_tf1.blocks import trainer
__all__ = (
... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/__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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/data_loader.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/data_format_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/__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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/data_format.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/data_loader_benchmark.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/frame_shape.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/data_loader_eager_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/data_loader_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/test_fixtures_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/coordinates2d_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/sequence_example.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/process_markers_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/decode_image_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/polygon2d_label.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/legacy.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/images2d_reference_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/bbox_2d_label_test.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... | tao_tensorflow1_backend-main | nvidia_tao_tf1/blocks/multi_source_loader/types/tensor_transforms.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.