Browse Source

feat: update some gen_ops.

tags/v0.110.0-LSTM-Model
Yaohui Liu 2 years ago
parent
commit
0114885ed7
No known key found for this signature in database GPG Key ID: E86D01E1809BD23E
7 changed files with 2450 additions and 121 deletions
  1. +489
    -10
      src/TensorFlowNET.Core/Operations/gen_array_ops.cs
  2. +57
    -0
      src/TensorFlowNET.Core/Operations/gen_functional_ops.cs
  3. +827
    -109
      src/TensorFlowNET.Core/Operations/gen_io_ops.cs
  4. +81
    -0
      src/TensorFlowNET.Core/Operations/gen_list_ops.cs
  5. +586
    -2
      src/TensorFlowNET.Core/Operations/gen_math_ops.cs
  6. +409
    -0
      src/TensorFlowNET.Core/Operations/gen_nn_ops.cs
  7. +1
    -0
      tools/Tensorflow.CodeGen/GenOpsWriter.cs

+ 489
- 10
src/TensorFlowNET.Core/Operations/gen_array_ops.cs
File diff suppressed because it is too large
View File


+ 57
- 0
src/TensorFlowNET.Core/Operations/gen_functional_ops.cs View File

@@ -2,6 +2,7 @@


using Tensorflow.Eager; using Tensorflow.Eager;
using Tensorflow.Contexts; using Tensorflow.Contexts;
using Tensorflow.Exceptions;
using static Tensorflow.Binding; using static Tensorflow.Binding;


