This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UMyInterface::UMyInterface(const FObjectInitializer &ObjectInitializer): | |
| Super(ObjectInitializer) | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cassert> | |
| #include <cmath> | |
| #include <cstdint> | |
| #include <functional> | |
| #include <iostream> | |
| #include <vector> | |
| template <typename V> using Array = std::vector<V>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SHR_ON = 1 | |
| def _worker(in_queue, out_queue, shared_state, cls, cls_args): | |
| shared_state[SHR_ON] = 1 | |
| with cls(*cls_args, out_queue=out_queue) as handler: | |
| while shared_state[SHR_ON]: | |
| try: | |
| args, kwargs = in_queue.get(True, timeout=0.01) | |
| handler(args, kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import multiprocessing | |
| from multiprocessing.managers import SharedMemoryManager | |
| import time | |
| import json | |
| SHM_INDEX_IN = -1 | |
| SHM_INDEX_OUT = -2 | |
| SHM_ON = -3 | |
| SHM_SIZE = -4 | |
| SHM_MAX = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _defaults: | |
| max_duration: 600 | |
| voir: | |
| options: | |
| stop: 60 | |
| interval: "1s" | |
| _torchvision: | |
| inherits: _defaults | |
| definition: ../benchmarks/torchvision |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _defaults: | |
| max_duration: 600 | |
| voir: | |
| options: | |
| stop: 60 | |
| interval: "1s" | |
| _torchvision: | |
| inherits: _defaults | |
| definition: ../benchmarks/torchvision |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import subprocess | |
| import random | |
| import openai | |
| def get_slurm_job_by_name(name): | |
| command = ["squeue", "-h", f"--name={name}", "--format=\"%A %j %T %P %U %k %N\""] | |
| output = subprocess.check_output(command, text=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Assume you have conda installed | |
| # Clone the LLAMA code and create a new environment | |
| # | |
| # Usage: | |
| # | |
| # sbatch --ntasks-per-node=1 --mem=32G llama2.sh llama-2-7b-chat | |
| # sbatch --ntasks-per-node=2 --mem=64G llama2.sh llama-2-13b-chat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Source/GKFogOfWar/Public/GKFogOfWarPawn.h b/Source/GKFogOfWar/Public/GKFogOfWarPawn.h | |
| index b7d940c..33eda34 100644 | |
| --- a/Source/GKFogOfWar/Public/GKFogOfWarPawn.h | |
| +++ b/Source/GKFogOfWar/Public/GKFogOfWarPawn.h | |
| @@ -8,13 +8,16 @@ | |
| // Unreal Engine | |
| #include "CoreMinimal.h" | |
| #include "GameFramework/Pawn.h" | |
| +#include "Net/UnrealNetwork.h" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // BSD 3-Clause License Copyright (c) 2022, Pierre Delaunay All rights reserved. | |
| #include "GKGameplayCueNotify_ActorExample.h" | |
| void AGKGameplayCueNotify_ActorExample::ReuseAfterRecycle() { | |
| AGameplayCueNotify_Actor::ReuseAfterRecycle(); | |
| OnReuseAfterRecycle(); | |
| } |
NewerOlder