public static TensorArray build_ta_with_new_flow(_GraphTensorArray old_ta, Tensor flow) { var new_ta = tf.TensorArray( dtype: old_ta.dtype, infer_shape: old_ta.infer_shape, colocate_with_first_write_call: old_ta.colocate_with_first_write_call); return(new_ta); }
public TensorArray(TF_DataType dtype, Tensor size = default, bool?clear_after_read = null, bool?dynamic_size = null, string tensor_array_name = null, Tensor handle = null, Tensor flow = null, bool infer_shape = true, TensorShape element_shape = null, bool colocate_with_first_write_call = true, string name = null) { _implementation = new _GraphTensorArray(dtype, size: size, dynamic_size: dynamic_size, clear_after_read: clear_after_read, tensor_array_name: tensor_array_name, handle: handle, flow: flow, infer_shape: infer_shape, element_shape: element_shape, colocate_with_first_write_call: colocate_with_first_write_call, name: name); }
public static TensorArray build_ta_with_new_flow(_GraphTensorArray old_ta, Tensor flow) { var impl = old_ta; var new_ta = new TensorArray( dtype: impl.dtype, handle: impl.handle, flow: flow, infer_shape: impl.infer_shape, colocate_with_first_write_call: impl.colocate_with_first_write_call); var new_impl = new_ta._implementation; new_impl._dynamic_size = impl._dynamic_size; new_impl._colocate_with = impl._colocate_with; new_impl._element_shape = impl._element_shape; return(new_ta); }