python_code
stringlengths
0
679k
repo_name
stringlengths
9
41
file_path
stringlengths
6
149
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .images import ( ImageClassificationModelJob, GenericImageModelJob, ImageModelJob, ) from .job import ModelJob __all__ = [ 'ImageClassificationModelJob', 'GenericImageModelJob', 'Im...
DIGITS-master
digits/model/__init__.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. import os import flask from flask_wtf import Form import wtforms from wtforms import validators from digits.config import config_value from digits.device_query import get_device, get_nvml_info from digits import utils from digits.utils import sizeo...
DIGITS-master
digits/model/forms.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import io import json import math import os import tarfile import zipfile import flask from flask import flash import requests import werkzeug.exceptions from . import images as model_images from . import Mode...
DIGITS-master
digits/model/views.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from digits import test_utils def test_caffe_imports(): test_utils.skipIfNotFramework('caffe') import numpy # noqa import google.protobuf # noqa
DIGITS-master
digits/model/tasks/test_caffe_train.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from collections import OrderedDict import copy import math import operator import os import re import sys import time from google.protobuf import text_format import numpy as np import platform import scipy fr...
DIGITS-master
digits/model/tasks/caffe_train.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .caffe_train import CaffeTrainTask from .torch_train import TorchTrainTask from .train import TrainTask __all__ = [ 'CaffeTrainTask', 'TorchTrainTask', 'TrainTask', ] from digits.config import...
DIGITS-master
digits/model/tasks/__init__.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .caffe_train import CaffeTrainTask, CaffeTrainSanityCheckError from google.protobuf import text_format from digits import test_utils # Must import after importing digit.config import caffe_pb2 def check...
DIGITS-master
digits/model/tasks/test_caffe_sanity_checks.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from collections import OrderedDict, namedtuple import os.path import time import flask import gevent import psutil from digits import device_query from digits.task import Task from digits.utils import subclas...
DIGITS-master
digits/model/tasks/train.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import operator import os import re import shutil import subprocess import tempfile import time import h5py import numpy as np import PIL.Image from .train import TrainTask import digits from digits import uti...
DIGITS-master
digits/model/tasks/torch_train.py
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import operator import os import re import shutil import subprocess import tempfile import time import sys import h5py import numpy as np from .train import TrainTask import digits from digits import utils from dig...
DIGITS-master
digits/model/tasks/tensorflow_train.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import datetime from ..job import ModelJob from digits.utils import subclass, override # NOTE: Increment this every time the pickled object changes PICKLE_VERSION = 1 @subclass class ImageModelJob(ModelJob): ...
DIGITS-master
digits/model/images/job.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .classification import ImageClassificationModelJob from .generic import GenericImageModelJob from .job import ImageModelJob __all__ = [ 'ImageClassificationModelJob', 'GenericImageModelJob', 'I...
DIGITS-master
digits/model/images/__init__.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from wtforms import validators from ..forms import ModelForm from digits import utils class ImageModelForm(ModelForm): """ Defines the form used to create a new ImageModelJob """ crop_size = ...
DIGITS-master
digits/model/images/forms.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import flask blueprint = flask.Blueprint(__name__, __name__)
DIGITS-master
digits/model/images/views.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os.path from ..job import ImageModelJob from digits.utils import subclass, override # NOTE: Increment this every time the pickled object changes PICKLE_VERSION = 1 @subclass class ImageClassificationM...
DIGITS-master
digits/model/images/classification/job.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .job import ImageClassificationModelJob __all__ = ['ImageClassificationModelJob']
DIGITS-master
digits/model/images/classification/__init__.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import itertools import json import os import shutil import tempfile import time import unittest import caffe_pb2 import math # Find the best implementation available try: from cStringIO import StringIO ex...
DIGITS-master
digits/model/images/classification/test_views.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from ..forms import ImageModelForm class ImageClassificationModelForm(ImageModelForm): """ Defines the form used to create a new ImageClassificationModelJob """ pass
DIGITS-master
digits/model/images/classification/forms.py
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os import re import tempfile import flask import numpy as np import werkzeug.exceptions from .forms import ImageClassificationModelForm from .job import ImageClassificationModelJob from digits import fr...
DIGITS-master
digits/model/images/classification/views.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os.path from ..job import ImageModelJob from digits.utils import subclass, override # NOTE: Increment this every time the pickled object changes PICKLE_VERSION = 1 @subclass class GenericImageModelJob...
DIGITS-master
digits/model/images/generic/job.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .job import GenericImageModelJob __all__ = ['GenericImageModelJob']
DIGITS-master
digits/model/images/generic/__init__.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import itertools import json import numpy as np import os import PIL.Image import tempfile import time import unittest # Find the best implementation available try: from cStringIO import StringIO except Imp...
DIGITS-master
digits/model/images/generic/test_views.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from ..forms import ImageModelForm class GenericImageModelForm(ImageModelForm): """ Defines the form used to create a new GenericImageModelJob """ pass
DIGITS-master
digits/model/images/generic/forms.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os import re import tempfile import flask import werkzeug.exceptions from .forms import GenericImageModelForm from .job import GenericImageModelJob from digits.pretrained_model.job import PretrainedMode...
DIGITS-master
digits/model/images/generic/views.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from . import tasks import digits.frameworks from digits.job import Job from digits.utils import subclass, override @subclass class InferenceJob(Job): """ A Job that exercises the forward pass of a neu...
DIGITS-master
digits/inference/job.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .images import ImageInferenceJob from .job import InferenceJob __all__ = [ 'InferenceJob', 'ImageInferenceJob', ]
DIGITS-master
digits/inference/__init__.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from digits.utils import subclass, override @subclass class Error(Exception): pass @subclass class InferenceError(Error): """ Errors that occur during inference """ def __init__(self, me...
DIGITS-master
digits/inference/errors.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .inference import InferenceTask __all__ = ['InferenceTask']
DIGITS-master
digits/inference/tasks/__init__.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import base64 from collections import OrderedDict import h5py import os.path import tempfile import re import sys import digits from digits.task import Task from digits.utils import subclass, override from digi...
DIGITS-master
digits/inference/tasks/inference.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from ..job import InferenceJob from digits.utils import subclass, override @subclass class ImageInferenceJob(InferenceJob): """ A Job that exercises the forward pass of an image neural network """ ...
DIGITS-master
digits/inference/images/job.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .job import ImageInferenceJob __all__ = ['ImageInferenceJob']
DIGITS-master
digits/inference/images/__init__.py
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os import re import subprocess import tempfile import sys from .errors import NetworkVisualizationError from .framework import Framework import digits from digits import utils from digits.model.tasks import T...
DIGITS-master
digits/frameworks/tensorflow_framework.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os import re import caffe.draw import caffe_pb2 from google.protobuf import text_format from .errors import BadNetworkError from .framework import Framework import digits from digits.config import confi...
DIGITS-master
digits/frameworks/caffe_framework.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from digits.inference.tasks import InferenceTask class Framework(object): """ Defines required methods to interact with a framework """ def get_name(self): """ return self-descriptive name """ return...
DIGITS-master
digits/frameworks/framework.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .caffe_framework import CaffeFramework from .framework import Framework from .torch_framework import TorchFramework from digits.config import config_value __all__ = [ 'Framework', 'CaffeFramework',...
DIGITS-master
digits/frameworks/__init__.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from digits.utils import subclass @subclass class Error(Exception): pass @subclass class BadNetworkError(Error): """ Errors that occur when validating a network """ def __init__(self, me...
DIGITS-master
digits/frameworks/errors.py
# Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import os import re import subprocess import time import tempfile import flask from .errors import NetworkVisualizationError from .framework import Framework import digits from digits import utils from digits....
DIGITS-master
digits/frameworks/torch_framework.py
DIGITS-master
digits/store/__init__.py
# Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import json import os import tempfile import time import uuid import flask import requests from digits.log import logger from digits.pretrained_model import PretrainedModelJob from digits.utils import auth fro...
DIGITS-master
digits/store/views.py
#!/usr/bin/env python2 # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. import argparse import logging import numpy as np import pickle import PIL.Image import os import sys try: from cStringIO import StringIO except ImportError: from StringIO import StringIO # Add path for DIGITS package sys.p...
DIGITS-master
examples/gan/gan_features.py
# The MIT License (MIT) # # Original work Copyright (c) 2016 Taehoon Kim # Modified work Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the...
DIGITS-master
examples/gan/network-celebA.py
# The MIT License (MIT) # # Original work Copyright (c) 2016 Taehoon Kim # Modified work Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the...
DIGITS-master
examples/gan/network-mnist.py
# The MIT License (MIT) # # Original work Copyright (c) 2016 Taehoon Kim # Modified work Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the...
DIGITS-master
examples/gan/network-mnist-encoder.py
#!/usr/bin/env python2 # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. import argparse import os import pickle import shutil import numpy as np import PIL.Image import tensorflow as tf from tensorflow.contrib.tensorboard.plugins import projector TB_DIR = os.path.join(os.getcwd(), "gan-tb") SPRITE_IMA...
DIGITS-master
examples/gan/gan_embeddings.py
# The MIT License (MIT) # # Original work Copyright (c) 2016 Taehoon Kim # Modified work Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the...
DIGITS-master
examples/gan/network-celebA-encoder.py
#!/usr/bin/env python2 # Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. """ Classify an image using a model archive file """ import argparse import os import tarfile import tempfile import time import zipfile from example import classify def unzip_archive(archive): """ Unzips an archive...
DIGITS-master
examples/classification/use_archive.py
#!/usr/bin/env python2 # Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. """ Classify an image using individual model files Use this script as an example to build your own tool """ import argparse import os import time from google.protobuf import text_format import numpy as np import PIL.Image im...
DIGITS-master
examples/classification/example.py
# Tensorflow Triangle binary segmentation model using TensorFlow-Slim from model import Tower from utils import model_property import tensorflow as tf import tensorflow.contrib.slim as slim import utils as digits class UserModel(Tower): @model_property def inference(self): _x = tf.reshape(self.x, sha...
DIGITS-master
examples/binary-segmentation/binary_segmentation-TF.py
#!/usr/bin/env python2 # Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. """ Functions for creating a dummy image segmentation dataset """ import argparse import numpy as np import os import PIL.Image import PIL.ImageDraw import shutil import time INPUT_FOLDER = "input" TARGET_FOLDER = "target" ...
DIGITS-master
examples/binary-segmentation/create_images.py
# Tensorflow MNIST autoencoder model using TensorFlow-Slim from model import Tower from utils import model_property import tensorflow as tf import tensorflow.contrib.slim as slim import utils as digits class UserModel(Tower): @model_property def inference(self): with slim.arg_scope([slim.fully_conne...
DIGITS-master
examples/autoencoder/autoencoder-TF.py
#!/usr/bin/env python2 # Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. """ Downloads BVLC Alexnet and perform the require net surgery to convert into an FCN Alexnet """ import urllib import caffe ALEXNET_PROTOTXT_URL = "https://raw.githubusercontent.com/BVLC/caffe/rc3/models/bvlc_alexnet/deploy....
DIGITS-master
examples/semantic-segmentation/net_surgery.py
#!/usr/bin/env python2 # Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. """ Functions for creating a text classification dataset out of .csv files The expected CSV structure is: <Class>,<Text Field 1>, ..., <Text Field N> """ import argparse import caffe import csv import lmdb import numpy as np im...
DIGITS-master
examples/text-classification/create_dataset.py
from model import Tower from utils import model_property import tensorflow as tf import tensorflow.contrib.slim as slim import utils as digits class UserModel(Tower): @model_property def inference(self): _x = tf.reshape(self.x, shape=[-1, self.input_shape[0], self.input_shape[1], self.input_shape[2]]...
DIGITS-master
examples/siamese/siamese-TF.py
#!/usr/bin/env python2 # Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. """ Functions for creating temporary LMDBs Used in test_views """ import argparse import os import random import re import sys import time import lmdb import numpy as np import PIL.Image if __name__ == '__main__': dirname...
DIGITS-master
examples/siamese/create_db.py
from model import Tower from utils import model_property import tensorflow as tf import tensorflow.contrib.slim as slim import utils as digits class UserModel(Tower): @model_property def inference(self): x = tf.reshape(self.x, shape=[-1, self.input_shape[0], self.input_shape[1], self.input_shape[2]])...
DIGITS-master
examples/fine-tuning/lenet-fine-tune-tf.py
#!/usr/bin/env python2 # Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. """ Prepares KITTI data for ingestion by DIGITS """ import argparse import os import re import shutil import zipfile def extract_data(input_dir, output_dir): """ Extract zipfiles at input_dir into output_dir """ ...
DIGITS-master
examples/object-detection/prepare_kitti_data.py
from model import Tower from utils import model_property import tensorflow as tf import utils as digits class UserModel(Tower): @model_property def inference(self): const = tf.constant(0.004) normed = tf.multiply(self.x, const) # The reshaping have to be done for tensorflow to get th...
DIGITS-master
examples/regression/regression-TF.py
#!/usr/bin/env python3 # # @ build_bios.py # Builds BIOS using configuration files and dynamically # imported functions from board directory # # Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2021, American Megatrends International LLC.<BR> # SPDX-License-Identifier: BSD-2-Clause...
edk2-platforms-master
Platform/Intel/build_bios.py
## @file # PreBuild operations for Vlv2TbltDevicePkg # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ''' PreBuild ''' import os import sys import argparse import subprocess import glob import shutil import struct import datetime # # Globals for h...
edk2-platforms-master
Platform/Intel/Vlv2TbltDevicePkg/PreBuild.py
## @file # Generate capsules for Vlv2TbltDevicePkg # openssl must be install and in path # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ''' GenCapsuleAll ''' import os import sys import argparse import subprocess import glob import shutil impor...
edk2-platforms-master
Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenCapsuleAll.py
## @file # Trim files preprocessed by compiler # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # import os import sys import time import logging import struct import datetime import argparse import platform from collections import...
edk2-platforms-master
Platform/Intel/Tools/GenBiosId/GenBiosId.py
## @file # Get all recursive package paths from special directories. # # Copyright (c) 2020, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # import os import glob import argparse # # Globals for help information # __prog__ = 'GetPackagesPath.py' __copyright__ = 'Copyright ...
edk2-platforms-master
Platform/Intel/Tools/AppendPackagesPath/GetPackagesPath.py
## @file # generate UQI (Universal Question Identifier) unicode string for HII question PROMPT string. UQI string can be used to # identify each HII question. # # Copyright (c) 2019, Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-2-Clause-Patent # import re import sys import os import getopt ...
edk2-platforms-master
Platform/Intel/Tools/UniTool/UniTool.py
## @file # # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ''' AmlGenOffset ''' import os import sys import argparse import subprocess import uuid import struct import collections import binascii import re from ctypes import * # # Globals for help ...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/AmlGenOffset/AmlGenOffset.py
## @ RebaseFspBinBaseAddress.py # # Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # import os import sys import re import subprocess if len(sys.argv) not in [5,6]: print ("RebaseFspBinBaseAddress.py - Error in number of arguments received") p...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseFspBinBaseAddress.py
## @ PatchFspBinBaseAddress.py # # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## import os import re import sys import struct from datetime import date fspSBaseAddress = 0 fspMBaseAddress = 0 fspTBaseAddress = 0 def GetFspBaseAddress (binfile): ...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/Fsp/PatchFspBinFvsBaseAddress.py
## @ RebaseAndPatchFspBinBaseAddress.py # # Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # import os import sys import re import subprocess if len(sys.argv) not in [6,7]: print ("RebaseAndPatchFspBinBaseAddress.py - Error in number of argument...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/Fsp/RebaseAndPatchFspBinBaseAddress.py
## @ SyncBinFvInf.py # # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## import os import re import sys import time import shutil from ctypes import * class GUID(Structure): _fields_ = [ ('Guid1', c_uint32), ('Guid2',...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/PatchFv/SyncBinFvInf.py
## @ PatchBinFv.py # # Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # import os import re import sys import time import shutil import struct import binascii from ctypes import * class GUID(Structure): _fields_ = [ ('Guid1', ...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/PatchFv/RebaseBinFv.py
## @ PatchBfv.py # # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## import os import re import sys import time import shutil import struct import binascii from ctypes import * class FileChecker: def __init__(self): self.fdName = "" ...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBfv.py
## @ PatchBinFv.py # # Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## import os import re import sys import time import shutil import struct import binascii from ctypes import * class FileChecker: def __init__(self): self.SyncSe...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBinFv.py
## @file # # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ''' ParseVar ''' import os import sys import argparse import subprocess import uuid import struct import collections import binascii from ctypes import * # # Globals for help information # ...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/ParseVar/ParseVar.py
## @ CheckCodeBase.py # # Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## import os import re import sys import time import shutil class FileChecker: def __init__(self): # sourceRoot == WORKSPACE # sourceRoot != PACKAGES_PATH ...
edk2-platforms-master
Platform/Intel/MinPlatformPkg/Tools/Help/CheckCodeBase.py
# @ build_board.py # Extensions for building WilsonCityRvp using build_bios.py # # Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as a sample implementation of the build extension scripts """ import os import sys def pre_build_e...
edk2-platforms-master
Platform/Intel/WhitleyOpenBoardPkg/WilsonCityRvp/build_board.py
# @ build_board.py # Extensions for building SuperMicro using build_bios.py # # Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as a sample implementation of the build extension scripts """ import os import sys def pre_build_ex(c...
edk2-platforms-master
Platform/Intel/WhitleyOpenBoardPkg/BoardPortTemplate/build_board.py
# @ build_board.py # Extensions for building CooperCityRvp using build_bios.py # # Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as a sample implementation of the build extension scripts """ import os import sys def pre_build_e...
edk2-platforms-master
Platform/Intel/WhitleyOpenBoardPkg/CooperCityRvp/build_board.py
# @ build_board.py # Extensions for building JunctionCity using build_bios.py # # # Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2021, American Megatrends International LLC. <BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as a sample implementation of the...
edk2-platforms-master
Platform/Intel/WhitleyOpenBoardPkg/JunctionCity/build_board.py
# @ build_board.py # Extensions for building Aowanda using build_bios.py # # # Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2022, American Megatrends International LLC. <BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as a sample implementation of the buil...
edk2-platforms-master
Platform/Intel/WhitleyOpenBoardPkg/Aowanda/build_board.py
# @ build_board.py # This is a sample code provides Optional dynamic imports # of build functions to the BuildBios.py script # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as a sample implementation of the build extension scri...
edk2-platforms-master
Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/build_board.py
# @ build_board.py # This adds additional functions to the build_bios.py # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as an additional build steps for the Mt Olympus board """ import os import sys def pre_build_ex(config,...
edk2-platforms-master
Platform/Intel/PurleyOpenBoardPkg/BoardMtOlympus/build_board.py
# @ build_board.py # This adds additional functions to the build_bios.py # # Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2021, American Megatrends International LLC.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # """ This module serves as an additional build steps for the Tiog...
edk2-platforms-master
Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/build_board.py
edk2-platforms-master
Platform/Intel/PurleyOpenBoardPkg/BoardTiogaPass/__init__.py
## @file # This file contains the script to build UniversalPayload with platform payload # # Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## import argparse import subprocess import os import shutil import sys from ctypes import * sys.dont_write_byte...
edk2-platforms-master
Features/Intel/PlatformPayloadFeaturePkg/PlatformPayloadFeaturePkg.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
setup.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/pipeline_types.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/pipelines_client.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/base_client.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/payloads_client.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/constants.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/clara_client.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/__init__.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/payload_types.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/job_types.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/jobs_client.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/models_client.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/clara_types.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/model_types.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/grpc/payloads_pb2.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/grpc/metrics_pb2_grpc.py
# Copyright (c) 2020, 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...
clara-platform-python-client-main
nvidia_clara/grpc/models_pb2_grpc.py