namespace Tensorflow; namespace Tensorflow;
@@ -54,6 +55,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "Case", name) { args = new object[] { branch_index, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["branches"] = branches, ["output_shapes"] = output_shapes } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "Case", name) { args = new object[] { branch_index, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["branches"] = branches, ["output_shapes"] = output_shapes } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -115,6 +120,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "DeviceIndex", name) { args = new object[] { }, attrs = new Dictionary<string, object>() { ["device_names"] = device_names } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "DeviceIndex", name) { args = new object[] { }, attrs = new Dictionary<string, object>() { ["device_names"] = device_names } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -172,6 +181,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "FakeParam", name) { args = new object[] { }, attrs = new Dictionary<string, object>() { ["dtype"] = dtype, ["shape"] = shape } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "FakeParam", name) { args = new object[] { }, attrs = new Dictionary<string, object>() { ["dtype"] = dtype, ["shape"] = shape } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -240,6 +253,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "For", name) { args = new object[] { start, limit, delta, input }, attrs = new Dictionary<string, object>() { ["body"] = body } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "For", name) { args = new object[] { start, limit, delta, input }, attrs = new Dictionary<string, object>() { ["body"] = body } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -310,6 +327,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "If", name) { args = new object[] { cond, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["then_branch"] = then_branch, ["else_branch"] = else_branch, ["output_shapes"] = output_shapes } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "If", name) { args = new object[] { cond, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["then_branch"] = then_branch, ["else_branch"] = else_branch, ["output_shapes"] = output_shapes } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -385,6 +406,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "PartitionedCall", name) { args = new object[] { args }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f, ["config"] = config, ["config_proto"] = config_proto, ["executor_type"] = executor_type } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "PartitionedCall", name) { args = new object[] { args }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f, ["config"] = config, ["config_proto"] = config_proto, ["executor_type"] = executor_type } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -462,6 +487,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "RemoteCall", name) { args = new object[] { target, args }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "RemoteCall", name) { args = new object[] { target, args }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -529,6 +558,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatefulPartitionedCall", name) { args = new object[] { args }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f, ["config"] = config, ["config_proto"] = config_proto, ["executor_type"] = executor_type } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatefulPartitionedCall", name) { args = new object[] { args }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f, ["config"] = config, ["config_proto"] = config_proto, ["executor_type"] = executor_type } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -628,6 +661,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatelessCase", name) { args = new object[] { branch_index, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["branches"] = branches, ["output_shapes"] = output_shapes } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatelessCase", name) { args = new object[] { branch_index, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["branches"] = branches, ["output_shapes"] = output_shapes } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -698,6 +735,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatelessIf", name) { args = new object[] { cond, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["then_branch"] = then_branch, ["else_branch"] = else_branch, ["output_shapes"] = output_shapes } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatelessIf", name) { args = new object[] { cond, input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["then_branch"] = then_branch, ["else_branch"] = else_branch, ["output_shapes"] = output_shapes } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -775,6 +816,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatelessWhile", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { ["cond"] = cond, ["body"] = body, ["output_shapes"] = output_shapes, ["parallel_iterations"] = parallel_iterations } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "StatelessWhile", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { ["cond"] = cond, ["body"] = body, ["output_shapes"] = output_shapes, ["parallel_iterations"] = parallel_iterations } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -855,6 +900,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "SymbolicGradient", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "SymbolicGradient", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { ["Tout"] = Tout, ["f"] = f } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -922,6 +971,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "ToBool", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "ToBool", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -991,6 +1044,10 @@ public static class gen_functional_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "While", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { ["cond"] = cond, ["body"] = body, ["output_shapes"] = output_shapes, ["parallel_iterations"] = parallel_iterations } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "While", name) { args = new object[] { input }, attrs = new Dictionary<string, object>() { ["cond"] = cond, ["body"] = body, ["output_shapes"] = output_shapes, ["parallel_iterations"] = parallel_iterations } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }


+ 827
- 109
src/TensorFlowNET.Core/Operations/gen_io_ops.cs
File diff suppressed because it is too large
View File


+ 81
- 0
src/TensorFlowNET.Core/Operations/gen_list_ops.cs View File

@@ -2,6 +2,7 @@


using Tensorflow.Eager; using Tensorflow.Eager;
using Tensorflow.Contexts; using Tensorflow.Contexts;
using Tensorflow.Exceptions;
using static Tensorflow.Binding; using static Tensorflow.Binding;


namespace Tensorflow; namespace Tensorflow;
@@ -35,6 +36,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "EmptyTensorList", name) { args = new object[] { element_shape, max_num_elements }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "EmptyTensorList", name) { args = new object[] { element_shape, max_num_elements }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -98,6 +103,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListConcat", name) { args = new object[] { input_handle }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype, ["element_shape"] = element_shape } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListConcat", name) { args = new object[] { input_handle }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype, ["element_shape"] = element_shape } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -151,6 +160,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListConcatLists", name) { args = new object[] { input_a, input_b }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListConcatLists", name) { args = new object[] { input_a, input_b }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -221,6 +234,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListConcatV2", name) { args = new object[] { input_handle, element_shape, leading_dims }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListConcatV2", name) { args = new object[] { input_handle, element_shape, leading_dims }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -280,6 +297,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListElementShape", name) { args = new object[] { input_handle }, attrs = new Dictionary<string, object>() { ["shape_type"] = shape_type } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListElementShape", name) { args = new object[] { input_handle }, attrs = new Dictionary<string, object>() { ["shape_type"] = shape_type } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -339,6 +360,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListFromTensor", name) { args = new object[] { tensor, element_shape }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListFromTensor", name) { args = new object[] { tensor, element_shape }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -402,6 +427,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListGather", name) { args = new object[] { input_handle, indices, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListGather", name) { args = new object[] { input_handle, indices, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -457,6 +486,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListGetItem", name) { args = new object[] { input_handle, index, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListGetItem", name) { args = new object[] { input_handle, index, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -515,6 +548,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListLength", name) { args = new object[] { input_handle }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListLength", name) { args = new object[] { input_handle }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -576,6 +613,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListPopBack", name) { args = new object[] { input_handle, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListPopBack", name) { args = new object[] { input_handle, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } });
return _fast_path_result; return _fast_path_result;
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -637,6 +678,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListPushBack", name) { args = new object[] { input_handle, tensor }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListPushBack", name) { args = new object[] { input_handle, tensor }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -688,6 +733,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListPushBackBatch", name) { args = new object[] { input_handles, tensor }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListPushBackBatch", name) { args = new object[] { input_handles, tensor }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -748,6 +797,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListReserve", name) { args = new object[] { element_shape, num_elements }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListReserve", name) { args = new object[] { element_shape, num_elements }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -808,6 +861,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListResize", name) { args = new object[] { input_handle, size }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListResize", name) { args = new object[] { input_handle, size }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -872,6 +929,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListScatter", name) { args = new object[] { tensor, indices, element_shape }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListScatter", name) { args = new object[] { tensor, indices, element_shape }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -936,6 +997,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListScatterIntoExistingList", name) { args = new object[] { input_handle, tensor, indices }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListScatterIntoExistingList", name) { args = new object[] { input_handle, tensor, indices }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -1005,6 +1070,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListScatterV2", name) { args = new object[] { tensor, indices, element_shape, num_elements }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListScatterV2", name) { args = new object[] { tensor, indices, element_shape, num_elements }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -1059,6 +1128,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListSetItem", name) { args = new object[] { input_handle, index, item }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListSetItem", name) { args = new object[] { input_handle, index, item }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -1123,6 +1196,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListSplit", name) { args = new object[] { tensor, element_shape, lengths }, attrs = new Dictionary<string, object>() { } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListSplit", name) { args = new object[] { tensor, element_shape, lengths }, attrs = new Dictionary<string, object>() { } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }
@@ -1187,6 +1264,10 @@ public static class gen_list_ops
var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListStack", name) { args = new object[] { input_handle, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype, ["num_elements"] = num_elements } }); var _fast_path_result = tf.Runner.TFE_FastPathExecute(new FastPathOpExecInfo(_ctx, "TensorListStack", name) { args = new object[] { input_handle, element_shape }, attrs = new Dictionary<string, object>() { ["element_dtype"] = element_dtype, ["num_elements"] = num_elements } });
return _fast_path_result[0]; return _fast_path_result[0];
} }
catch (NotOkStatusException ex)
{
throw ex;
}
catch (Exception) catch (Exception)
{ {
} }


+ 586
- 2
src/TensorFlowNET.Core/Operations/gen_math_ops.cs
File diff suppressed because it is too large
View File


+ 409
- 0
src/TensorFlowNET.Core/Operations/gen_nn_ops.cs
File diff suppressed because it is too large
View File


+ 1
- 0
tools/Tensorflow.CodeGen/GenOpsWriter.cs View File

@@ -39,6 +39,7 @@ namespace Tensorflow.CodeGen
// Add commonly used namespaces. // Add commonly used namespaces.
sb.AppendLine("using Tensorflow.Eager;"); sb.AppendLine("using Tensorflow.Eager;");
sb.AppendLine("using Tensorflow.Contexts;"); sb.AppendLine("using Tensorflow.Contexts;");
sb.AppendLine("using Tensorflow.Exceptions;");
sb.AppendLine("using static Tensorflow.Binding;"); sb.AppendLine("using static Tensorflow.Binding;");
sb.AppendLine(); sb.AppendLine();




Loading…
Cancel
Save