This file contains hidden or 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
| class AttLayer(Layer): | |
| def __init__(self, **kwargs): | |
| self.init = initializations.get('normal') | |
| #self.input_spec = [InputSpec(ndim=3)] | |
| super(AttLayer, self).__init__(**kwargs) | |
| def build(self, input_shape): | |
| assert len(input_shape)==3 | |
| #self.W = self.init((input_shape[-1],1)) | |
| self.W = self.init((input_shape[-1],)) |
This file contains hidden or 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
| // Copyright 2020 The Oppia Authors. All Rights Reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS-IS" BASIS, |
This file contains hidden or 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
| // Copyright 2019 The Oppia Authors. All Rights Reserved. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS-IS" BASIS, |
This file contains hidden or 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
| package models | |
| import ( | |
| ) | |
| type Test struct { | |
| Response string | |
| } |
This file contains hidden or 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
| package controllers | |
| import ( | |
| "test_api/models" | |
| "github.com/astaxie/beego" | |
| ) | |
| type TestController struct { | |
| beego.Controller |
This file contains hidden or 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
| func init() { | |
| ns := beego.NewNamespace("/v1", | |
| beego.NSNamespace("/object", | |
| beego.NSInclude( | |
| &controllers.ObjectController{}, | |
| ), | |
| ), | |
| beego.NSNamespace("/user", | |
| beego.NSInclude( | |
| &controllers.UserController{}, |
This file contains hidden or 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
| { | |
| "directorMedals": [ | |
| { | |
| "name": "Pulkit Singal", | |
| "enroll_no": " 15119040", | |
| "branch": "Mechanical Engineering", | |
| "medalName": "President Gold Medal" | |
| }, | |
| { | |
| "name": "Sumit Kumar Yadav", |
This file contains hidden or 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
| mov r2 1 // number considering as ramanujan number | |
| .loop1: //Initiates loop1 | |
| mov r1 0 // counter for ramanujan number | |
| mov R1 1 | |
| mov R2 1 | |
This file contains hidden or 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
| { | |
| "Hotels-Roorkee": [ | |
| { | |
| "hotel_name": "Ambrosia Sarovar Portico", | |
| "address": "Patanjali Yogpeeth, 12th Milestone, NH-58, Badehri-Rajputna, Haridwar Rd. Phone Number- +919720107173, +919536900146", | |
| "distance": "11" | |
| }, | |
| { | |
| "hotel_name": "Hometel Roorkee", | |
| "address": "Delhi-Dehradun Road (NH-73), Next to Roorkee College of Pharmacy, Karondi. Phone Number- +91 9927398010, +91 9927398010", |
This file contains hidden or 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
| { | |
| "AH": [ | |
| { | |
| "enroll_no": "12909022", | |
| "name": "ALI ABBAS" | |
| }, | |
| { | |
| "enroll_no": "14901001", | |
| "name": "CHANDRA PRAKASH" | |
| }, |
NewerOlder