Skip to content

Instantly share code, notes, and snippets.

View NHZlX's full-sized avatar
🏠
Working from home

Zhaolong Xing NHZlX

🏠
Working from home
View GitHub Profile
@NHZlX
NHZlX / 分布式系统学习资料.md
Created April 12, 2022 04:53 — forked from zjhiphop/分布式系统学习资料.md
分布式系统学习资料

##分布式系统(Distributed System)资料


#####希望转载的朋友,你可以不用联系我.但是一定要保留原文链接,因为这个项目还在继续也在不定期更新.希望看到文章的朋友能够学到更多.

介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.

@NHZlX
NHZlX / nvvp.md
Created September 19, 2019 04:43 — forked from sonots/nvvp.md
How to use NVIDIA profiler

Usually, located at /usr/local/cuda/bin

Non-Visual Profiler

$ nvprof python train_mnist.py

I prefer to use --print-gpu-trace.

#!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
/***************************************************************************
*
* Copyright (c) 2019 Baidu.com, Inc. All Rights Reserved
* @file model.py
* @author lipeihan01(lipeihan01@baidu.com)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
'''
A separate Fluid test file for feeding specific data.
'''
import sys
import numpy as np
import os
name: "darknet/16c-16x-r1/3d"
layer {
name: "input"
type: "Input"
top: "data"
input_param {
shape {
dim: 1
dim: 800
dim: 1440
#include <string>
#include <vector>
#include <cmath>
#include <gtest/gtest.h>
#include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/tensor_util.h"
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/tensorrt/convert/op_converter.h"
#include <string>
#include <vector>
#include <cmath>
#include <gtest/gtest.h>
#include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/tensor_util.h"
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/tensorrt/convert/op_converter.h"
#include <string>
#include <vector>
#include <cmath>
#include <gtest/gtest.h>
#include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/tensor_util.h"
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/tensorrt/convert/op_converter.h"
#include <string>
#include <vector>
#include <cmath>
#include <gtest/gtest.h>
#include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/op_desc.h"
#include "paddle/fluid/framework/tensor_util.h"
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/tensorrt/convert/op_converter.h"
@NHZlX
NHZlX / get_fluid_output.py
Created March 15, 2019 10:25
获取paddle中间值的输出。
#! /usr/bin/env python
# -*- coding: utf-8 -*-
'''
A separate Fluid test file for feeding specific data.
'''
import sys
import numpy as np
import os