Skip to content

Commit c665cd7

Browse files
committed
use TF 2.5
1 parent 15b37bc commit c665cd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ResNetBlock/ResNetBlock.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public override TensorShape compute_output_shape(TensorShape input_shape) {
5656

5757
public Tensor __call__(Tensor input) => base.__call__(input);
5858

59-
public override Tensor call(IGraphNodeBase input, object? training = null, object? mask = null) {
59+
public override Tensor call(object input, object? training = null, object? mask = null) {
6060
return this.CallImpl((Tensor)input, training);
6161
}
6262
}

ResNetBlock/ResNetSampleProgram.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using tensorflow;
66
using tensorflow.keras;
77
using tensorflow.keras.layers;
8-
using tensorflow.optimizers;
8+
using tensorflow.keras.optimizers;
99

1010
static class ResNetSampleProgram {
1111
public static void Run(int epochs = 5) {

0 commit comments

Comments
 (0)