This repository was archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Deepak Kumar
committed
Apr 9, 2019
1 parent
197fab0
commit 1692d2a
Showing
12 changed files
with
557 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using SiaNet.Engine; | ||
using System; | ||
using Tensor = SiaNet.Engine.Tensor; | ||
|
||
namespace SiaNet.Backend.Torch | ||
{ | ||
public class NDArrayTensor : Tensor | ||
{ | ||
public NDArrayTensor() | ||
{ | ||
K = new SiaNetBackend(); | ||
} | ||
|
||
public NDArrayTensor(object arr) | ||
{ | ||
K = new SiaNetBackend(); | ||
} | ||
|
||
public override string Name | ||
{ | ||
get; | ||
set; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\SiaNet.Engine\SiaNet.Engine.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using SiaNet.Engine; | ||
using SiaNet.Engine.Layers; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace SiaNet.Backend.Torch | ||
{ | ||
public class SiaNetActivations : ActivationFunc | ||
{ | ||
SiaNetBackend backend = null; | ||
public SiaNetActivations(IBackend backend) | ||
: base(backend) | ||
{ | ||
backend = K; | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.