doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
tf.compat.v1.tpu.shard Shards computation for parallel execution.
tf.compat.v1.tpu.shard(
computation, inputs=None, num_shards=1, input_shard_axes=None,
outputs_from_all_shards=True, output_shard_axes=None, infeed_queue=None,
device_assignment=None, name=None, xla_options=None
)
inputs must be a list of T... | tensorflow.compat.v1.tpu.shard |
tf.compat.v1.tpu.shutdown_system Shuts down a running a distributed TPU system.
tf.compat.v1.tpu.shutdown_system(
job=None
)
Args
job The job (the XXX in TensorFlow device specification /job:XXX) that contains the TPU devices that will be shutdown. If job=None it is assumed there is only one job in the T... | tensorflow.compat.v1.tpu.shutdown_system |
tf.compat.v1.tpu.XLAOptions XLA compilation options.
tf.compat.v1.tpu.XLAOptions(
use_spmd_for_xla_partitioning=True
)
Attributes
use_spmd_for_xla_partitioning Boolean. Whether to use XLA's SPMD partitioner instead of MPMD partitioner when compiler partitioning is requested. | tensorflow.compat.v1.tpu.xlaoptions |
Module: tf.compat.v1.train Support for training models. See the Training guide. Modules experimental module: Public API for tf.train.experimental namespace. queue_runner module: Public API for tf.train.queue_runner namespace. Classes class AdadeltaOptimizer: Optimizer that implements the Adadelta algorithm. class Adagr... | tensorflow.compat.v1.train |
tf.compat.v1.train.AdadeltaOptimizer Optimizer that implements the Adadelta algorithm. Inherits From: Optimizer
tf.compat.v1.train.AdadeltaOptimizer(
learning_rate=0.001, rho=0.95, epsilon=1e-08, use_locking=False,
name='Adadelta'
)
References: ADADELTA - An Adaptive Learning Rate Method: Zeiler, 2012 (pdf)
... | tensorflow.compat.v1.train.adadeltaoptimizer |
tf.compat.v1.train.AdagradDAOptimizer Adagrad Dual Averaging algorithm for sparse linear models. Inherits From: Optimizer
tf.compat.v1.train.AdagradDAOptimizer(
learning_rate, global_step, initial_gradient_squared_accumulator_value=0.1,
l1_regularization_strength=0.0, l2_regularization_strength=0.0,
use_lo... | tensorflow.compat.v1.train.adagraddaoptimizer |
tf.compat.v1.train.AdagradOptimizer Optimizer that implements the Adagrad algorithm. Inherits From: Optimizer
tf.compat.v1.train.AdagradOptimizer(
learning_rate, initial_accumulator_value=0.1, use_locking=False,
name='Adagrad'
)
References: Adaptive Subgradient Methods for Online Learning and Stochastic Optim... | tensorflow.compat.v1.train.adagradoptimizer |
tf.compat.v1.train.AdamOptimizer Optimizer that implements the Adam algorithm. Inherits From: Optimizer
tf.compat.v1.train.AdamOptimizer(
learning_rate=0.001, beta1=0.9, beta2=0.999, epsilon=1e-08, use_locking=False,
name='Adam'
)
References: Adam - A Method for Stochastic Optimization: Kingma et al., 2015 (p... | tensorflow.compat.v1.train.adamoptimizer |
tf.compat.v1.train.add_queue_runner Adds a QueueRunner to a collection in the graph. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.train.queue_runner.add_queue_runner
tf.compat.v1.train.add_queue_runner(
qr, collection=tf.GraphKeys.QUEUE_RUNNERS
)
Wa... | tensorflow.compat.v1.train.add_queue_runner |
tf.compat.v1.train.assert_global_step Asserts global_step_tensor is a scalar int Variable or Tensor.
tf.compat.v1.train.assert_global_step(
global_step_tensor
)
Args
global_step_tensor Tensor to test. | tensorflow.compat.v1.train.assert_global_step |
tf.compat.v1.train.basic_train_loop Basic loop to train a model.
tf.compat.v1.train.basic_train_loop(
supervisor, train_step_fn, args=None, kwargs=None, master=''
)
Calls train_step_fn in a loop to train a model. The function is called as: train_step_fn(session, *args, **kwargs)
It is passed a tf.compat.v1.Sessi... | tensorflow.compat.v1.train.basic_train_loop |
tf.compat.v1.train.batch Creates batches of tensors in tensors. (deprecated)
tf.compat.v1.train.batch(
tensors, batch_size, num_threads=1, capacity=32, enqueue_many=False,
shapes=None, dynamic_pad=False, allow_smaller_final_batch=False,
shared_name=None, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. I... | tensorflow.compat.v1.train.batch |
tf.compat.v1.train.batch_join Runs a list of tensors to fill a queue to create batches of examples. (deprecated)
tf.compat.v1.train.batch_join(
tensors_list, batch_size, capacity=32, enqueue_many=False, shapes=None,
dynamic_pad=False, allow_smaller_final_batch=False, shared_name=None, name=None
)
Warning: THI... | tensorflow.compat.v1.train.batch_join |
tf.compat.v1.train.Checkpoint Groups trackable objects, saving and restoring them.
tf.compat.v1.train.Checkpoint(
**kwargs
)
Checkpoint's constructor accepts keyword arguments whose values are types that contain trackable state, such as tf.compat.v1.train.Optimizer implementations, tf.Variable, tf.keras.Layer imp... | tensorflow.compat.v1.train.checkpoint |
tf.compat.v1.train.checkpoint_exists Checks whether a V1 or V2 checkpoint exists with the specified prefix. (deprecated)
tf.compat.v1.train.checkpoint_exists(
checkpoint_prefix
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use standard file APIs to chec... | tensorflow.compat.v1.train.checkpoint_exists |
tf.compat.v1.train.ChiefSessionCreator Creates a tf.compat.v1.Session for a chief. Inherits From: SessionCreator
tf.compat.v1.train.ChiefSessionCreator(
scaffold=None, master='', config=None, checkpoint_dir=None,
checkpoint_filename_with_path=None
)
Args
scaffold A Scaffold used for gathering or buil... | tensorflow.compat.v1.train.chiefsessioncreator |
tf.compat.v1.train.cosine_decay Applies cosine decay to the learning rate.
tf.compat.v1.train.cosine_decay(
learning_rate, global_step, decay_steps, alpha=0.0, name=None
)
When training a model, it is often recommended to lower the learning rate as the training progresses. This function applies a cosine decay fun... | tensorflow.compat.v1.train.cosine_decay |
tf.compat.v1.train.cosine_decay_restarts Applies cosine decay with restarts to the learning rate.
tf.compat.v1.train.cosine_decay_restarts(
learning_rate, global_step, first_decay_steps, t_mul=2.0, m_mul=1.0, alpha=0.0,
name=None
)
When training a model, it is often recommended to lower the learning rate as t... | tensorflow.compat.v1.train.cosine_decay_restarts |
tf.compat.v1.train.create_global_step Create global step tensor in graph.
tf.compat.v1.train.create_global_step(
graph=None
)
Args
graph The graph in which to create the global step tensor. If missing, use default graph.
Returns Global step tensor.
Raises
ValueError if global step t... | tensorflow.compat.v1.train.create_global_step |
tf.compat.v1.train.do_quantize_training_on_graphdef A general quantization scheme is being developed in tf.contrib.quantize. (deprecated)
tf.compat.v1.train.do_quantize_training_on_graphdef(
input_graph, num_bits
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for upda... | tensorflow.compat.v1.train.do_quantize_training_on_graphdef |
Module: tf.compat.v1.train.experimental Public API for tf.train.experimental namespace. Classes class DynamicLossScale: Loss scale that dynamically adjusts itself. class FixedLossScale: Loss scale with a fixed value. class LossScale: Base class for all TF1 loss scales. class MixedPrecisionLossScaleOptimizer: An optimiz... | tensorflow.compat.v1.train.experimental |
tf.compat.v1.train.exponential_decay Applies exponential decay to the learning rate.
tf.compat.v1.train.exponential_decay(
learning_rate, global_step, decay_steps, decay_rate, staircase=False, name=None
)
When training a model, it is often recommended to lower the learning rate as the training progresses. This fu... | tensorflow.compat.v1.train.exponential_decay |
tf.compat.v1.train.export_meta_graph Returns MetaGraphDef proto.
tf.compat.v1.train.export_meta_graph(
filename=None, meta_info_def=None, graph_def=None, saver_def=None,
collection_list=None, as_text=False, graph=None, export_scope=None,
clear_devices=False, clear_extraneous_savers=False, strip_default_att... | tensorflow.compat.v1.train.export_meta_graph |
tf.compat.v1.train.FtrlOptimizer Optimizer that implements the FTRL algorithm. Inherits From: Optimizer
tf.compat.v1.train.FtrlOptimizer(
learning_rate, learning_rate_power=-0.5, initial_accumulator_value=0.1,
l1_regularization_strength=0.0, l2_regularization_strength=0.0,
use_locking=False, name='Ftrl', a... | tensorflow.compat.v1.train.ftrloptimizer |
tf.compat.v1.train.generate_checkpoint_state_proto Generates a checkpoint state proto.
tf.compat.v1.train.generate_checkpoint_state_proto(
save_dir, model_checkpoint_path, all_model_checkpoint_paths=None,
all_model_checkpoint_timestamps=None, last_preserved_timestamp=None
)
Args
save_dir Directory wh... | tensorflow.compat.v1.train.generate_checkpoint_state_proto |
tf.compat.v1.train.get_checkpoint_mtimes Returns the mtimes (modification timestamps) of the checkpoints. (deprecated)
tf.compat.v1.train.get_checkpoint_mtimes(
checkpoint_prefixes
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use standard file utilitie... | tensorflow.compat.v1.train.get_checkpoint_mtimes |
tf.compat.v1.train.get_global_step Get the global step tensor.
tf.compat.v1.train.get_global_step(
graph=None
)
The global step tensor must be an integer variable. We first try to find it in the collection GLOBAL_STEP, or by name global_step:0.
Args
graph The graph to find the global step in. If missing,... | tensorflow.compat.v1.train.get_global_step |
tf.compat.v1.train.get_or_create_global_step Returns and create (if necessary) the global step tensor.
tf.compat.v1.train.get_or_create_global_step(
graph=None
)
Args
graph The graph in which to create the global step tensor. If missing, use default graph.
Returns The global step tensor. | tensorflow.compat.v1.train.get_or_create_global_step |
tf.compat.v1.train.global_step Small helper to get the global step.
tf.compat.v1.train.global_step(
sess, global_step_tensor
)
# Create a variable to hold the global_step.
global_step_tensor = tf.Variable(10, trainable=False, name='global_step')
# Create a session.
sess = tf.compat.v1.Session()
# Initialize the v... | tensorflow.compat.v1.train.global_step |
tf.compat.v1.train.GradientDescentOptimizer Optimizer that implements the gradient descent algorithm. Inherits From: Optimizer
tf.compat.v1.train.GradientDescentOptimizer(
learning_rate, use_locking=False, name='GradientDescent'
)
Args
learning_rate A Tensor or a floating point value. The learning rate t... | tensorflow.compat.v1.train.gradientdescentoptimizer |
tf.compat.v1.train.import_meta_graph Recreates a Graph saved in a MetaGraphDef proto.
tf.compat.v1.train.import_meta_graph(
meta_graph_or_file, clear_devices=False, import_scope=None, **kwargs
)
This function takes a MetaGraphDef protocol buffer as input. If the argument is a file containing a MetaGraphDef protoc... | tensorflow.compat.v1.train.import_meta_graph |
tf.compat.v1.train.init_from_checkpoint Replaces tf.Variable initializers so they load from a checkpoint file.
tf.compat.v1.train.init_from_checkpoint(
ckpt_dir_or_file, assignment_map
)
Values are not loaded immediately, but when the initializer is run (typically by running a tf.compat.v1.global_variables_initia... | tensorflow.compat.v1.train.init_from_checkpoint |
tf.compat.v1.train.input_producer Output the rows of input_tensor to a queue for an input pipeline. (deprecated)
tf.compat.v1.train.input_producer(
input_tensor, element_shape=None, num_epochs=None, shuffle=True, seed=None,
capacity=32, shared_name=None, summary_name=None, name=None, cancel_op=None
)
Warning:... | tensorflow.compat.v1.train.input_producer |
tf.compat.v1.train.inverse_time_decay Applies inverse time decay to the initial learning rate.
tf.compat.v1.train.inverse_time_decay(
learning_rate, global_step, decay_steps, decay_rate, staircase=False, name=None
)
When training a model, it is often recommended to lower the learning rate as the training progress... | tensorflow.compat.v1.train.inverse_time_decay |
tf.compat.v1.train.limit_epochs Returns tensor num_epochs times and then raises an OutOfRange error. (deprecated)
tf.compat.v1.train.limit_epochs(
tensor, num_epochs=None, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Queue-based input pipelin... | tensorflow.compat.v1.train.limit_epochs |
tf.compat.v1.train.linear_cosine_decay Applies linear cosine decay to the learning rate.
tf.compat.v1.train.linear_cosine_decay(
learning_rate, global_step, decay_steps, num_periods=0.5, alpha=0.0, beta=0.001,
name=None
)
Note that linear cosine decay is more aggressive than cosine decay and larger initial le... | tensorflow.compat.v1.train.linear_cosine_decay |
tf.compat.v1.train.LooperThread A thread that runs code repeatedly, optionally on a timer.
tf.compat.v1.train.LooperThread(
coord, timer_interval_secs, target=None, args=None, kwargs=None
)
This thread class is intended to be used with a Coordinator. It repeatedly runs code specified either as target and args or ... | tensorflow.compat.v1.train.looperthread |
tf.compat.v1.train.maybe_batch Conditionally creates batches of tensors based on keep_input. (deprecated)
tf.compat.v1.train.maybe_batch(
tensors, keep_input, batch_size, num_threads=1, capacity=32, enqueue_many=False,
shapes=None, dynamic_pad=False, allow_smaller_final_batch=False,
shared_name=None, name=... | tensorflow.compat.v1.train.maybe_batch |
tf.compat.v1.train.maybe_batch_join Runs a list of tensors to conditionally fill a queue to create batches. (deprecated)
tf.compat.v1.train.maybe_batch_join(
tensors_list, keep_input, batch_size, capacity=32, enqueue_many=False,
shapes=None, dynamic_pad=False, allow_smaller_final_batch=False,
shared_name=N... | tensorflow.compat.v1.train.maybe_batch_join |
tf.compat.v1.train.maybe_shuffle_batch Creates batches by randomly shuffling conditionally-enqueued tensors. (deprecated)
tf.compat.v1.train.maybe_shuffle_batch(
tensors, batch_size, capacity, min_after_dequeue, keep_input, num_threads=1,
seed=None, enqueue_many=False, shapes=None, allow_smaller_final_batch=Fa... | tensorflow.compat.v1.train.maybe_shuffle_batch |
tf.compat.v1.train.maybe_shuffle_batch_join Create batches by randomly shuffling conditionally-enqueued tensors. (deprecated)
tf.compat.v1.train.maybe_shuffle_batch_join(
tensors_list, batch_size, capacity, min_after_dequeue, keep_input, seed=None,
enqueue_many=False, shapes=None, allow_smaller_final_batch=Fal... | tensorflow.compat.v1.train.maybe_shuffle_batch_join |
tf.compat.v1.train.MomentumOptimizer Optimizer that implements the Momentum algorithm. Inherits From: Optimizer
tf.compat.v1.train.MomentumOptimizer(
learning_rate, momentum, use_locking=False, name='Momentum',
use_nesterov=False
)
Computes (if use_nesterov = False): accumulation = momentum * accumulation + g... | tensorflow.compat.v1.train.momentumoptimizer |
tf.compat.v1.train.MonitoredSession Session-like object that handles initialization, recovery and hooks.
tf.compat.v1.train.MonitoredSession(
session_creator=None, hooks=None, stop_grace_period_secs=120
)
Example usage: saver_hook = CheckpointSaverHook(...)
summary_hook = SummarySaverHook(...)
with MonitoredSessi... | tensorflow.compat.v1.train.monitoredsession |
tf.compat.v1.train.MonitoredSession.StepContext Control flow instrument for the step_fn from run_step_fn(). View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.train.SingularMonitoredSession.StepContext
tf.compat.v1.train.MonitoredSession.StepContext(
session, run_with_... | tensorflow.compat.v1.train.monitoredsession.stepcontext |
tf.compat.v1.train.MonitoredTrainingSession Creates a MonitoredSession for training.
tf.compat.v1.train.MonitoredTrainingSession(
master='', is_chief=True, checkpoint_dir=None, scaffold=None,
hooks=None, chief_only_hooks=None, save_checkpoint_secs=USE_DEFAULT,
save_summaries_steps=USE_DEFAULT, save_summari... | tensorflow.compat.v1.train.monitoredtrainingsession |
tf.compat.v1.train.natural_exp_decay Applies natural exponential decay to the initial learning rate.
tf.compat.v1.train.natural_exp_decay(
learning_rate, global_step, decay_steps, decay_rate, staircase=False, name=None
)
When training a model, it is often recommended to lower the learning rate as the training pro... | tensorflow.compat.v1.train.natural_exp_decay |
tf.compat.v1.train.NewCheckpointReader A function that returns a CheckPointReader.
tf.compat.v1.train.NewCheckpointReader(
filepattern
)
Args
filepattern The filename.
Returns A CheckpointReader object. | tensorflow.compat.v1.train.newcheckpointreader |
tf.compat.v1.train.noisy_linear_cosine_decay Applies noisy linear cosine decay to the learning rate.
tf.compat.v1.train.noisy_linear_cosine_decay(
learning_rate, global_step, decay_steps, initial_variance=1.0,
variance_decay=0.55, num_periods=0.5, alpha=0.0, beta=0.001, name=None
)
Note that linear cosine dec... | tensorflow.compat.v1.train.noisy_linear_cosine_decay |
tf.compat.v1.train.Optimizer Base class for optimizers.
tf.compat.v1.train.Optimizer(
use_locking, name
)
This class defines the API to add Ops to train a model. You never use this class directly, but instead instantiate one of its subclasses such as GradientDescentOptimizer, AdagradOptimizer, or MomentumOptimize... | tensorflow.compat.v1.train.optimizer |
tf.compat.v1.train.piecewise_constant Piecewise constant from boundaries and interval values. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.train.piecewise_constant_decay
tf.compat.v1.train.piecewise_constant(
x, boundaries, values, name=None
)
Example: use a lea... | tensorflow.compat.v1.train.piecewise_constant |
tf.compat.v1.train.polynomial_decay Applies a polynomial decay to the learning rate.
tf.compat.v1.train.polynomial_decay(
learning_rate, global_step, decay_steps, end_learning_rate=0.0001, power=1.0,
cycle=False, name=None
)
It is commonly observed that a monotonically decreasing learning rate, whose degree o... | tensorflow.compat.v1.train.polynomial_decay |
tf.compat.v1.train.ProximalAdagradOptimizer Optimizer that implements the Proximal Adagrad algorithm. Inherits From: Optimizer
tf.compat.v1.train.ProximalAdagradOptimizer(
learning_rate, initial_accumulator_value=0.1, l1_regularization_strength=0.0,
l2_regularization_strength=0.0, use_locking=False,
name='... | tensorflow.compat.v1.train.proximaladagradoptimizer |
tf.compat.v1.train.ProximalGradientDescentOptimizer Optimizer that implements the proximal gradient descent algorithm. Inherits From: Optimizer
tf.compat.v1.train.ProximalGradientDescentOptimizer(
learning_rate, l1_regularization_strength=0.0, l2_regularization_strength=0.0,
use_locking=False, name='ProximalGr... | tensorflow.compat.v1.train.proximalgradientdescentoptimizer |
tf.compat.v1.train.QueueRunner Holds a list of enqueue operations for a queue, each to be run in a thread. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.train.queue_runner.QueueRunner
tf.compat.v1.train.QueueRunner(
queue=None, enqueue_ops=None, close_op=None, can... | tensorflow.compat.v1.train.queuerunner |
Module: tf.compat.v1.train.queue_runner Public API for tf.train.queue_runner namespace. Classes class QueueRunner: Holds a list of enqueue operations for a queue, each to be run in a thread. Functions add_queue_runner(...): Adds a QueueRunner to a collection in the graph. (deprecated) start_queue_runners(...): Starts a... | tensorflow.compat.v1.train.queue_runner |
tf.compat.v1.train.range_input_producer Produces the integers from 0 to limit-1 in a queue. (deprecated)
tf.compat.v1.train.range_input_producer(
limit, num_epochs=None, shuffle=True, seed=None, capacity=32, shared_name=None,
name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future ver... | tensorflow.compat.v1.train.range_input_producer |
tf.compat.v1.train.remove_checkpoint Removes a checkpoint given by checkpoint_prefix. (deprecated)
tf.compat.v1.train.remove_checkpoint(
checkpoint_prefix, checkpoint_format_version=tf.train.SaverDef.V2,
meta_graph_suffix='meta'
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. I... | tensorflow.compat.v1.train.remove_checkpoint |
tf.compat.v1.train.replica_device_setter Return a device function to use when building a Graph for replicas.
tf.compat.v1.train.replica_device_setter(
ps_tasks=0, ps_device='/job:ps',
worker_device='/job:worker', merge_devices=True, cluster=None,
ps_ops=None, ps_strategy=None
)
Device Functions are used i... | tensorflow.compat.v1.train.replica_device_setter |
tf.compat.v1.train.RMSPropOptimizer Optimizer that implements the RMSProp algorithm (Tielemans et al. Inherits From: Optimizer
tf.compat.v1.train.RMSPropOptimizer(
learning_rate, decay=0.9, momentum=0.0, epsilon=1e-10, use_locking=False,
centered=False, name='RMSProp'
)
2012). References: Coursera slide 29: H... | tensorflow.compat.v1.train.rmspropoptimizer |
tf.compat.v1.train.Saver Saves and restores variables.
tf.compat.v1.train.Saver(
var_list=None, reshape=False, sharded=False, max_to_keep=5,
keep_checkpoint_every_n_hours=10000.0, name=None, restore_sequentially=False,
saver_def=None, builder=None, defer_build=False, allow_empty=False,
write_version=tf... | tensorflow.compat.v1.train.saver |
tf.compat.v1.train.SaverDef A ProtocolMessage
Attributes
filename_tensor_name string filename_tensor_name
keep_checkpoint_every_n_hours float keep_checkpoint_every_n_hours
max_to_keep int32 max_to_keep
restore_op_name string restore_op_name
save_tensor_name string save_tensor_name
s... | tensorflow.compat.v1.train.saverdef |
tf.compat.v1.train.Scaffold Structure to create or gather pieces commonly needed to train a model.
tf.compat.v1.train.Scaffold(
init_op=None, init_feed_dict=None, init_fn=None, ready_op=None,
ready_for_local_init_op=None, local_init_op=None, summary_op=None, saver=None,
copy_from_scaffold=None, local_init_... | tensorflow.compat.v1.train.scaffold |
tf.compat.v1.train.sdca_fprint Computes fingerprints of the input strings.
tf.compat.v1.train.sdca_fprint(
input, name=None
)
Args
input A Tensor of type string. vector of strings to compute fingerprints on.
name A name for the operation (optional).
Returns A Tensor of type int64. | tensorflow.compat.v1.train.sdca_fprint |
tf.compat.v1.train.sdca_optimizer Distributed version of Stochastic Dual Coordinate Ascent (SDCA) optimizer for
tf.compat.v1.train.sdca_optimizer(
sparse_example_indices, sparse_feature_indices, sparse_feature_values,
dense_features, example_weights, example_labels, sparse_indices, sparse_weights,
dense_... | tensorflow.compat.v1.train.sdca_optimizer |
tf.compat.v1.train.sdca_shrink_l1 Applies L1 regularization shrink step on the parameters.
tf.compat.v1.train.sdca_shrink_l1(
weights, l1, l2, name=None
)
Args
weights A list of Tensor objects with type mutable float32. a list of vectors where each value is the weight associated with a feature group.
... | tensorflow.compat.v1.train.sdca_shrink_l1 |
tf.compat.v1.train.SessionCreator A factory for tf.Session. Methods create_session View source
@abc.abstractmethod
create_session() | tensorflow.compat.v1.train.sessioncreator |
tf.compat.v1.train.SessionManager Training helper that restores from checkpoint and creates session.
tf.compat.v1.train.SessionManager(
local_init_op=None, ready_op=None, ready_for_local_init_op=None, graph=None,
recovery_wait_secs=30, local_init_run_options=None, local_init_feed_dict=None
)
This class is a s... | tensorflow.compat.v1.train.sessionmanager |
tf.compat.v1.train.shuffle_batch Creates batches by randomly shuffling tensors. (deprecated)
tf.compat.v1.train.shuffle_batch(
tensors, batch_size, capacity, min_after_dequeue, num_threads=1, seed=None,
enqueue_many=False, shapes=None, allow_smaller_final_batch=False,
shared_name=None, name=None
)
Warning... | tensorflow.compat.v1.train.shuffle_batch |
tf.compat.v1.train.shuffle_batch_join Create batches by randomly shuffling tensors. (deprecated)
tf.compat.v1.train.shuffle_batch_join(
tensors_list, batch_size, capacity, min_after_dequeue, seed=None,
enqueue_many=False, shapes=None, allow_smaller_final_batch=False,
shared_name=None, name=None
)
Warning:... | tensorflow.compat.v1.train.shuffle_batch_join |
tf.compat.v1.train.SingularMonitoredSession Session-like object that handles initialization, restoring, and hooks.
tf.compat.v1.train.SingularMonitoredSession(
hooks=None, scaffold=None, master='', config=None,
checkpoint_dir=None, stop_grace_period_secs=120,
checkpoint_filename_with_path=None
)
Please no... | tensorflow.compat.v1.train.singularmonitoredsession |
tf.compat.v1.train.slice_input_producer Produces a slice of each Tensor in tensor_list. (deprecated)
tf.compat.v1.train.slice_input_producer(
tensor_list, num_epochs=None, shuffle=True, seed=None, capacity=32,
shared_name=None, name=None
)
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future v... | tensorflow.compat.v1.train.slice_input_producer |
tf.compat.v1.train.start_queue_runners Starts all queue runners collected in the graph. (deprecated) View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.train.queue_runner.start_queue_runners
tf.compat.v1.train.start_queue_runners(
sess=None, coord=None, daemon=True, st... | tensorflow.compat.v1.train.start_queue_runners |
tf.compat.v1.train.string_input_producer Output strings (e.g. filenames) to a queue for an input pipeline. (deprecated)
tf.compat.v1.train.string_input_producer(
string_tensor, num_epochs=None, shuffle=True, seed=None, capacity=32,
shared_name=None, name=None, cancel_op=None
)
Warning: THIS FUNCTION IS DEPREC... | tensorflow.compat.v1.train.string_input_producer |
tf.compat.v1.train.summary_iterator Returns a iterator for reading Event protocol buffers from an event file.
tf.compat.v1.train.summary_iterator(
path
)
You can use this function to read events written to an event file. It returns a Python iterator that yields Event protocol buffers. Example: Print the contents ... | tensorflow.compat.v1.train.summary_iterator |
tf.compat.v1.train.Supervisor A training helper that checkpoints models and computes summaries.
tf.compat.v1.train.Supervisor(
graph=None, ready_op=USE_DEFAULT, ready_for_local_init_op=USE_DEFAULT,
is_chief=True, init_op=USE_DEFAULT, init_feed_dict=None,
local_init_op=USE_DEFAULT, logdir=None, summary_op=U... | tensorflow.compat.v1.train.supervisor |
tf.compat.v1.train.SyncReplicasOptimizer Class to synchronize, aggregate gradients and pass them to the optimizer. Inherits From: Optimizer
tf.compat.v1.train.SyncReplicasOptimizer(
opt, replicas_to_aggregate, total_num_replicas=None, variable_averages=None,
variables_to_average=None, use_locking=False, name='... | tensorflow.compat.v1.train.syncreplicasoptimizer |
tf.compat.v1.train.update_checkpoint_state Updates the content of the 'checkpoint' file. (deprecated)
tf.compat.v1.train.update_checkpoint_state(
save_dir, model_checkpoint_path, all_model_checkpoint_paths=None,
latest_filename=None, all_model_checkpoint_timestamps=None,
last_preserved_timestamp=None
)
Wa... | tensorflow.compat.v1.train.update_checkpoint_state |
tf.compat.v1.train.warm_start Warm-starts a model using the given settings.
tf.compat.v1.train.warm_start(
ckpt_to_initialize_from, vars_to_warm_start='.*',
var_name_to_vocab_info=None, var_name_to_prev_var_name=None
)
If you are using a tf.estimator.Estimator, this will automatically be called during trainin... | tensorflow.compat.v1.train.warm_start |
tf.compat.v1.train.WorkerSessionCreator Creates a tf.compat.v1.Session for a worker. Inherits From: SessionCreator
tf.compat.v1.train.WorkerSessionCreator(
scaffold=None, master='', config=None, max_wait_secs=(30 * 60)
)
Args
scaffold A Scaffold used for gathering or building supportive ops. If not speci... | tensorflow.compat.v1.train.workersessioncreator |
tf.compat.v1.trainable_variables Returns all variables created with trainable=True.
tf.compat.v1.trainable_variables(
scope=None
)
When passed trainable=True, the Variable() constructor automatically adds new variables to the graph collection GraphKeys.TRAINABLE_VARIABLES. This convenience function returns the co... | tensorflow.compat.v1.trainable_variables |
tf.compat.v1.transpose Transposes a.
tf.compat.v1.transpose(
a, perm=None, name='transpose', conjugate=False
)
Permutes the dimensions according to perm. The returned tensor's dimension i will correspond to the input dimension perm[i]. If perm is not given, it is set to (n-1...0), where n is the rank of the input... | tensorflow.compat.v1.transpose |
tf.compat.v1.truncated_normal_initializer Initializer that generates a truncated normal distribution. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.initializers.truncated_normal
tf.compat.v1.truncated_normal_initializer(
mean=0.0, stddev=1.0, seed=None, dtype=tf.d... | tensorflow.compat.v1.truncated_normal_initializer |
tf.compat.v1.tuple Group tensors together.
tf.compat.v1.tuple(
tensors, name=None, control_inputs=None
)
This creates a tuple of tensors with the same values as the tensors argument, except that the value of each tensor is only returned after the values of all tensors have been computed. control_inputs contains a... | tensorflow.compat.v1.tuple |
Module: tf.compat.v1.types Public TensorFlow type definitions. For details, see https://github.com/tensorflow/community/blob/master/rfcs/20200211-tf-types.md Modules experimental module: Public API for tf.types.experimental namespace. | tensorflow.compat.v1.types |
Module: tf.compat.v1.types.experimental Public API for tf.types.experimental namespace. Type Aliases TensorLike: Union of all types that can be converted to a tf.Tensor by tf.convert_to_tensor. | tensorflow.compat.v1.types.experimental |
tf.compat.v1.uniform_unit_scaling_initializer Initializer that generates tensors without scaling variance. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.initializers.uniform_unit_scaling
tf.compat.v1.uniform_unit_scaling_initializer(
factor=1.0, seed=None, dtype=t... | tensorflow.compat.v1.uniform_unit_scaling_initializer |
Module: tf.compat.v1.user_ops Public API for tf.user_ops namespace. Functions my_fact(...): Example of overriding the generated code for an Op. | tensorflow.compat.v1.user_ops |
tf.compat.v1.user_ops.my_fact Example of overriding the generated code for an Op.
tf.compat.v1.user_ops.my_fact() | tensorflow.compat.v1.user_ops.my_fact |
tf.compat.v1.Variable See the Variables Guide. Inherits From: Variable
tf.compat.v1.Variable(
initial_value=None, trainable=None, collections=None, validate_shape=True,
caching_device=None, name=None, variable_def=None, dtype=None,
expected_shape=None, import_scope=None, constraint=None, use_resource=Non... | tensorflow.compat.v1.variable |
tf.compat.v1.VariableAggregation Indicates how a distributed variable will be aggregated. tf.distribute.Strategy distributes a model by making multiple copies (called "replicas") acting data-parallel on different elements of the input batch. When performing some variable-update operation, say var.assign_add(x), in a mo... | tensorflow.compat.v1.variableaggregation |
tf.compat.v1.VariableScope Variable scope object to carry defaults to provide to get_variable.
tf.compat.v1.VariableScope(
reuse, name='', initializer=None, regularizer=None,
caching_device=None, partitioner=None, custom_getter=None,
name_scope='', dtype=tf.dtypes.float32, use_resource=None,
constraint... | tensorflow.compat.v1.variablescope |
tf.compat.v1.variables_initializer Returns an Op that initializes a list of variables. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.initializers.variables
tf.compat.v1.variables_initializer(
var_list, name='init'
)
After you launch the graph in a session, you ca... | tensorflow.compat.v1.variables_initializer |
tf.compat.v1.variable_axis_size_partitioner Get a partitioner for VariableScope to keep shards below max_shard_bytes.
tf.compat.v1.variable_axis_size_partitioner(
max_shard_bytes, axis=0, bytes_per_string_element=16, max_shards=None
)
This partitioner will shard a Variable along one axis, attempting to keep the m... | tensorflow.compat.v1.variable_axis_size_partitioner |
tf.compat.v1.variable_creator_scope Scope which defines a variable creation function to be used by variable().
@tf_contextlib.contextmanager
tf.compat.v1.variable_creator_scope(
variable_creator
)
variable_creator is expected to be a function with the following signature: def variable_creator(next_creator, **kwar... | tensorflow.compat.v1.variable_creator_scope |
tf.compat.v1.variable_op_scope Deprecated: context manager for defining an op that creates variables.
@tf_contextlib.contextmanager
tf.compat.v1.variable_op_scope(
values, name_or_scope, default_name=None, initializer=None, regularizer=None,
caching_device=None, partitioner=None, custom_getter=None, reuse=None... | tensorflow.compat.v1.variable_op_scope |
tf.compat.v1.variable_scope A context manager for defining ops that creates variables (layers).
tf.compat.v1.variable_scope(
name_or_scope, default_name=None, values=None, initializer=None,
regularizer=None, caching_device=None, partitioner=None, custom_getter=None,
reuse=None, dtype=None, use_resource=Non... | tensorflow.compat.v1.variable_scope |
tf.compat.v1.verify_tensor_all_finite Assert that the tensor does not contain any NaN's or Inf's. View aliases Compat aliases for migration
See Migration guide for more details. tf.compat.v1.debugging.assert_all_finite
tf.compat.v1.verify_tensor_all_finite(
t=None, msg=None, name=None, x=None, message=None
)
... | tensorflow.compat.v1.verify_tensor_all_finite |
Module: tf.compat.v1.version Public API for tf.version namespace.
Other Members
COMPILER_VERSION '7.3.1 20180303'
GIT_VERSION 'v2.4.0-rc4-71-g582c8d236cb'
GRAPH_DEF_VERSION 561
GRAPH_DEF_VERSION_MIN_CONSUMER 0
GRAPH_DEF_VERSION_MIN_PRODUCER 0
VERSION '2.4.0' | tensorflow.compat.v1.version |
tf.compat.v1.where Return the elements, either from x or y, depending on the condition.
tf.compat.v1.where(
condition, x=None, y=None, name=None
)
If both x and y are None, then this operation returns the coordinates of true elements of condition. The coordinates are returned in a 2-D tensor where the first dimen... | tensorflow.compat.v1.where |
tf.compat.v1.while_loop Repeat body while the condition cond is true.
tf.compat.v1.while_loop(
cond, body, loop_vars, shape_invariants=None, parallel_iterations=10,
back_prop=True, swap_memory=False, name=None, maximum_iterations=None,
return_same_structure=False
)
cond is a callable returning a boolean s... | tensorflow.compat.v1.while_loop |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.