Skip to content

Instantly share code, notes, and snippets.

View THERE2's full-sized avatar

THERE2 THERE2

View GitHub Profile
@THERE2
THERE2 / bert_training_inference.py
Created October 12, 2019 12:25
PyTorhcのBERTでFX予測
# 1. パッケージのインポート、定数定義
import random
import math
import numpy as np
import json
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data as data
import torch.nn.functional as F