Skip to content

Instantly share code, notes, and snippets.

View baiyfbupt's full-sized avatar
💭
I may be slow to respond.

Bai Yifan baiyfbupt

💭
I may be slow to respond.
View GitHub Profile
@baiyfbupt
baiyfbupt / compare_paddle_addcmul.py
Last active April 21, 2020 09:57
compare_paddle_addcmul
import torch
import torch.nn as nn
import paddle
import paddle.fluid as fluid
import unittest
import time
import numpy as np
device_type = "cpu"
#device_type = "cuda:0"