| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9cd8681 commit b2fe5ca
19 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -377,8 +377,8 @@ public static Tensor[] _AvgPoolGrad(Operation op, Tensor[] grads) | |||
| 377 | 377 | grad, | |
| 378 | 378 | op.get_attr_list<int>("ksize"), | |
| 379 | 379 | op.get_attr_list<int>("strides"), | |
| 380 | - op.get_attr("padding").ToString(), | ||
| 381 | - op.get_attr("data_format").ToString()) | ||
| 380 | + op.get_attr<string>("padding"), | ||
| 381 | + op.get_attr<string>("data_format")) | ||
| 382 | 382 | }; | |
| 383 | 383 | } | |
| 384 | 384 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -206,12 +206,11 @@ internal unsafe TF_DataType _get_attr_type(string name) | |||
| 206 | 206 | return result; | |
| 207 | 207 | } | |
| 208 | 208 | ||
| 209 | - internal unsafe int _get_attr_int(string name) | ||
| 209 | + internal unsafe long _get_attr_int(string name) | ||
| 210 | 210 | { | |
| 211 | - Status status = new(); | ||
| 212 | - int result; | ||
| 213 | - c_api.TF_OperationGetAttrInt(_handle, name, new IntPtr(&result), status); | ||
| 214 | - status.Check(true); | ||
| 211 | + long result; | ||
| 212 | + c_api.TF_OperationGetAttrInt(_handle, name, new IntPtr(&result), tf.Status); | ||
| 213 | + tf.Status.Check(true); | ||
| 215 | 214 | return result; | |
| 216 | 215 | } | |
| 217 | 216 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,11 +4,11 @@ | |||
| 4 | 4 | <TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks> | |
| 5 | 5 | <AssemblyName>Tensorflow.Binding</AssemblyName> | |
| 6 | 6 | <RootNamespace>Tensorflow</RootNamespace> | |
| 7 | - <TargetTensorFlow>2.10.0</TargetTensorFlow> | ||
| 8 | - <Version>0.110.1</Version> | ||
| 7 | + <TargetTensorFlow>2.11.0</TargetTensorFlow> | ||
| 8 | + <Version>0.110.2</Version> | ||
| 9 | 9 | <LangVersion>10.0</LangVersion> | |
| 10 | 10 | <Nullable>enable</Nullable> | |
| 11 | - <Authors>Haiping Chen, Meinrad Recheis, Eli Belash</Authors> | ||
| 11 | + <Authors>Haiping Chen, Eli Belash, Yaohui Liu, Meinrad Recheis</Authors> | ||
| 12 | 12 | <Company>SciSharp STACK</Company> | |
| 13 | 13 | <GeneratePackageOnBuild>False</GeneratePackageOnBuild> | |
| 14 | 14 | <Copyright>Apache 2.0, Haiping Chen $([System.DateTime]::UtcNow.ToString(yyyy))</Copyright> | |
@@ -23,7 +23,8 @@ https://tensorflownet.readthedocs.io</Description> | |||
| 23 | 23 | <AssemblyVersion>0.110.1.0</AssemblyVersion> | |
| 24 | 24 | <PackageReleaseNotes> | |
| 25 | 25 | tf.net 0.110.x and above are based on tensorflow native 2.11.0 | |
| 26 | - * RNN, LSTM works. | ||
| 26 | + * Support RNN, LSTM model. | ||
| 27 | + * Support Transformer model. | ||
| 27 | 28 | ||
| 28 | 29 | tf.net 0.100.x and above are based on tensorflow native 2.10.0 | |
| 29 | 30 | ||
@@ -42,12 +43,11 @@ https://tensorflownet.readthedocs.io</Description> | |||
| 42 | 43 | tf.net 0.10x.x aligns with TensorFlow v2.10.x native library. | |
| 43 | 44 | tf.net 0.11x.x aligns with TensorFlow v2.11.x native library. | |
| 44 | 45 | </PackageReleaseNotes> | |
| 45 | - <FileVersion>0.110.1.0</FileVersion> | ||
| 46 | + <FileVersion>0.110.2.0</FileVersion> | ||
| 46 | 47 | <PackageLicenseFile>LICENSE</PackageLicenseFile> | |
| 47 | 48 | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | |
| 48 | 49 | <PackageOutputPath>packages</PackageOutputPath> | |
| 49 | 50 | <SignAssembly>true</SignAssembly> | |
| 50 | - <AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile> | ||
| 51 | 51 | <Platforms>AnyCPU;x64</Platforms> | |
| 52 | 52 | <PackageId>TensorFlow.NET</PackageId> | |
| 53 | 53 | <Configurations>Debug;Release;GPU</Configurations> | |
@@ -88,6 +88,66 @@ https://tensorflownet.readthedocs.io</Description> | |||
| 88 | 88 | <DefineConstants /> | |
| 89 | 89 | </PropertyGroup> | |
| 90 | 90 | ||
| 91 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'"> | ||
| 92 | + <WarningLevel>1</WarningLevel> | ||
| 93 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 94 | + </PropertyGroup> | ||
| 95 | + | ||
| 96 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|x64'"> | ||
| 97 | + <WarningLevel>1</WarningLevel> | ||
| 98 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 99 | + </PropertyGroup> | ||
| 100 | + | ||
| 101 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'"> | ||
| 102 | + <WarningLevel>1</WarningLevel> | ||
| 103 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 104 | + </PropertyGroup> | ||
| 105 | + | ||
| 106 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|x64'"> | ||
| 107 | + <WarningLevel>1</WarningLevel> | ||
| 108 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 109 | + </PropertyGroup> | ||
| 110 | + | ||
| 111 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='GPU|netstandard2.0|AnyCPU'"> | ||
| 112 | + <WarningLevel>1</WarningLevel> | ||
| 113 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 114 | + </PropertyGroup> | ||
| 115 | + | ||
| 116 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='GPU|netstandard2.0|x64'"> | ||
| 117 | + <WarningLevel>1</WarningLevel> | ||
| 118 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 119 | + </PropertyGroup> | ||
| 120 | + | ||
| 121 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0|AnyCPU'"> | ||
| 122 | + <WarningLevel>1</WarningLevel> | ||
| 123 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 124 | + </PropertyGroup> | ||
| 125 | + | ||
| 126 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0|x64'"> | ||
| 127 | + <WarningLevel>1</WarningLevel> | ||
| 128 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 129 | + </PropertyGroup> | ||
| 130 | + | ||
| 131 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0|AnyCPU'"> | ||
| 132 | + <WarningLevel>1</WarningLevel> | ||
| 133 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 134 | + </PropertyGroup> | ||
| 135 | + | ||
| 136 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net6.0|x64'"> | ||
| 137 | + <WarningLevel>1</WarningLevel> | ||
| 138 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 139 | + </PropertyGroup> | ||
| 140 | + | ||
| 141 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='GPU|net6.0|AnyCPU'"> | ||
| 142 | + <WarningLevel>1</WarningLevel> | ||
| 143 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 144 | + </PropertyGroup> | ||
| 145 | + | ||
| 146 | + <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='GPU|net6.0|x64'"> | ||
| 147 | + <WarningLevel>1</WarningLevel> | ||
| 148 | + <NoWarn>$(NoWarn),1570,1573,1591,1712,8603,8604,8625,CS0612</NoWarn> | ||
| 149 | + </PropertyGroup> | ||
| 150 | + | ||
| 91 | 151 | <ItemGroup> | |
| 92 | 152 | <Compile Remove="Distribute\**" /> | |
| 93 | 153 | <Compile Remove="Models\**" /> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -180,8 +180,7 @@ public Tensor slice(int start) | |||
| 180 | 180 | array_ops.stack(end.ToArray()), | |
| 181 | 181 | array_ops.stack(strides.ToArray())); | |
| 182 | 182 | ||
| 183 | - return gen_array_ops.strided_slice( | ||
| 184 | - this, | ||
| 183 | + return array_ops.strided_slice(this, | ||
| 185 | 184 | packed_begin, | |
| 186 | 185 | packed_end, | |
| 187 | 186 | packed_strides, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,6 @@ public class Activations: IActivationsApi | |||
| 44 | 44 | /// <summary> | |
| 45 | 45 | /// Register the name-activation mapping in this static class. | |
| 46 | 46 | /// </summary> | |
| 47 | - /// <param name="name"></param> | ||
| 48 | 47 | /// <param name="activation"></param> | |
| 49 | 48 | private static void RegisterActivation(Activation activation) | |
| 50 | 49 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,6 @@ namespace Tensorflow.Keras.Callbacks; | |||
| 5 | 5 | /// <summary> | |
| 6 | 6 | /// Stop training when a monitored metric has stopped improving. | |
| 7 | 7 | /// </summary> | |
| 8 | - /// <param name="parameters"></param> | ||
| 9 | - /// <param name="monitor"></param> | ||
| 10 | - | ||
| 11 | 8 | public class EarlyStopping: ICallback | |
| 12 | 9 | { | |
| 13 | 10 | int _paitence; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,7 +52,7 @@ Tensors permutation(Tensors tensor) | |||
| 52 | 52 | /// <summary> | |
| 53 | 53 | /// Convert a Tensor of indices into a dataset of batched indices. | |
| 54 | 54 | /// </summary> | |
| 55 | - /// <param name="tensor"></param> | ||
| 55 | + /// <param name="indices"></param> | ||
| 56 | 56 | /// <returns></returns> | |
| 57 | 57 | IDatasetV2 slice_batch_indices(Tensor indices) | |
| 58 | 58 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ public partial class Layer | |||
| 10 | 10 | /// Wraps `call`, applying pre- and post-processing steps. | |
| 11 | 11 | /// </summary> | |
| 12 | 12 | /// <param name="inputs"></param> | |
| 13 | - /// <param name="state"></param> | ||
| 13 | + /// <param name="states"></param> | ||
| 14 | 14 | /// <param name="training"></param> | |
| 15 | 15 | /// <returns></returns> | |
| 16 | 16 | public virtual Tensors Apply(Tensors inputs, Tensors states = null, bool? training = false, IOptionalArgs? optional_args = null) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,22 +1,12 @@ | |||
| 1 | 1 | using System; | |
| 2 | 2 | using Tensorflow.Keras.Utils; | |
| 3 | - using static Tensorflow.Binding; | ||
| 4 | - using static Tensorflow.KerasApi; | ||
| 5 | 3 | ||
| 6 | 4 | namespace Tensorflow.Keras.Engine | |
| 7 | 5 | { | |
| 8 | 6 | public partial class Layer | |
| 9 | 7 | { | |
| 10 | 8 | Tensors FunctionalConstructionCall(Tensors inputs) | |
| 11 | 9 | { | |
| 12 | - bool mask_arg_passed_by_framework = false; | ||
| 13 | - bool training_arg_passed_by_framework = false; | ||
| 14 | - Tensor training_value = null; | ||
| 15 | - if (training_value == null) | ||
| 16 | - { | ||
| 17 | - training_arg_passed_by_framework = true; | ||
| 18 | - } | ||
| 19 | - | ||
| 20 | 10 | if (base_layer_utils.needs_keras_history(inputs)) | |
| 21 | 11 | base_layer_utils.create_keras_history(inputs); | |
| 22 | 12 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ namespace Tensorflow.Keras.Engine | |||
| 15 | 15 | public partial class Model | |
| 16 | 16 | { | |
| 17 | 17 | /// <summary> | |
| 18 | - /// Returns the loss value & metrics values for the model in test mode. | ||
| 18 | + /// Returns the loss value and metrics values for the model in test mode. | ||
| 19 | 19 | /// </summary> | |
| 20 | 20 | /// <param name="x"></param> | |
| 21 | 21 | /// <param name="y"></param> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments