Class Shape
Keras Tensor Shape
Inheritance
Inherited Members
Namespace: Keras
Assembly: Keras.dll
Syntax
public class Shape
Constructors
| Improve this Doc View SourceShape(Int32[])
Initializes a new instance of the Shape class.
Declaration
public Shape(params int[] shape)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | shape | The shape. |
Properties
| Improve this Doc View SourceDimensions
Gets the dimensions.
Declaration
public int[] Dimensions { get; }
Property Value
Type | Description |
---|---|
System.Int32[] | The dimensions. |
Item[Int32]
Gets the System.Int32 with the specified n.
Declaration
public int this[int n] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | The n. |
Property Value
Type | Description |
---|---|
System.Int32 | The System.Int32. |
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
Operators
| Improve this Doc View SourceEquality(Shape, Shape)
Implements the operator ==.
Declaration
public static bool operator ==(Shape a, Shape b)
Parameters
Type | Name | Description |
---|---|---|
Shape | a | a. |
Shape | b | The b. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Implicit(Int32 to Shape)
Performs an implicit conversion from System.ValueTuple`1 to Shape.
Declaration
public static implicit operator Shape(int shape)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | shape | The shape. |
Returns
Type | Description |
---|---|
Shape | The result of the conversion. |
Implicit((Int32, Int32, Int32, Int32, Int32) to Shape)
Performs an implicit conversion from System.ValueTuple`5 to Shape.
Declaration
public static implicit operator Shape((int, int, int, int, int)shape)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32, System.Int32> | shape | The shape. |
Returns
Type | Description |
---|---|
Shape | The result of the conversion. |
Implicit((Int32, Int32, Int32, Int32) to Shape)
Performs an implicit conversion from System.ValueTuple`4 to Shape.
Declaration
public static implicit operator Shape((int, int, int, int)shape)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Int32, System.Int32, System.Int32, System.Int32> | shape | The shape. |
Returns
Type | Description |
---|---|
Shape | The result of the conversion. |
Implicit((Int32, Int32, Int32) to Shape)
Performs an implicit conversion from System.ValueTuple`3 to Shape.
Declaration
public static implicit operator Shape((int, int, int)shape)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Int32, System.Int32, System.Int32> | shape | The shape. |
Returns
Type | Description |
---|---|
Shape | The result of the conversion. |
Implicit((Int32, Int32) to Shape)
Performs an implicit conversion from System.ValueTuple`2 to Shape.
Declaration
public static implicit operator Shape((int, int)shape)
Parameters
Type | Name | Description |
---|---|---|
System.ValueTuple<System.Int32, System.Int32> | shape | The shape. |
Returns
Type | Description |
---|---|
Shape | The result of the conversion. |
Inequality(Shape, Shape)
Implements the operator !=.
Declaration
public static bool operator !=(Shape a, Shape b)
Parameters
Type | Name | Description |
---|---|---|
Shape | a | a. |
Shape | b | The b. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |