| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f3eb31f commit 3231500
133 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - using Tensorflow.Numpy; | ||
| 1 | + using Tensorflow.NumPy; | ||
| 2 | 2 | using System; | |
| 3 | 3 | using Tensorflow.Keras.ArgsDefinition; | |
| 4 | 4 | using Tensorflow.Keras.Engine.DataAdapters; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - using Tensorflow.Numpy; | ||
| 1 | + using Tensorflow.NumPy; | ||
| 2 | 2 | using System; | |
| 3 | 3 | using System.Collections.Generic; | |
| 4 | 4 | using System.Text; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - using Tensorflow.Numpy; | ||
| 1 | + using Tensorflow.NumPy; | ||
| 2 | 2 | using System; | |
| 3 | 3 | using static Tensorflow.Binding; | |
| 4 | 4 | using static Tensorflow.KerasApi; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | using System.Diagnostics; | |
| 3 | 3 | using System.Threading; | |
| 4 | 4 | using System.Threading.Tasks; | |
| 5 | - using Tensorflow.Numpy; | ||
| 5 | + using Tensorflow.NumPy; | ||
| 6 | 6 | using static Tensorflow.Binding; | |
| 7 | 7 | using static Tensorflow.KerasApi; | |
| 8 | 8 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ You may obtain a copy of the License at | |||
| 14 | 14 | limitations under the License. | |
| 15 | 15 | ******************************************************************************/ | |
| 16 | 16 | ||
| 17 | - using Tensorflow.Numpy; | ||
| 17 | + using Tensorflow.NumPy; | ||
| 18 | 18 | using System.Collections.Generic; | |
| 19 | 19 | using System.Diagnostics; | |
| 20 | 20 | using System.Linq; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,29 @@ | |||
| 1 | + /***************************************************************************** | ||
| 2 | + Copyright 2021 Haiping Chen. All Rights Reserved. | ||
| 3 | + | ||
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + you may not use this file except in compliance with the License. | ||
| 6 | + You may obtain a copy of the License at | ||
| 7 | + | ||
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + | ||
| 10 | + Unless required by applicable law or agreed to in writing, software | ||
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + See the License for the specific language governing permissions and | ||
| 14 | + limitations under the License. | ||
| 15 | + ******************************************************************************/ | ||
| 16 | + | ||
| 17 | + using Tensorflow.NumPy; | ||
| 18 | + | ||
| 19 | + namespace Tensorflow | ||
| 20 | + { | ||
| 21 | + public partial class tensorflow | ||
| 22 | + { | ||
| 23 | + /// <summary> | ||
| 24 | + /// NumPy API on TensorFlow | ||
| 25 | + /// https://www.tensorflow.org/api_docs/python/tf/experimental/numpy | ||
| 26 | + /// </summary> | ||
| 27 | + public NumPyImpl numpy => new NumPyImpl(); | ||
| 28 | + } | ||
| 29 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ You may obtain a copy of the License at | |||
| 14 | 14 | limitations under the License. | |
| 15 | 15 | ******************************************************************************/ | |
| 16 | 16 | ||
| 17 | - using Tensorflow.Numpy; | ||
| 17 | + using Tensorflow.NumPy; | ||
| 18 | 18 | using System; | |
| 19 | 19 | using System.Collections; | |
| 20 | 20 | using System.Collections.Generic; | |
@@ -174,6 +174,9 @@ public static int len(object a) | |||
| 174 | 174 | throw new NotImplementedException("len() not implemented for type: " + a.GetType()); | |
| 175 | 175 | } | |
| 176 | 176 | ||
| 177 | + public static int min(int a, int b) | ||
| 178 | + => Math.Min(a, b); | ||
| 179 | + | ||
| 177 | 180 | public static float min(float a, float b) | |
| 178 | 181 | => Math.Min(a, b); | |
| 179 | 182 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - using Tensorflow.Numpy; | ||
| 1 | + using Tensorflow.NumPy; | ||
| 2 | 2 | ||
| 3 | 3 | namespace Tensorflow | |
| 4 | 4 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - using Tensorflow.Numpy; | ||
| 1 | + using Tensorflow.NumPy; | ||
| 2 | 2 | using System.Collections.Generic; | |
| 3 | 3 | using Tensorflow.Data; | |
| 4 | 4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - using Tensorflow.Numpy; | ||
| 1 | + using Tensorflow.NumPy; | ||
| 2 | 2 | ||
| 3 | 3 | namespace Tensorflow | |
| 4 | 4 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments