LostTech.TensorFlow : API Documentation

Type constant_initializer

Namespace tensorflow

Parent Initializer

Interfaces Iconstant_initializer

Initializer that generates tensors with constant values.

The resulting tensor is populated with values of type `dtype`, as specified by arguments `value` following the desired `shape` of the new tensor (see examples below).

The argument `value` can be a constant value, or a list of values of type `dtype`. If `value` is a list, then the length of the list must be less than or equal to the number of elements implied by the desired shape of the tensor. In the case where the total number of elements in `value` is less than the number of elements required by the tensor shape, the last element in `value` will be used to fill the remaining entries. If the total number of elements in `value` is greater than the number of elements required by the tensor shape, the initializer will raise a `ValueError`.

Methods

Properties

Public instance methods

Tensor __call__(IEnumerable<int> shape, DType dtype, _PartitionInfo partition_info, object verify_shape)

Tensor __call__(ValueTuple<int, object> shape, DType dtype, _PartitionInfo partition_info, object verify_shape)

Tensor __call__(TensorShape shape, DType dtype, _PartitionInfo partition_info, object verify_shape)

object __call___dyn(object shape, object dtype, object partition_info, object verify_shape)

Public static methods

constant_initializer NewDyn(ImplicitContainer<T> value, ImplicitContainer<T> dtype, ImplicitContainer<T> verify_shape)

Creates the dynamic loss scale.

Public properties

DType dtype get; set;

object PythonObject get;

object value get; set;