Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
stylegan2 | stylegan2-master/dnnlib/tflib/ops/fused_bias_act.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Custom TensorFlow ops for efficient bias and activation."""
import os
import numpy as np
... | 8,539 | 42.350254 | 162 | py |
stylegan2 | stylegan2-master/dnnlib/tflib/ops/upfirdn_2d.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Custom TensorFlow ops for efficient resampling of 2D images."""
import os
import numpy as... | 16,588 | 44.449315 | 155 | py |
stylegan2 | stylegan2-master/docs/license.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"/>
<title>Nvidia Source Code License-NC</title>
<link href="https://fonts.googleapis.com/css?family=Helvetica+Neu... | 5,882 | 35.540373 | 101 | html |
stylegan2 | stylegan2-master/docs/versions.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"/>
<title>StyleGAN versions</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat|Source+Sans+Pr... | 3,636 | 39.865169 | 222 | html |
stylegan2 | stylegan2-master/metrics/__init__.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
# empty
| 235 | 28.5 | 70 | py |
stylegan2 | stylegan2-master/metrics/frechet_inception_distance.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Frechet Inception Distance (FID)."""
import os
import numpy as np
import scipy
import ten... | 3,330 | 44.013514 | 121 | py |
stylegan2 | stylegan2-master/metrics/inception_score.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Inception Score (IS)."""
import numpy as np
import tensorflow as tf
import dnnlib.tflib a... | 2,587 | 42.864407 | 120 | py |
stylegan2 | stylegan2-master/metrics/linear_separability.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Linear Separability (LS)."""
from collections import defaultdict
import numpy as np
impor... | 9,978 | 54.748603 | 140 | py |
stylegan2 | stylegan2-master/metrics/metric_base.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Common definitions for GAN metrics."""
import os
import time
import hashlib
import numpy ... | 7,055 | 40.751479 | 182 | py |
stylegan2 | stylegan2-master/metrics/metric_defaults.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Default metric definitions."""
from dnnlib import EasyDict
#----------------------------... | 2,311 | 87.923077 | 237 | py |
stylegan2 | stylegan2-master/metrics/perceptual_path_length.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Perceptual Path Length (PPL)."""
import numpy as np
import tensorflow as tf
import dnnlib... | 5,605 | 46.91453 | 140 | py |
stylegan2 | stylegan2-master/metrics/precision_recall.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Precision/Recall (PR)."""
import os
import numpy as np
import tensorflow as tf
import dnn... | 11,437 | 49.835556 | 161 | py |
stylegan2 | stylegan2-master/training/__init__.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
# empty
| 235 | 28.5 | 70 | py |
stylegan2 | stylegan2-master/training/dataset.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Multi-resolution input data pipeline."""
import os
import glob
import numpy as np
import ... | 9,881 | 48.41 | 139 | py |
stylegan2 | stylegan2-master/training/loss.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Loss functions."""
import numpy as np
import tensorflow as tf
import dnnlib.tflib as tfli... | 10,731 | 53.20202 | 128 | py |
stylegan2 | stylegan2-master/training/misc.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Miscellaneous utility functions."""
import os
import pickle
import numpy as np
import PIL... | 5,706 | 38.089041 | 136 | py |
stylegan2 | stylegan2-master/training/networks_stylegan.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Network architectures used in the StyleGAN paper."""
import numpy as np
import tensorflow... | 33,273 | 49.33888 | 191 | py |
stylegan2 | stylegan2-master/training/networks_stylegan2.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Network architectures used in the StyleGAN2 paper."""
import numpy as np
import tensorfl... | 38,072 | 53.545845 | 238 | py |
stylegan2 | stylegan2-master/training/training_loop.py | # Copyright (c) 2019, NVIDIA Corporation. All rights reserved.
#
# This work is made available under the Nvidia Source Code License-NC.
# To view a copy of this license, visit
# https://nvlabs.github.io/stylegan2/license.html
"""Main training script."""
import numpy as np
import tensorflow as tf
import dnnlib
import ... | 19,892 | 54.722689 | 207 | py |
mpi-operator | mpi-operator-master/ADOPTERS.md | # Adopters of MPI Operator
This page contains a list of organizations who are using MPI Operator. If you'd like to be included here, please send a pull request which modifies this file. Please keep the list in alphabetical order.
| Organization | Contact |
| ------------ | ------- |
| [Alibaba Cloud](https://us.aliba... | 1,710 | 76.772727 | 202 | md |
mpi-operator | mpi-operator-master/CONTRIBUTING.md | # Kubeflow Contributor Guide
Welcome to the Kubeflow/MPI-Operator project! We'd love to accept your patches and
contributions to this project. Please read the
[contributor's guide in our docs](https://www.kubeflow.org/docs/about/contributing/).
The contributor's guide
* shows you where to find the Contributor Lice... | 3,124 | 33.722222 | 401 | md |
mpi-operator | mpi-operator-master/README.md | # MPI Operator
[](https://github.com/kubeflow/mpi-operator/actions?query=event%3Apush+branch%3Amaster)
[](https://hub.docker.com/r/mpioperator/mpi-operator)
T... | 8,347 | 31.23166 | 297 | md |
mpi-operator | mpi-operator-master/RELEASE.md | # MPI Operator Releases
## Release v0.4.0
* Breaking changes
* Removed v1 operator. If you want to use MPIJob v1, you can use the training-operator.
* Support for suspending semantics. Third party controllers can leverage the suspend field to implement queuing and preemption for an MPIJob.
* Support for the coschedu... | 4,307 | 41.653465 | 185 | md |
mpi-operator | mpi-operator-master/ROADMAP.md | # Roadmap of MPI Operator
This document provides a high-level overview of where MPI Operator will grow in future releases. See discussions in the original RFC [here](https://github.com/kubeflow/mpi-operator/pull/159).
## New Features / Enhancements
* Decouple the tight dependency on Open MPI and support other collec... | 2,149 | 85 | 476 | md |
mpi-operator | mpi-operator-master/prow_config.yaml | workflows: []
| 14 | 6.5 | 13 | yaml |
mpi-operator | mpi-operator-master/.github/workflows/codeql.yml | # Inspired by https://github.com/github/codeql-action/blob/3dde1f3512c540f34867ccaa89ccfce5e6cca0d7/README.md#usage
name: "Code Scanning - Action"
on:
push:
branches: [master]
pull_request:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌─... | 2,170 | 31.893939 | 118 | yml |
mpi-operator | mpi-operator-master/.github/workflows/golangci-lint.yml | name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: golangci-lint
... | 472 | 18.708333 | 46 | yml |
mpi-operator | mpi-operator-master/.github/workflows/main.yml | name: build
on: [push, pull_request]
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}/go
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/mpi-operator
# Pull requests from the same repository won't trigger thi... | 1,756 | 33.45098 | 129 | yml |
mpi-operator | mpi-operator-master/.github/workflows/mpi-operator-docker-image-publish.yml | name: build and publish mpi multi-arch docker image
on:
push:
branches:
- "master"
tags:
- "v*"
pull_request:
branches:
- "master"
env:
IMAGE_NAME: mpioperator/mpi-operator
jobs:
build-push-docker-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: ... | 1,393 | 23.892857 | 58 | yml |
mpi-operator | mpi-operator-master/build/base/entrypoint.sh | #!/usr/bin/env bash
set_intel_vars=/opt/intel/oneapi/setvars.sh
if [ -f $set_intel_vars ]; then
source $set_intel_vars
fi
function resolve_host() {
host="$1"
check="nslookup $host"
max_retry=10
counter=0
backoff=0.1
until $check > /dev/null
do
if [ $counter -eq $max_retry ]; then
echo "Could... | 714 | 18.324324 | 57 | sh |
mpi-operator | mpi-operator-master/build/base/intel-builder.Dockerfile | FROM bash AS downloader
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB -O key.PUB
FROM debian:bullseye
COPY --from=downloader key.PUB /tmp/key.PUB
# Install Intel oneAPI keys.
RUN apt update \
&& apt install -y --no-install-recommends gnupg2 ca-certificates \
&& apt-ke... | 810 | 31.44 | 105 | Dockerfile |
mpi-operator | mpi-operator-master/build/base/intel.Dockerfile | ARG BASE_LABEL
FROM bash AS downloader
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB -O key.PUB
FROM mpioperator/base:${BASE_LABEL}
COPY --from=downloader key.PUB /tmp/key.PUB
# Install Intel oneAPI keys.
RUN apt update \
&& apt install -y --no-install-recommends gnupg2 ... | 790 | 28.296296 | 105 | Dockerfile |
mpi-operator | mpi-operator-master/build/base/mpich-builder.Dockerfile | FROM debian:bullseye as builder
RUN apt update \
&& apt install -y --no-install-recommends \
g++ \
libmpich-dev \
&& rm -rf /var/lib/apt/lists/*
| 170 | 20.375 | 47 | Dockerfile |
mpi-operator | mpi-operator-master/build/base/mpich.Dockerfile | ARG BASE_LABEL
FROM mpioperator/base:${BASE_LABEL}
RUN apt update \
&& apt install -y --no-install-recommends \
dnsutils \
mpich \
&& rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
| 253 | 18.538462 | 47 | Dockerfile |
mpi-operator | mpi-operator-master/build/base/openmpi-builder.Dockerfile | FROM debian:bullseye as builder
RUN apt update \
&& apt install -y --no-install-recommends \
g++ \
libopenmpi-dev \
&& rm -rf /var/lib/apt/lists/*
| 172 | 20.625 | 47 | Dockerfile |
mpi-operator | mpi-operator-master/build/base/openmpi.Dockerfile | ARG BASE_LABEL
FROM mpioperator/base:${BASE_LABEL}
RUN apt update \
&& apt install -y --no-install-recommends openmpi-bin \
&& rm -rf /var/lib/apt/lists/*
| 165 | 19.75 | 59 | Dockerfile |
mpi-operator | mpi-operator-master/cmd/mpi-operator/main.go | // Copyright 2018 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,440 | 25.2 | 77 | go |
mpi-operator | mpi-operator-master/cmd/mpi-operator/app/server.go | // Copyright 2021 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 9,966 | 31.048232 | 141 | go |
mpi-operator | mpi-operator-master/cmd/mpi-operator/app/options/options.go | // Copyright 2019 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,856 | 35.164557 | 126 | go |
mpi-operator | mpi-operator-master/deploy/v2beta1/mpi-operator.yaml | # --------------------------------------------------
# - Single configuration deployment YAML for MPI-Operator
# - Includes:
# CRD
# Namespace
# RBAC
# Controller deployment
# --------------------------------------------------
---
apiVersion: v1
kind: Namespace
metadata:
labels:
app: mpi-opera... | 581,727 | 68.818531 | 182 | yaml |
mpi-operator | mpi-operator-master/examples/v2beta1/horovod/README.md | # Horovod CPU-Only Case
This example shows how to run a cpu-only mpijob.
## How to Build Image
This example dockerfile is based on Horovod cpu only [dockerfile](https://raw.githubusercontent.com/horovod/horovod/master/Dockerfile.cpu), you can build the image as follows:
```bash
docker build -t horovod:latest .
```
... | 770 | 34.045455 | 183 | md |
mpi-operator | mpi-operator-master/examples/v2beta1/horovod/tensorflow-mnist.yaml | apiVersion: kubeflow.org/v2beta1
kind: MPIJob
metadata:
name: tensorflow-mnist
spec:
slotsPerWorker: 1
runPolicy:
cleanPodPolicy: Running
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image: docker.io/kubeflow/mpi-horovod-mnist
n... | 1,172 | 20.722222 | 55 | yaml |
mpi-operator | mpi-operator-master/examples/v2beta1/horovod/tensorflow_mnist.py | # Copyright 2019 Uber Technologies, Inc. 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 applica... | 7,343 | 40.727273 | 93 | py |
mpi-operator | mpi-operator-master/examples/v2beta1/pi/README.md | # Pure MPI example
This example shows to run a pure MPI application.
The program prints some basic information about the workers.
Then, it calculates an approximate value for pi.
## How to build Image
For OpenMPI:
```bash
docker build -t mpi-pi .
```
For Intel MPI:
```bash
docker build -t mpi-pi . -f intel.Docke... | 669 | 16.179487 | 108 | md |
mpi-operator | mpi-operator-master/examples/v2beta1/pi/intel.Dockerfile | ARG BASE_LABEL
FROM mpioperator/intel-builder:${BASE_LABEL} as builder
COPY pi.cc /src/pi.cc
RUN bash -c "source /opt/intel/oneapi/setvars.sh && mpicxx /src/pi.cc -o /pi"
FROM mpioperator/intel:${BASE_LABEL}
COPY --from=builder /pi /home/mpiuser/pi
| 253 | 22.090909 | 77 | Dockerfile |
mpi-operator | mpi-operator-master/examples/v2beta1/pi/mpich.Dockerfile | ARG BASE_LABEL
FROM mpioperator/mpich-builder:${BASE_LABEL} as builder
COPY pi.cc /src/pi.cc
RUN mpic++ /src/pi.cc -o /pi
FROM mpioperator/mpich:${BASE_LABEL}
COPY --from=builder /pi /home/mpiuser/pi
| 204 | 17.636364 | 55 | Dockerfile |
mpi-operator | mpi-operator-master/examples/v2beta1/pi/pi-intel.yaml | apiVersion: kubeflow.org/v2beta1
kind: MPIJob
metadata:
name: pi
spec:
slotsPerWorker: 1
runPolicy:
cleanPodPolicy: Running
sshAuthMountPath: /home/mpiuser/.ssh
mpiImplementation: Intel
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image... | 1,281 | 22.309091 | 43 | yaml |
mpi-operator | mpi-operator-master/examples/v2beta1/pi/pi-mpich.yaml | apiVersion: kubeflow.org/v2beta1
kind: MPIJob
metadata:
name: pi
spec:
slotsPerWorker: 1
runPolicy:
cleanPodPolicy: Running
sshAuthMountPath: /home/mpiuser/.ssh
mpiImplementation: MPICH
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image... | 1,281 | 22.309091 | 43 | yaml |
mpi-operator | mpi-operator-master/examples/v2beta1/pi/pi.cc | // Copyright 2021 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,698 | 31.673077 | 88 | cc |
mpi-operator | mpi-operator-master/examples/v2beta1/pi/pi.yaml | apiVersion: kubeflow.org/v2beta1
kind: MPIJob
metadata:
name: pi
spec:
slotsPerWorker: 1
runPolicy:
cleanPodPolicy: Running
ttlSecondsAfterFinished: 60
sshAuthMountPath: /home/mpiuser/.ssh
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- ... | 1,122 | 21.46 | 45 | yaml |
mpi-operator | mpi-operator-master/examples/v2beta1/tensorflow-benchmarks/tensorflow-benchmarks.yaml | apiVersion: kubeflow.org/v2beta1
kind: MPIJob
metadata:
name: tensorflow-benchmarks
spec:
slotsPerWorker: 1
runPolicy:
cleanPodPolicy: Running
mpiReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image: mpioperator/tensorflow-benchmarks:latest
... | 1,270 | 22.981132 | 61 | yaml |
mpi-operator | mpi-operator-master/hack/generate-manifest.sh | #!/usr/bin/env bash
# Copyright 2023 The Kubeflow Authors.
#
# 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 applicabl... | 1,103 | 28.052632 | 74 | sh |
mpi-operator | mpi-operator-master/hack/tools.go | //go:build tools
// Copyright 2023 The Kubeflow Authors.
//
// 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 app... | 903 | 32.481481 | 75 | go |
mpi-operator | mpi-operator-master/hack/update-codegen.sh | #!/usr/bin/env bash
# Copyright 2018 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 1,446 | 39.194444 | 105 | sh |
mpi-operator | mpi-operator-master/hack/verify-codegen.sh | #!/usr/bin/env bash
# Copyright 2018 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 1,279 | 25.122449 | 74 | sh |
mpi-operator | mpi-operator-master/hack/python-sdk/gen-sdk.sh | #!/usr/bin/env bash
# Copyright 2019 The Kubeflow Authors.
#
# 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 applicabl... | 2,403 | 43.518519 | 225 | sh |
mpi-operator | mpi-operator-master/hack/python-sdk/main.go | /*
Copyright 2019 kubeflow.org.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 2,612 | 29.034483 | 100 | go |
mpi-operator | mpi-operator-master/manifests/base/cluster-role-binding.yaml | apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app: mpi-operator
name: mpi-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mpi-operator
subjects:
- kind: ServiceAccount
name: mpi-operator
| 271 | 18.428571 | 40 | yaml |
mpi-operator | mpi-operator-master/manifests/base/cluster-role.yaml | apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
app: mpi-operator
name: mpi-operator
rules:
- apiGroups:
- ""
resources:
- configmaps
- secrets
- services
verbs:
- create
- list
- watch
- update
- apiGroups:
- ""
resources:
- pods
verbs:
- create
- ge... | 2,473 | 14.085366 | 81 | yaml |
mpi-operator | mpi-operator-master/manifests/base/deployment.yaml | apiVersion: apps/v1
kind: Deployment
metadata:
name: mpi-operator
spec:
replicas: 1
selector:
matchLabels:
app: mpi-operator
template:
metadata:
labels:
app: mpi-operator
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:
- args:
- -... | 449 | 18.565217 | 46 | yaml |
mpi-operator | mpi-operator-master/manifests/base/kubeflow.org_mpijobs.yaml | ---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.12.0
name: mpijobs.kubeflow.org
spec:
group: kubeflow.org
names:
kind: MPIJob
listKind: MPIJobList
plural: mpijobs
singular: mpijob
scope: Namespaced
ve... | 576,559 | 70.427156 | 182 | yaml |
mpi-operator | mpi-operator-master/manifests/base/kustomization.yaml | apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kubeflow
resources:
- cluster-role-binding.yaml
- cluster-role.yaml
- kubeflow.org_mpijobs.yaml
- deployment.yaml
- service-account.yaml
commonLabels:
kustomize.component: mpi-operator
app: mpi-operator
app.kubernetes.io/name: mpi-operator... | 453 | 22.894737 | 43 | yaml |
mpi-operator | mpi-operator-master/manifests/base/service-account.yaml | apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: mpi-operator
name: mpi-operator
| 99 | 13.285714 | 21 | yaml |
mpi-operator | mpi-operator-master/manifests/overlays/dev/namespace.yaml | apiVersion: v1
kind: Namespace
metadata:
name: mpi-operator
| 62 | 11.6 | 20 | yaml |
mpi-operator | mpi-operator-master/manifests/overlays/dev/patch.yaml | - op: add
path: /spec/template/spec/containers/0/args/-
value: "--lock-namespace=mpi-operator"
| 99 | 24 | 47 | yaml |
mpi-operator | mpi-operator-master/manifests/overlays/kubeflow/kustomization.yaml | apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
namespace: kubeflow
commonLabels:
kustomize.component: mpi-operator
app: mpi-operator
app.kubernetes.io/name: mpi-operator
app.kubernetes.io/component: mpijob
patches:
- target:
group: apps
version: v1
ki... | 383 | 20.333333 | 43 | yaml |
mpi-operator | mpi-operator-master/manifests/overlays/kubeflow/patch.yaml | - op: add
path: /spec/template/spec/containers/0/args/-
value: "--lock-namespace=kubeflow"
| 95 | 23 | 47 | yaml |
mpi-operator | mpi-operator-master/manifests/overlays/standalone/kustomization.yaml | apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- namespace.yaml
namespace: mpi-operator
commonLabels:
kustomize.component: mpi-operator
app: mpi-operator
app.kubernetes.io/name: mpi-operator
app.kubernetes.io/component: mpijob
images:
- name: mpioperator/mpi-operator
n... | 498 | 20.695652 | 43 | yaml |
mpi-operator | mpi-operator-master/manifests/overlays/standalone/namespace.yaml | apiVersion: v1
kind: Namespace
metadata:
name: mpi-operator
| 62 | 11.6 | 20 | yaml |
mpi-operator | mpi-operator-master/manifests/overlays/standalone/patch.yaml | - op: add
path: /spec/template/spec/containers/0/args/-
value: "--lock-namespace=mpi-operator"
| 99 | 24 | 47 | yaml |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/constants.go | // Copyright 2019 The Kubeflow Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,984 | 41.234043 | 111 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/default.go | // Copyright 2019 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,402 | 26.306818 | 77 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/default_test.go | // Copyright 2021 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 4,770 | 27.39881 | 75 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/doc.go | // Copyright 2019 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 782 | 34.590909 | 75 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/openapi_generated.go | //go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright 2023 The Kubeflow Authors
//
// 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/l... | 22,192 | 41.032197 | 551 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/register.go | // Copyright 2019 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,775 | 32.509434 | 102 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/types.go | // Copyright 2019 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 13,682 | 37.22067 | 140 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/zz_generated.deepcopy.go | //go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright 2023 The Kubeflow Authors.
//
// 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/l... | 8,843 | 26.6375 | 114 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/v2beta1/zz_generated.defaults.go | //go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright 2020 The Kubeflow Authors.
//
// 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/l... | 1,479 | 31.888889 | 119 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/validation/validation.go | // Copyright 2021 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 6,327 | 40.359477 | 236 | go |
mpi-operator | mpi-operator-master/pkg/apis/kubeflow/validation/validation_test.go | // Copyright 2021 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 11,876 | 27.619277 | 113 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/clientset.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 3,946 | 31.891667 | 128 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/doc.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 723 | 37.105263 | 75 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/fake/clientset_generated.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,888 | 33.392857 | 114 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/fake/doc.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 723 | 37.105263 | 75 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/fake/register.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,889 | 33.363636 | 103 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/scheme/doc.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 739 | 37.947368 | 77 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/scheme/register.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,945 | 34.381818 | 103 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/doc.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 725 | 37.210526 | 75 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/generated_expansion.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 696 | 33.85 | 75 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/kubeflow_client.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 3,210 | 29.292453 | 98 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/mpijob.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 6,610 | 33.07732 | 174 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/doc.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 716 | 36.736842 | 75 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_kubeflow_client.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,221 | 30.333333 | 97 | go |
mpi-operator | mpi-operator-master/pkg/client/clientset/versioned/typed/kubeflow/v2beta1/fake/fake_mpijob.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 5,223 | 36.049645 | 178 | go |
mpi-operator | mpi-operator-master/pkg/client/informers/externalversions/factory.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 6,456 | 35.072626 | 194 | go |
mpi-operator | mpi-operator-master/pkg/client/informers/externalversions/generic.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,032 | 32.327869 | 121 | go |
mpi-operator | mpi-operator-master/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,464 | 36.564103 | 98 | go |
mpi-operator | mpi-operator-master/pkg/client/informers/externalversions/kubeflow/interface.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,667 | 36.066667 | 140 | go |
mpi-operator | mpi-operator-master/pkg/client/informers/externalversions/kubeflow/v2beta1/interface.go | // Copyright 2023 The Kubeflow Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 1,576 | 34.840909 | 140 | go |