This file contains 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
""" | |
target "lwc" is custom lwc, with only definition, and without any implementation. | |
""" | |
def get_lowered_tir(mod): | |
""" | |
Argument | |
======== | |
mod : IRModule that contains RelayOp only | |
Returns |
This file contains 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 tensorflow as tf | |
import numpy as np | |
@tf.custom_gradient | |
def force_grad_layer(x, grad_tensor): | |
def grad(dy): | |
return grad_tensor, tf.constant(0) | |
return tf.identity(x), grad | |
with tf.GradientTape() as tape: |
This file contains 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 java.util.ListIterator; | |
import java.util.Stack; | |
import java.util.ArrayList; | |
public class Parser { | |
ArrayList<String> infixExp; | |
Stack<String> operandStack; | |
ArrayList<String> postfixExp; | |
public Parser(String input){ | |
infixExp = new ArrayList<String>(); |
This file contains 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 java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
This file contains 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 java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class BigInteger | |
{ | |
public static final String QUIT_COMMAND = "quit"; | |
public static final String MSG_INVALID_INPUT = "입력이 잘못되었습니다."; |
This file contains 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 java.io.*; // 입력을 받기 위해 이 라이브러리가 필요하다. | |
public class BigInteger | |
{ | |
public static void main(String args[]) | |
{ | |
// 입력을 받기 위한 작업이다. | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
// quit가 나올 때 까지 입력을 받아야 하므로 |