Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Giang Nguyen giangnguyen2412

🎯
Focusing
  • KAIST
  • South Korea
View GitHub Profile
@giangnguyen2412
giangnguyen2412 / pretrained_PT_to_TF.py
Created Sep 25, 2020
Convert pretrained Resnet50 model from Pytorch to Tensorflow using ONNX
View pretrained_PT_to_TF.py
## Run this on python CLI
import torch
import torchvision
torch.set_num_threads(1)
from torchvision.models import *
from visualisation.core.utils import device, image_net_postprocessing
from torch import nn
View learnf_tag.diff
Index: src/main/java/org/alicebot/ab/AIMLProcessor.java
===================================================================
--- src/main/java/org/alicebot/ab/AIMLProcessor.java (revision 100)
+++ src/main/java/org/alicebot/ab/AIMLProcessor.java (working copy)
@@ -18,6 +18,8 @@
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
+import java.nio.ByteBuffer;
+import java.nio.charset.StandardCharsets;
@giangnguyen2412
giangnguyen2412 / math_operation.c
Created May 16, 2018
sine and cosine function implementation in C using Taylor series
View math_operation.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int compare_float(double f1, double f2)
{
double precision = 0.00000000000000000001;
if ((f1 - precision) < f2)
{
return -1;