SYMBOL INDEX (2407 symbols across 290 files) FILE: average_scores.py function valid (line 8) | def valid(): FILE: dataset.py class VideoRecord (line 15) | class VideoRecord(object): method __init__ (line 16) | def __init__(self, row): method path (line 20) | def path(self): method num_frames (line 24) | def num_frames(self): method label (line 28) | def label(self): class TwoStreamDataSet (line 35) | class TwoStreamDataSet(data.Dataset): method __init__ (line 36) | def __init__(self, root_path, list_file, num_segments=3, method _load_image (line 53) | def _load_image(self, directory, idx): method _parse_list (line 65) | def _parse_list(self): method _get_val_indices (line 85) | def _get_val_indices(self, record): method __getitem__ (line 98) | def __getitem__(self, index): method get (line 122) | def get(self, record, indice): method __len__ (line 141) | def __len__(self): class TSNDataSet (line 145) | class TSNDataSet(data.Dataset): method __init__ (line 146) | def __init__(self, root_path, list_file, method _load_image (line 163) | def _load_image(self, directory, idx): method _parse_list (line 175) | def _parse_list(self): method _sample_indices (line 195) | def _sample_indices(self, record): method _get_val_indices (line 216) | def _get_val_indices(self, record): method _get_test_indices (line 228) | def _get_test_indices(self, record): method __getitem__ (line 240) | def __getitem__(self, index): method get (line 262) | def get(self, record, indices): method __len__ (line 281) | def __len__(self): class C3DDataSet (line 284) | class C3DDataSet(data.Dataset): method __init__ (line 285) | def __init__(self, root_path, list_file, method _load_image (line 302) | def _load_image(self, directory, idx): method _parse_list (line 314) | def _parse_list(self): method _sample_indices (line 334) | def _sample_indices(self, record): method _get_val_indices (line 355) | def _get_val_indices(self, record): method _get_test_indices (line 367) | def _get_test_indices(self, record): method __getitem__ (line 377) | def __getitem__(self, index): method get (line 403) | def get(self, record, indices): method __len__ (line 421) | def __len__(self): FILE: main.py function add_summary_value (line 28) | def add_summary_value(writer, key, value, iteration): function return_something_path (line 33) | def return_something_path(modality): function main (line 56) | def main(): function train (line 259) | def train(train_loader, model, criterion, optimizer, epoch, vidnums, sum... function validate (line 341) | def validate(val_loader, model, criterion, iter, summary_w): function save_checkpoint (line 401) | def save_checkpoint(state, is_best, filename='checkpoint.pth.tar'): class AverageMeter (line 406) | class AverageMeter(object): method __init__ (line 408) | def __init__(self): method reset (line 411) | def reset(self): method update (line 417) | def update(self, val, n=1): function adjust_learning_rate (line 424) | def adjust_learning_rate(optimizer, epoch, lr_steps, factor, with_police... function accuracy (line 439) | def accuracy(output, target, topk=(1,)): function check_rootfolders (line 454) | def check_rootfolders(trainid): FILE: model_zoo/bninception/caffe_pb2.py class BlobShape (line 5246) | class BlobShape(_message.Message): class BlobProto (line 5252) | class BlobProto(_message.Message): class BlobProtoVector (line 5258) | class BlobProtoVector(_message.Message): class Datum (line 5264) | class Datum(_message.Message): class FillerParameter (line 5270) | class FillerParameter(_message.Message): class NetParameter (line 5276) | class NetParameter(_message.Message): class SolverParameter (line 5282) | class SolverParameter(_message.Message): class SolverState (line 5288) | class SolverState(_message.Message): class NetState (line 5294) | class NetState(_message.Message): class NetStateRule (line 5300) | class NetStateRule(_message.Message): class ParamSpec (line 5306) | class ParamSpec(_message.Message): class LayerParameter (line 5312) | class LayerParameter(_message.Message): class TransformationParameter (line 5318) | class TransformationParameter(_message.Message): class LossParameter (line 5324) | class LossParameter(_message.Message): class AccuracyParameter (line 5330) | class AccuracyParameter(_message.Message): class ArgMaxParameter (line 5336) | class ArgMaxParameter(_message.Message): class BNParameter (line 5342) | class BNParameter(_message.Message): class ConcatParameter (line 5348) | class ConcatParameter(_message.Message): class ContrastiveLossParameter (line 5354) | class ContrastiveLossParameter(_message.Message): class ConvolutionParameter (line 5360) | class ConvolutionParameter(_message.Message): class DataParameter (line 5366) | class DataParameter(_message.Message): class DropoutParameter (line 5372) | class DropoutParameter(_message.Message): class DummyDataParameter (line 5378) | class DummyDataParameter(_message.Message): class EltwiseParameter (line 5384) | class EltwiseParameter(_message.Message): class ExpParameter (line 5390) | class ExpParameter(_message.Message): class FlattenParameter (line 5396) | class FlattenParameter(_message.Message): class HDF5DataParameter (line 5402) | class HDF5DataParameter(_message.Message): class HDF5OutputParameter (line 5408) | class HDF5OutputParameter(_message.Message): class HingeLossParameter (line 5414) | class HingeLossParameter(_message.Message): class ImageDataParameter (line 5420) | class ImageDataParameter(_message.Message): class VideoDataParameter (line 5426) | class VideoDataParameter(_message.Message): class InfogainLossParameter (line 5432) | class InfogainLossParameter(_message.Message): class InnerProductParameter (line 5438) | class InnerProductParameter(_message.Message): class LogParameter (line 5444) | class LogParameter(_message.Message): class LRNParameter (line 5450) | class LRNParameter(_message.Message): class MemoryDataParameter (line 5456) | class MemoryDataParameter(_message.Message): class MVNParameter (line 5462) | class MVNParameter(_message.Message): class PoolingParameter (line 5468) | class PoolingParameter(_message.Message): class PowerParameter (line 5474) | class PowerParameter(_message.Message): class PythonParameter (line 5480) | class PythonParameter(_message.Message): class ReductionParameter (line 5486) | class ReductionParameter(_message.Message): class ReLUParameter (line 5492) | class ReLUParameter(_message.Message): class ReshapeParameter (line 5498) | class ReshapeParameter(_message.Message): class SegDataParameter (line 5504) | class SegDataParameter(_message.Message): class SigmoidParameter (line 5510) | class SigmoidParameter(_message.Message): class SliceParameter (line 5516) | class SliceParameter(_message.Message): class SoftmaxParameter (line 5522) | class SoftmaxParameter(_message.Message): class TanHParameter (line 5528) | class TanHParameter(_message.Message): class ThresholdParameter (line 5534) | class ThresholdParameter(_message.Message): class WindowDataParameter (line 5540) | class WindowDataParameter(_message.Message): class SPPParameter (line 5546) | class SPPParameter(_message.Message): class ROIPoolingParameter (line 5552) | class ROIPoolingParameter(_message.Message): class V1LayerParameter (line 5558) | class V1LayerParameter(_message.Message): class V0LayerParameter (line 5564) | class V0LayerParameter(_message.Message): class PReLUParameter (line 5570) | class PReLUParameter(_message.Message): class ScaleParameter (line 5576) | class ScaleParameter(_message.Message): class BiasParameter (line 5582) | class BiasParameter(_message.Message): class BatchReductionParameter (line 5588) | class BatchReductionParameter(_message.Message): class MemoryOptimizationParameter (line 5594) | class MemoryOptimizationParameter(_message.Message): FILE: model_zoo/bninception/layer_factory.py function parse_expr (line 8) | def parse_expr(expr): function get_basic_layer (line 13) | def get_basic_layer(info, channels=None, conv_bias=False): function build_conv (line 25) | def build_conv(attr, channels=None, conv_bias=False): function build_pooling (line 42) | def build_pooling(attr, channels=None, conv_bias=False): function build_relu (line 57) | def build_relu(attr, channels=None, conv_bias=False): function build_bn (line 61) | def build_bn(attr, channels=None, conv_bias=False): function build_linear (line 65) | def build_linear(attr, channels=None, conv_bias=False): function build_dropout (line 69) | def build_dropout(attr, channels=None, conv_bias=False): FILE: model_zoo/bninception/parse_caffe.py class CaffeVendor (line 22) | class CaffeVendor(object): method __init__ (line 23) | def __init__(self, net_name, weight_name, version=2): method _parse_net (line 40) | def _parse_net(self, version): method _parse_blob (line 60) | def _parse_blob(blob): method _layer2dict (line 65) | def _layer2dict(self, layer, version): method text_form (line 134) | def text_form(self): method info (line 138) | def info(self): method yaml (line 145) | def yaml(self): method dump_weights (line 148) | def dump_weights(self, filename): FILE: model_zoo/bninception/pytorch_load.py class BNInception (line 8) | class BNInception(nn.Module): method __init__ (line 9) | def __init__(self, model_path='model_zoo/bninception/bn_inception.yaml... method forward (line 37) | def forward(self, input): class InceptionV3 (line 64) | class InceptionV3(BNInception): method __init__ (line 65) | def __init__(self, model_path='model_zoo/bninception/inceptionv3.yaml'... FILE: model_zoo/inceptionresnetv2/pytorch_load.py class BasicConv2d (line 11) | class BasicConv2d(nn.Module): method __init__ (line 13) | def __init__(self, in_planes, out_planes, kernel_size, stride, padding... method forward (line 19) | def forward(self, x): class Mixed_5b (line 25) | class Mixed_5b(nn.Module): method __init__ (line 27) | def __init__(self): method forward (line 48) | def forward(self, x): class Block35 (line 56) | class Block35(nn.Module): method __init__ (line 58) | def __init__(self, scale=1.0): method forward (line 79) | def forward(self, x): class Mixed_6a (line 89) | class Mixed_6a(nn.Module): method __init__ (line 91) | def __init__(self): method forward (line 104) | def forward(self, x): class Block17 (line 111) | class Block17(nn.Module): method __init__ (line 113) | def __init__(self, scale=1.0): method forward (line 129) | def forward(self, x): class Mixed_7a (line 138) | class Mixed_7a(nn.Module): method __init__ (line 140) | def __init__(self): method forward (line 161) | def forward(self, x): class Block8 (line 169) | class Block8(nn.Module): method __init__ (line 171) | def __init__(self, scale=1.0, noReLU=False): method forward (line 189) | def forward(self, x): class InceptionResnetV2 (line 200) | class InceptionResnetV2(nn.Module): method __init__ (line 202) | def __init__(self, num_classes=1001): method forward (line 264) | def forward(self, x): function inceptionresnetv2 (line 285) | def inceptionresnetv2(pretrained=True): function load_conv2d (line 302) | def load_conv2d(state_dict, name_pth, name_tf): function load_conv2d_nobn (line 312) | def load_conv2d_nobn(state_dict, name_pth, name_tf): function load_linear (line 318) | def load_linear(state_dict, name_pth, name_tf): function load_mixed_5b (line 324) | def load_mixed_5b(state_dict, name_pth, name_tf): function load_block35 (line 333) | def load_block35(state_dict, name_pth, name_tf): function load_mixed_6a (line 342) | def load_mixed_6a(state_dict, name_pth, name_tf): function load_block17 (line 348) | def load_block17(state_dict, name_pth, name_tf): function load_mixed_7a (line 355) | def load_mixed_7a(state_dict, name_pth, name_tf): function load_block8 (line 364) | def load_block8(state_dict, name_pth, name_tf): function load (line 373) | def load(): function test (line 408) | def test(model): function test_conv2d (line 437) | def test_conv2d(module, name): function test_conv2d_nobn (line 454) | def test_conv2d_nobn(module, name): function test_mixed_5b (line 465) | def test_mixed_5b(module, name): function test_block35 (line 474) | def test_block35(module, name): function test_mixed_6a (line 483) | def test_mixed_6a(module, name): function test_block17 (line 489) | def test_block17(module, name): function test_mixed_7a (line 496) | def test_mixed_7a(module, name): function test_block8 (line 505) | def test_block8(module, name): FILE: model_zoo/inceptionresnetv2/tensorflow_dump.py function make_padding (line 30) | def make_padding(padding_name, conv_shape): function dump_conv2d (line 40) | def dump_conv2d(name='Conv2d_1a_3x3'): function dump_conv2d_nobn (line 70) | def dump_conv2d_nobn(name='Conv2d_1x1'): function dump_logits (line 90) | def dump_logits(): function dump_mixed_5b (line 132) | def dump_mixed_5b(name='Mixed_5b'): function dump_block35 (line 141) | def dump_block35(name='Repeat/block35_1'): function dump_mixed_6a (line 150) | def dump_mixed_6a(name='Mixed_6a'): function dump_block17 (line 156) | def dump_block17(name='Repeat_1/block17_1'): function dump_mixed_7a (line 163) | def dump_mixed_7a(name='Mixed_7a'): function dump_block8 (line 172) | def dump_block8(name='Repeat_2/block8_1'): FILE: model_zoo/inceptionv4/pytorch_load.py class BasicConv2d (line 11) | class BasicConv2d(nn.Module): method __init__ (line 13) | def __init__(self, in_planes, out_planes, kernel_size, stride, padding... method forward (line 19) | def forward(self, x): class Mixed_3a (line 25) | class Mixed_3a(nn.Module): method __init__ (line 27) | def __init__(self): method forward (line 32) | def forward(self, x): class Mixed_4a (line 38) | class Mixed_4a(nn.Module): method __init__ (line 40) | def __init__(self): method forward (line 55) | def forward(self, x): class Mixed_5a (line 61) | class Mixed_5a(nn.Module): method __init__ (line 63) | def __init__(self): method forward (line 68) | def forward(self, x): class Inception_A (line 74) | class Inception_A(nn.Module): method __init__ (line 76) | def __init__(self): method forward (line 96) | def forward(self, x): class Reduction_A (line 104) | class Reduction_A(nn.Module): method __init__ (line 106) | def __init__(self): method forward (line 118) | def forward(self, x): class Inception_B (line 125) | class Inception_B(nn.Module): method __init__ (line 127) | def __init__(self): method forward (line 150) | def forward(self, x): class Reduction_B (line 158) | class Reduction_B(nn.Module): method __init__ (line 160) | def __init__(self): method forward (line 177) | def forward(self, x): class Inception_C (line 184) | class Inception_C(nn.Module): method __init__ (line 186) | def __init__(self): method forward (line 206) | def forward(self, x): class InceptionV4 (line 226) | class InceptionV4(nn.Module): method __init__ (line 228) | def __init__(self, num_classes=1001): method forward (line 257) | def forward(self, x): function inceptionv4 (line 263) | def inceptionv4(pretrained=True): function load_conv2d (line 273) | def load_conv2d(state_dict, name_pth, name_tf): function load_linear (line 283) | def load_linear(state_dict, name_pth, name_tf): function load_mixed_4a_7a (line 289) | def load_mixed_4a_7a(state_dict, name_pth, name_tf): function load_mixed_5 (line 297) | def load_mixed_5(state_dict, name_pth, name_tf): function load_mixed_6 (line 306) | def load_mixed_6(state_dict, name_pth, name_tf): function load_mixed_7 (line 318) | def load_mixed_7(state_dict, name_pth, name_tf): function load (line 331) | def load(): function test (line 376) | def test(model): function test_conv2d (line 393) | def test_conv2d(module, name): function test_mixed_4a_7a (line 404) | def test_mixed_4a_7a(module, name): FILE: model_zoo/inceptionv4/tensorflow_dump.py function make_padding (line 27) | def make_padding(padding_name, conv_shape): function dump_conv2d (line 37) | def dump_conv2d(name='Conv2d_1a_3x3'): function dump_logits (line 71) | def dump_logits(): function dump_mixed_4a_7a (line 112) | def dump_mixed_4a_7a(name='Mixed_4a'): function dump_mixed_5 (line 120) | def dump_mixed_5(name='Mixed_5b'): function dump_mixed_6 (line 129) | def dump_mixed_6(name='Mixed_6b'): function dump_mixed_7 (line 141) | def dump_mixed_7(name='Mixed_7b'): FILE: model_zoo/models/autoencoder/AdditiveGaussianNoiseAutoencoderRunner.py function standard_scale (line 11) | def standard_scale(X_train, X_test): function get_random_block_from_data (line 17) | def get_random_block_from_data(data, batch_size): FILE: model_zoo/models/autoencoder/AutoencoderRunner.py function standard_scale (line 11) | def standard_scale(X_train, X_test): function get_random_block_from_data (line 17) | def get_random_block_from_data(data, batch_size): FILE: model_zoo/models/autoencoder/MaskingNoiseAutoencoderRunner.py function standard_scale (line 11) | def standard_scale(X_train, X_test): function get_random_block_from_data (line 17) | def get_random_block_from_data(data, batch_size): FILE: model_zoo/models/autoencoder/Utils.py function xavier_init (line 4) | def xavier_init(fan_in, fan_out, constant = 1): FILE: model_zoo/models/autoencoder/VariationalAutoencoderRunner.py function min_max_scale (line 13) | def min_max_scale(X_train, X_test): function get_random_block_from_data (line 20) | def get_random_block_from_data(data, batch_size): FILE: model_zoo/models/autoencoder/autoencoder_models/Autoencoder.py class Autoencoder (line 5) | class Autoencoder(object): method __init__ (line 7) | def __init__(self, n_input, n_hidden, transfer_function=tf.nn.softplus... method _initialize_weights (line 29) | def _initialize_weights(self): method partial_fit (line 37) | def partial_fit(self, X): method calc_total_cost (line 41) | def calc_total_cost(self, X): method transform (line 44) | def transform(self, X): method generate (line 47) | def generate(self, hidden = None): method reconstruct (line 52) | def reconstruct(self, X): method getWeights (line 55) | def getWeights(self): method getBiases (line 58) | def getBiases(self): FILE: model_zoo/models/autoencoder/autoencoder_models/DenoisingAutoencoder.py class AdditiveGaussianNoiseAutoencoder (line 6) | class AdditiveGaussianNoiseAutoencoder(object): method __init__ (line 7) | def __init__(self, n_input, n_hidden, transfer_function = tf.nn.softpl... method _initialize_weights (line 32) | def _initialize_weights(self): method partial_fit (line 40) | def partial_fit(self, X): method calc_total_cost (line 46) | def calc_total_cost(self, X): method transform (line 51) | def transform(self, X): method generate (line 56) | def generate(self, hidden = None): method reconstruct (line 61) | def reconstruct(self, X): method getWeights (line 66) | def getWeights(self): method getBiases (line 69) | def getBiases(self): class MaskingNoiseAutoencoder (line 73) | class MaskingNoiseAutoencoder(object): method __init__ (line 74) | def __init__(self, n_input, n_hidden, transfer_function = tf.nn.softpl... method _initialize_weights (line 99) | def _initialize_weights(self): method partial_fit (line 107) | def partial_fit(self, X): method calc_total_cost (line 112) | def calc_total_cost(self, X): method transform (line 115) | def transform(self, X): method generate (line 118) | def generate(self, hidden = None): method reconstruct (line 123) | def reconstruct(self, X): method getWeights (line 126) | def getWeights(self): method getBiases (line 129) | def getBiases(self): FILE: model_zoo/models/autoencoder/autoencoder_models/VariationalAutoencoder.py class VariationalAutoencoder (line 5) | class VariationalAutoencoder(object): method __init__ (line 7) | def __init__(self, n_input, n_hidden, optimizer = tf.train.AdamOptimiz... method _initialize_weights (line 37) | def _initialize_weights(self): method partial_fit (line 47) | def partial_fit(self, X): method calc_total_cost (line 51) | def calc_total_cost(self, X): method transform (line 54) | def transform(self, X): method generate (line 57) | def generate(self, hidden = None): method reconstruct (line 62) | def reconstruct(self, X): method getWeights (line 65) | def getWeights(self): method getBiases (line 68) | def getBiases(self): FILE: model_zoo/models/compression/decoder.py function get_input_tensor_names (line 41) | def get_input_tensor_names(): function get_output_tensor_names (line 48) | def get_output_tensor_names(): function main (line 52) | def main(_): FILE: model_zoo/models/compression/encoder.py function get_output_tensor_names (line 43) | def get_output_tensor_names(): function main (line 50) | def main(_): FILE: model_zoo/models/compression/msssim.py function _FSpecialGauss (line 35) | def _FSpecialGauss(size, sigma): function _SSIMForMultiScale (line 49) | def _SSIMForMultiScale(img1, img2, max_val=255, filter_size=11, function MultiScaleSSIM (line 125) | def MultiScaleSSIM(img1, img2, max_val=255, filter_size=11, filter_sigma... function main (line 187) | def main(_): FILE: model_zoo/models/differential_privacy/dp_sgd/dp_mnist/dp_mnist.py function MnistInput (line 129) | def MnistInput(mnist_data_file, batch_size, randomize): function Eval (line 167) | def Eval(mnist_data_file, network_parameters, num_testing_images, function Train (line 223) | def Train(mnist_train_file, mnist_test_file, network_parameters, num_steps, function main (line 436) | def main(_): FILE: model_zoo/models/differential_privacy/dp_sgd/dp_optimizer/dp_optimizer.py class DPGradientDescentOptimizer (line 26) | class DPGradientDescentOptimizer(tf.train.GradientDescentOptimizer): method __init__ (line 30) | def __init__(self, learning_rate, eps_delta, sanitizer, method compute_sanitized_gradients (line 69) | def compute_sanitized_gradients(self, loss, var_list=None, method minimize (line 100) | def minimize(self, loss, global_step=None, var_list=None, FILE: model_zoo/models/differential_privacy/dp_sgd/dp_optimizer/dp_pca.py function ComputeDPPrincipalProjection (line 23) | def ComputeDPPrincipalProjection(data, projection_dims, FILE: model_zoo/models/differential_privacy/dp_sgd/dp_optimizer/sanitizer.py class AmortizedGaussianSanitizer (line 36) | class AmortizedGaussianSanitizer(object): method __init__ (line 44) | def __init__(self, accountant, default_option): method set_option (line 56) | def set_option(self, tensor_name, option): method sanitize (line 66) | def sanitize(self, x, eps_delta, sigma=None, FILE: model_zoo/models/differential_privacy/dp_sgd/dp_optimizer/utils.py class LayerParameters (line 26) | class LayerParameters(object): method __init__ (line 28) | def __init__(self): class ConvParameters (line 39) | class ConvParameters(object): method __init__ (line 41) | def __init__(self): class NetworkParameters (line 59) | class NetworkParameters(object): method __init__ (line 61) | def __init__(self): function GetTensorOpName (line 70) | def GetTensorOpName(x): function BuildNetwork (line 88) | def BuildNetwork(inputs, network_parameters): function VaryRate (line 196) | def VaryRate(start, end, saturate_epochs, epoch): function BatchClipByL2norm (line 220) | def BatchClipByL2norm(t, upper_bound, name=None): function SoftThreshold (line 250) | def SoftThreshold(t, threshold_ratio, name=None): function AddGaussianNoise (line 278) | def AddGaussianNoise(t, sigma, name=None): function GenerateBinomialTable (line 294) | def GenerateBinomialTable(m): FILE: model_zoo/models/differential_privacy/dp_sgd/per_example_gradients/per_example_gradients.py function _ListUnion (line 25) | def _ListUnion(list_1, list_2): function Interface (line 60) | def Interface(ys, xs): class PXGRegistry (line 104) | class PXGRegistry(object): method __init__ (line 118) | def __init__(self): method __call__ (line 121) | def __call__(self, op, method Register (line 131) | def Register(self, op_name, pxg_class): class MatMulPXG (line 147) | class MatMulPXG(object): method __init__ (line 151) | def __init__(self, op, method __call__ (line 166) | def __call__(self, x, z_grads): class Conv2DPXG (line 198) | class Conv2DPXG(object): method __init__ (line 204) | def __init__(self, op, method _PxConv2DBuilder (line 213) | def _PxConv2DBuilder(self, input_, w, strides, padding): method __call__ (line 252) | def __call__(self, w, z_grads): class AddPXG (line 282) | class AddPXG(object): method __init__ (line 288) | def __init__(self, op, method __call__ (line 297) | def __call__(self, x, z_grads): function PerExampleGradients (line 317) | def PerExampleGradients(ys, xs, grad_ys=None, name="gradients", FILE: model_zoo/models/differential_privacy/multiple_teachers/aggregation.py function labels_from_probs (line 24) | def labels_from_probs(probs): function noisy_max (line 42) | def noisy_max(logits, lap_scale, return_clean_votes=False): function aggregation_most_frequent (line 103) | def aggregation_most_frequent(logits): FILE: model_zoo/models/differential_privacy/multiple_teachers/analysis.py function compute_q_noisy_max (line 69) | def compute_q_noisy_max(counts, noise_eps): function compute_q_noisy_max_approx (line 94) | def compute_q_noisy_max_approx(counts, noise_eps): function logmgf_exact (line 119) | def logmgf_exact(q, priv_eps, l): function logmgf_from_counts (line 150) | def logmgf_from_counts(counts, noise_eps, l): function sens_at_k (line 161) | def sens_at_k(counts, noise_eps, l, k): function smoothed_sens (line 190) | def smoothed_sens(counts, noise_eps, l, beta): function main (line 214) | def main(unused_argv): FILE: model_zoo/models/differential_privacy/multiple_teachers/deep_cnn.py function _variable_on_cpu (line 43) | def _variable_on_cpu(name, shape, initializer): function _variable_with_weight_decay (line 59) | def _variable_with_weight_decay(name, shape, stddev, wd): function inference (line 83) | def inference(images, dropout=False): function inference_deeper (line 193) | def inference_deeper(images, dropout=False): function loss_fun (line 326) | def loss_fun(logits, labels): function moving_av (line 357) | def moving_av(total_loss): function train_op_fun (line 374) | def train_op_fun(total_loss, global_step): function _input_placeholder (line 429) | def _input_placeholder(): function train (line 446) | def train(images, labels, ckpt_path, dropout=False): function softmax_preds (line 546) | def softmax_preds(images, ckpt_path, return_logits=False): FILE: model_zoo/models/differential_privacy/multiple_teachers/input.py function create_dir_if_needed (line 35) | def create_dir_if_needed(dest_directory): function maybe_download (line 47) | def maybe_download(file_urls, directory): function image_whitening (line 89) | def image_whitening(data): function extract_svhn (line 120) | def extract_svhn(local_url): function unpickle_cifar_dic (line 150) | def unpickle_cifar_dic(file): function extract_cifar10 (line 162) | def extract_cifar10(local_url, data_dir): function extract_mnist_data (line 255) | def extract_mnist_data(filename, num_images, image_size, pixel_depth): function extract_mnist_labels (line 276) | def extract_mnist_labels(filename, num_images): function ld_svhn (line 293) | def ld_svhn(extended=False, test_only=False): function ld_cifar10 (line 337) | def ld_cifar10(test_only=False): function ld_mnist (line 366) | def ld_mnist(test_only=False): function partition_dataset (line 396) | def partition_dataset(data, labels, nb_teachers, teacher_id): FILE: model_zoo/models/differential_privacy/multiple_teachers/metrics.py function accuracy (line 23) | def accuracy(logits, labels): FILE: model_zoo/models/differential_privacy/multiple_teachers/train_student.py function ensemble_preds (line 52) | def ensemble_preds(dataset, nb_teachers, stdnt_data): function prepare_student_data (line 89) | def prepare_student_data(dataset, nb_teachers, save=False): function train_student (line 164) | def train_student(dataset, nb_teachers): function main (line 202) | def main(argv=None): # pylint: disable=unused-argument FILE: model_zoo/models/differential_privacy/multiple_teachers/train_teachers.py function train_teacher (line 44) | def train_teacher(dataset, nb_teachers, teacher_id): function main (line 99) | def main(argv=None): # pylint: disable=unused-argument FILE: model_zoo/models/differential_privacy/multiple_teachers/utils.py function batch_indices (line 17) | def batch_indices(batch_nb, data_length, batch_size): FILE: model_zoo/models/differential_privacy/privacy_accountant/python/gaussian_moments.py function _to_np_float64 (line 52) | def _to_np_float64(v): function pdf_gauss (line 63) | def pdf_gauss(x, sigma, mean=0): function cropped_ratio (line 67) | def cropped_ratio(a, b): function integral_inf (line 74) | def integral_inf(fn): function integral_bounded (line 79) | def integral_bounded(fn, lb, ub): function distributions (line 84) | def distributions(sigma, q): function compute_a (line 91) | def compute_a(sigma, q, lmbd, verbose=False): function compute_b (line 118) | def compute_b(sigma, q, lmbd, verbose=False): function pdf_gauss_mp (line 154) | def pdf_gauss_mp(x, sigma, mean): function integral_inf_mp (line 159) | def integral_inf_mp(fn): function integral_bounded_mp (line 164) | def integral_bounded_mp(fn, lb, ub): function distributions_mp (line 169) | def distributions_mp(sigma, q): function compute_a_mp (line 176) | def compute_a_mp(sigma, q, lmbd, verbose=False): function compute_b_mp (line 199) | def compute_b_mp(sigma, q, lmbd, verbose=False): function _compute_delta (line 232) | def _compute_delta(log_moments, eps): function _compute_eps (line 255) | def _compute_eps(log_moments, delta): function compute_log_moment (line 276) | def compute_log_moment(q, sigma, steps, lmbd, verify=False, verbose=False): function get_privacy_spent (line 305) | def get_privacy_spent(log_moments, target_eps=None, target_delta=None): FILE: model_zoo/models/differential_privacy/privacy_accountant/tf/accountant.py class AmortizedAccountant (line 46) | class AmortizedAccountant(object): method __init__ (line 55) | def __init__(self, total_examples): method accumulate_privacy_spending (line 69) | def accumulate_privacy_spending(self, eps_delta, unused_sigma, method get_privacy_spent (line 104) | def get_privacy_spent(self, sess, target_eps=None): class MomentsAccountant (line 123) | class MomentsAccountant(object): method __init__ (line 175) | def __init__(self, total_examples, moment_orders=32): method _compute_log_moment (line 196) | def _compute_log_moment(self, sigma, q, moment_order): method accumulate_privacy_spending (line 208) | def accumulate_privacy_spending(self, unused_eps_delta, method _compute_delta (line 237) | def _compute_delta(self, log_moments, eps): method _compute_eps (line 257) | def _compute_eps(self, log_moments, delta): method get_privacy_spent (line 266) | def get_privacy_spent(self, sess, target_eps=None, target_deltas=None): class GaussianMomentsAccountant (line 295) | class GaussianMomentsAccountant(MomentsAccountant): method __init__ (line 328) | def __init__(self, total_examples, moment_orders=32): method _differential_moments (line 338) | def _differential_moments(self, sigma, s, t): method _compute_log_moment (line 375) | def _compute_log_moment(self, sigma, q, moment_order): class DummyAccountant (line 403) | class DummyAccountant(object): method accumulate_privacy_spending (line 406) | def accumulate_privacy_spending(self, *unused_args): method get_privacy_spent (line 409) | def get_privacy_spent(self, unused_sess, **unused_kwargs): FILE: model_zoo/models/im2txt/im2txt/configuration.py class ModelConfig (line 23) | class ModelConfig(object): method __init__ (line 26) | def __init__(self): class TrainingConfig (line 81) | class TrainingConfig(object): method __init__ (line 84) | def __init__(self): FILE: model_zoo/models/im2txt/im2txt/data/build_mscoco_data.py class Vocabulary (line 142) | class Vocabulary(object): method __init__ (line 145) | def __init__(self, vocab, unk_id): method word_to_id (line 155) | def word_to_id(self, word): class ImageDecoder (line 163) | class ImageDecoder(object): method __init__ (line 166) | def __init__(self): method decode_jpeg (line 174) | def decode_jpeg(self, encoded_jpeg): function _int64_feature (line 182) | def _int64_feature(value): function _bytes_feature (line 187) | def _bytes_feature(value): function _int64_feature_list (line 192) | def _int64_feature_list(values): function _bytes_feature_list (line 197) | def _bytes_feature_list(values): function _to_sequence_example (line 202) | def _to_sequence_example(image, decoder, vocab): function _process_image_files (line 240) | def _process_image_files(thread_index, ranges, name, images, decoder, vo... function _process_dataset (line 299) | def _process_dataset(name, images, vocab, num_shards): function _create_vocab (line 345) | def _create_vocab(captions): function _process_caption (line 382) | def _process_caption(caption): function _load_and_process_metadata (line 397) | def _load_and_process_metadata(captions_file, image_dir): function main (line 441) | def main(unused_argv): FILE: model_zoo/models/im2txt/im2txt/evaluate.py function evaluate_model (line 56) | def evaluate_model(sess, model, global_step, summary_writer, summary_op): function run_once (line 107) | def run_once(model, saver, summary_writer, summary_op): function run (line 154) | def run(): function main (line 190) | def main(unused_argv): FILE: model_zoo/models/im2txt/im2txt/inference_utils/caption_generator.py class Caption (line 28) | class Caption(object): method __init__ (line 31) | def __init__(self, sentence, state, logprob, score, metadata=None): method __cmp__ (line 48) | def __cmp__(self, other): class TopN (line 59) | class TopN(object): method __init__ (line 62) | def __init__(self, n): method size (line 66) | def size(self): method push (line 70) | def push(self, x): method extract (line 78) | def extract(self, sort=False): method reset (line 96) | def reset(self): class CaptionGenerator (line 101) | class CaptionGenerator(object): method __init__ (line 104) | def __init__(self, method beam_search (line 131) | def beam_search(self, sess, encoded_image): FILE: model_zoo/models/im2txt/im2txt/inference_utils/caption_generator_test.py class FakeVocab (line 27) | class FakeVocab(object): method __init__ (line 30) | def __init__(self): class FakeModel (line 35) | class FakeModel(object): method __init__ (line 38) | def __init__(self): method feed_image (line 71) | def feed_image(self, sess, encoded_image): method inference_step (line 75) | def inference_step(self, sess, input_feed, state_feed): class CaptionGeneratorTest (line 92) | class CaptionGeneratorTest(tf.test.TestCase): method _assertExpectedCaptions (line 94) | def _assertExpectedCaptions(self, method testBeamSize (line 126) | def testBeamSize(self): method testMaxLength (line 141) | def testMaxLength(self): method testLengthNormalization (line 163) | def testLengthNormalization(self): FILE: model_zoo/models/im2txt/im2txt/inference_utils/inference_wrapper_base.py class InferenceWrapperBase (line 56) | class InferenceWrapperBase(object): method __init__ (line 59) | def __init__(self): method build_model (line 62) | def build_model(self, model_config): method _create_restore_fn (line 73) | def _create_restore_fn(self, checkpoint_path, saver): method build_graph_from_config (line 102) | def build_graph_from_config(self, model_config, checkpoint_path): method build_graph_from_proto (line 120) | def build_graph_from_proto(self, graph_def_file, saver_def_file, method feed_image (line 150) | def feed_image(self, sess, encoded_image): method inference_step (line 164) | def inference_step(self, sess, input_feed, state_feed): FILE: model_zoo/models/im2txt/im2txt/inference_utils/vocabulary.py class Vocabulary (line 25) | class Vocabulary(object): method __init__ (line 28) | def __init__(self, method word_to_id (line 66) | def word_to_id(self, word): method id_to_word (line 73) | def id_to_word(self, word_id): FILE: model_zoo/models/im2txt/im2txt/inference_wrapper.py class InferenceWrapper (line 28) | class InferenceWrapper(inference_wrapper_base.InferenceWrapperBase): method __init__ (line 31) | def __init__(self): method build_model (line 34) | def build_model(self, model_config): method feed_image (line 39) | def feed_image(self, sess, encoded_image): method inference_step (line 44) | def inference_step(self, sess, input_feed, state_feed): FILE: model_zoo/models/im2txt/im2txt/ops/image_embedding.py function inception_v3 (line 30) | def inception_v3(images, FILE: model_zoo/models/im2txt/im2txt/ops/image_embedding_test.py class InceptionV3Test (line 28) | class InceptionV3Test(tf.test.TestCase): method setUp (line 30) | def setUp(self): method _countInceptionParameters (line 41) | def _countInceptionParameters(self): method _verifyParameterCounts (line 53) | def _verifyParameterCounts(self): method _assertCollectionSize (line 76) | def _assertCollectionSize(self, expected_size, collection): method testTrainableTrueIsTrainingTrue (line 82) | def testTrainableTrueIsTrainingTrue(self): method testTrainableTrueIsTrainingFalse (line 95) | def testTrainableTrueIsTrainingFalse(self): method testTrainableFalseIsTrainingTrue (line 108) | def testTrainableFalseIsTrainingTrue(self): method testTrainableFalseIsTrainingFalse (line 121) | def testTrainableFalseIsTrainingFalse(self): FILE: model_zoo/models/im2txt/im2txt/ops/image_processing.py function distort_image (line 26) | def distort_image(image, thread_id): function process_image (line 62) | def process_image(encoded_image, FILE: model_zoo/models/im2txt/im2txt/ops/inputs.py function parse_sequence_example (line 26) | def parse_sequence_example(serialized, image_feature, caption_feature): function prefetch_input_data (line 54) | def prefetch_input_data(reader, function batch_with_dynamic_pad (line 126) | def batch_with_dynamic_pad(images_and_captions, FILE: model_zoo/models/im2txt/im2txt/run_inference.py function main (line 43) | def main(_): FILE: model_zoo/models/im2txt/im2txt/show_and_tell_model.py class ShowAndTellModel (line 34) | class ShowAndTellModel(object): method __init__ (line 41) | def __init__(self, config, mode, train_inception=False): method is_training (line 99) | def is_training(self): method process_image (line 103) | def process_image(self, encoded_image, thread_id=0): method build_inputs (line 121) | def build_inputs(self): method build_image_embeddings (line 181) | def build_image_embeddings(self): method build_seq_embeddings (line 212) | def build_seq_embeddings(self): method build_model (line 230) | def build_model(self): method setup_inception_initializer (line 327) | def setup_inception_initializer(self): method setup_global_step (line 340) | def setup_global_step(self): method build (line 350) | def build(self): FILE: model_zoo/models/im2txt/im2txt/show_and_tell_model_test.py class ShowAndTellModel (line 30) | class ShowAndTellModel(show_and_tell_model.ShowAndTellModel): method build_inputs (line 33) | def build_inputs(self): class ShowAndTellModelTest (line 57) | class ShowAndTellModelTest(tf.test.TestCase): method setUp (line 59) | def setUp(self): method _countModelParameters (line 63) | def _countModelParameters(self): method _checkModelParameters (line 73) | def _checkModelParameters(self): method _checkOutputs (line 90) | def _checkOutputs(self, expected_shapes, feed_dict=None): method testBuildForTraining (line 112) | def testBuildForTraining(self): method testBuildForEval (line 140) | def testBuildForEval(self): method testBuildForInference (line 168) | def testBuildForInference(self): FILE: model_zoo/models/im2txt/im2txt/train.py function main (line 44) | def main(unused_argv): FILE: model_zoo/models/inception/inception/data/build_image_data.py function _int64_feature (line 107) | def _int64_feature(value): function _bytes_feature (line 114) | def _bytes_feature(value): function _convert_to_example (line 119) | def _convert_to_example(filename, image_buffer, label, text, height, wid... class ImageCoder (line 150) | class ImageCoder(object): method __init__ (line 153) | def __init__(self): method png_to_jpeg (line 166) | def png_to_jpeg(self, image_data): method decode_jpeg (line 170) | def decode_jpeg(self, image_data): function _is_png (line 178) | def _is_png(filename): function _process_image (line 190) | def _process_image(filename, coder): function _process_image_files_batch (line 222) | def _process_image_files_batch(coder, thread_index, ranges, name, filena... function _process_image_files (line 287) | def _process_image_files(name, filenames, texts, labels, num_shards): function _find_image_files (line 331) | def _find_image_files(data_dir, labels_file): function _process_dataset (line 402) | def _process_dataset(name, directory, num_shards, labels_file): function main (line 415) | def main(unused_argv): FILE: model_zoo/models/inception/inception/data/build_imagenet_data.py function _int64_feature (line 158) | def _int64_feature(value): function _float_feature (line 165) | def _float_feature(value): function _bytes_feature (line 172) | def _bytes_feature(value): function _convert_to_example (line 177) | def _convert_to_example(filename, image_buffer, label, synset, human, bbox, class ImageCoder (line 228) | class ImageCoder(object): method __init__ (line 231) | def __init__(self): method png_to_jpeg (line 249) | def png_to_jpeg(self, image_data): method cmyk_to_rgb (line 253) | def cmyk_to_rgb(self, image_data): method decode_jpeg (line 257) | def decode_jpeg(self, image_data): function _is_png (line 265) | def _is_png(filename): function _is_cmyk (line 279) | def _is_cmyk(filename): function _process_image (line 304) | def _process_image(filename, coder): function _process_image_files_batch (line 341) | def _process_image_files_batch(coder, thread_index, ranges, name, filena... function _process_image_files (line 413) | def _process_image_files(name, filenames, synsets, labels, humans, function _find_image_files (line 465) | def _find_image_files(data_dir, labels_file): function _find_human_readable_labels (line 540) | def _find_human_readable_labels(synsets, synset_to_human): function _find_image_bounding_boxes (line 558) | def _find_image_bounding_boxes(filenames, image_to_bboxes): function _process_dataset (line 584) | def _process_dataset(name, directory, num_shards, synset_to_human, function _build_synset_lookup (line 604) | def _build_synset_lookup(imagenet_metadata_file): function _build_bounding_box_lookup (line 636) | def _build_bounding_box_lookup(bounding_box_file): function main (line 684) | def main(unused_argv): FILE: model_zoo/models/inception/inception/data/process_bounding_boxes.py class BoundingBox (line 90) | class BoundingBox(object): function GetItem (line 94) | def GetItem(name, root, index=0): function GetInt (line 104) | def GetInt(name, root, index=0): function FindNumberBoundingBoxes (line 108) | def FindNumberBoundingBoxes(root): function ProcessXMLAnnotation (line 117) | def ProcessXMLAnnotation(xml_file): FILE: model_zoo/models/inception/inception/dataset.py class Dataset (line 42) | class Dataset(object): method __init__ (line 46) | def __init__(self, name, subset): method num_classes (line 53) | def num_classes(self): method num_examples_per_epoch (line 59) | def num_examples_per_epoch(self): method download_message (line 68) | def download_message(self): method available_subsets (line 72) | def available_subsets(self): method data_files (line 76) | def data_files(self): method reader (line 95) | def reader(self): FILE: model_zoo/models/inception/inception/flowers_data.py class FlowersData (line 26) | class FlowersData(Dataset): method __init__ (line 29) | def __init__(self, subset): method num_classes (line 32) | def num_classes(self): method num_examples_per_epoch (line 36) | def num_examples_per_epoch(self): method download_message (line 43) | def download_message(self): FILE: model_zoo/models/inception/inception/flowers_eval.py function main (line 30) | def main(unused_argv=None): FILE: model_zoo/models/inception/inception/flowers_train.py function main (line 31) | def main(_): FILE: model_zoo/models/inception/inception/image_processing.py function inputs (line 74) | def inputs(dataset, batch_size=None, num_preprocess_threads=None): function distorted_inputs (line 107) | def distorted_inputs(dataset, batch_size=None, num_preprocess_threads=No... function decode_jpeg (line 140) | def decode_jpeg(image_buffer, scope=None): function distort_color (line 163) | def distort_color(image, thread_id=0, scope=None): function distort_image (line 197) | def distort_image(image, height, width, bbox, thread_id=0, scope=None): function eval_image (line 277) | def eval_image(image, height, width, scope=None): function image_preprocessing (line 301) | def image_preprocessing(image_buffer, bbox, train, thread_id=0): function parse_example_proto (line 336) | def parse_example_proto(example_serialized): function batch_inputs (line 407) | def batch_inputs(dataset, batch_size, train, num_preprocess_threads=None, FILE: model_zoo/models/inception/inception/imagenet_data.py class ImagenetData (line 26) | class ImagenetData(Dataset): method __init__ (line 29) | def __init__(self, subset): method num_classes (line 32) | def num_classes(self): method num_examples_per_epoch (line 36) | def num_examples_per_epoch(self): method download_message (line 44) | def download_message(self): FILE: model_zoo/models/inception/inception/imagenet_distributed_train.py function main (line 32) | def main(unused_args): FILE: model_zoo/models/inception/inception/imagenet_eval.py function main (line 36) | def main(unused_argv=None): FILE: model_zoo/models/inception/inception/imagenet_train.py function main (line 31) | def main(_): FILE: model_zoo/models/inception/inception/inception_distributed_train.py function train (line 90) | def train(target, dataset, cluster_spec): FILE: model_zoo/models/inception/inception/inception_eval.py function _eval_once (line 55) | def _eval_once(saver, summary_writer, top_1_op, top_5_op, summary_op): function evaluate (line 136) | def evaluate(dataset): FILE: model_zoo/models/inception/inception/inception_model.py function inference (line 48) | def inference(images, num_classes, for_training=False, restore_logits=True, function loss (line 98) | def loss(logits, labels, batch_size=None): function _activation_summary (line 138) | def _activation_summary(x): function _activation_summaries (line 154) | def _activation_summaries(endpoints): FILE: model_zoo/models/inception/inception/inception_train.py function _tower_loss (line 82) | def _tower_loss(images, labels, num_classes, scope): function _average_gradients (line 142) | def _average_gradients(tower_grads): function train (line 180) | def train(dataset): FILE: model_zoo/models/inception/inception/slim/collections_test.py function get_variables (line 25) | def get_variables(scope=None): function get_variables_by_name (line 29) | def get_variables_by_name(name): class CollectionsTest (line 33) | class CollectionsTest(tf.test.TestCase): method testVariables (line 35) | def testVariables(self): method testVariablesWithoutBatchNorm (line 51) | def testVariablesWithoutBatchNorm(self): method testVariablesByLayer (line 67) | def testVariablesByLayer(self): method testVariablesToRestore (line 94) | def testVariablesToRestore(self): method testVariablesToRestoreWithoutLogits (line 107) | def testVariablesToRestoreWithoutLogits(self): method testRegularizationLosses (line 119) | def testRegularizationLosses(self): method testTotalLossWithoutRegularization (line 129) | def testTotalLossWithoutRegularization(self): method testTotalLossWithRegularization (line 154) | def testTotalLossWithRegularization(self): FILE: model_zoo/models/inception/inception/slim/inception_model.py function inception_v3 (line 52) | def inception_v3(inputs, function inception_v3_parameters (line 333) | def inception_v3_parameters(weight_decay=0.00004, stddev=0.1, FILE: model_zoo/models/inception/inception/slim/inception_test.py class InceptionTest (line 25) | class InceptionTest(tf.test.TestCase): method testBuildLogits (line 27) | def testBuildLogits(self): method testBuildEndPoints (line 38) | def testBuildEndPoints(self): method testVariablesSetDevice (line 57) | def testVariablesSetDevice(self): method testHalfSizeImages (line 73) | def testHalfSizeImages(self): method testUnknowBatchSize (line 87) | def testUnknowBatchSize(self): method testEvaluation (line 102) | def testEvaluation(self): method testTrainEvalWithReuse (line 115) | def testTrainEvalWithReuse(self): FILE: model_zoo/models/inception/inception/slim/losses.py function l1_regularizer (line 37) | def l1_regularizer(weight=1.0, scope=None): function l2_regularizer (line 56) | def l2_regularizer(weight=1.0, scope=None): function l1_l2_regularizer (line 75) | def l1_l2_regularizer(weight_l1=1.0, weight_l2=1.0, scope=None): function l1_loss (line 102) | def l1_loss(tensor, weight=1.0, scope=None): function l2_loss (line 122) | def l2_loss(tensor, weight=1.0, scope=None): function cross_entropy_loss (line 142) | def cross_entropy_loss(logits, one_hot_labels, label_smoothing=0, FILE: model_zoo/models/inception/inception/slim/losses_test.py class LossesTest (line 26) | class LossesTest(tf.test.TestCase): method testL1Loss (line 28) | def testL1Loss(self): method testL2Loss (line 38) | def testL2Loss(self): class RegularizersTest (line 49) | class RegularizersTest(tf.test.TestCase): method testL1Regularizer (line 51) | def testL1Regularizer(self): method testL1RegularizerWithScope (line 60) | def testL1RegularizerWithScope(self): method testL1RegularizerWithWeight (line 69) | def testL1RegularizerWithWeight(self): method testL2Regularizer (line 79) | def testL2Regularizer(self): method testL2RegularizerWithScope (line 88) | def testL2RegularizerWithScope(self): method testL2RegularizerWithWeight (line 97) | def testL2RegularizerWithWeight(self): method testL1L2Regularizer (line 107) | def testL1L2Regularizer(self): method testL1L2RegularizerWithScope (line 116) | def testL1L2RegularizerWithScope(self): method testL1L2RegularizerWithWeights (line 125) | def testL1L2RegularizerWithWeights(self): class CrossEntropyLossTest (line 138) | class CrossEntropyLossTest(tf.test.TestCase): method testCrossEntropyLossAllCorrect (line 140) | def testCrossEntropyLossAllCorrect(self): method testCrossEntropyLossAllWrong (line 152) | def testCrossEntropyLossAllWrong(self): method testCrossEntropyLossAllWrongWithWeight (line 164) | def testCrossEntropyLossAllWrongWithWeight(self): FILE: model_zoo/models/inception/inception/slim/ops.py function batch_norm (line 43) | def batch_norm(inputs, function _two_element_tuple (line 135) | def _two_element_tuple(int_or_tuple): function conv2d (line 167) | def conv2d(inputs, function fc (line 250) | def fc(inputs, function one_hot_encoding (line 320) | def one_hot_encoding(labels, num_classes, scope=None): function max_pool (line 342) | def max_pool(inputs, kernel_size, stride=2, padding='VALID', scope=None): function avg_pool (line 374) | def avg_pool(inputs, kernel_size, stride=2, padding='VALID', scope=None): function dropout (line 404) | def dropout(inputs, keep_prob=0.5, is_training=True, scope=None): function flatten (line 424) | def flatten(inputs, scope=None): function repeat_op (line 446) | def repeat_op(repetitions, inputs, op, *args, **kwargs): FILE: model_zoo/models/inception/inception/slim/ops_test.py class ConvTest (line 31) | class ConvTest(tf.test.TestCase): method testCreateConv (line 33) | def testCreateConv(self): method testCreateSquareConv (line 41) | def testCreateSquareConv(self): method testCreateConvWithTensorShape (line 49) | def testCreateConvWithTensorShape(self): method testCreateFullyConv (line 57) | def testCreateFullyConv(self): method testCreateVerticalConv (line 65) | def testCreateVerticalConv(self): method testCreateHorizontalConv (line 74) | def testCreateHorizontalConv(self): method testCreateConvWithStride (line 83) | def testCreateConvWithStride(self): method testCreateConvCreatesWeightsAndBiasesVars (line 92) | def testCreateConvCreatesWeightsAndBiasesVars(self): method testCreateConvWithScope (line 102) | def testCreateConvWithScope(self): method testCreateConvWithoutActivation (line 109) | def testCreateConvWithoutActivation(self): method testCreateConvValid (line 116) | def testCreateConvValid(self): method testCreateConvWithWD (line 123) | def testCreateConvWithWD(self): method testCreateConvWithoutWD (line 134) | def testCreateConvWithoutWD(self): method testReuseVars (line 142) | def testReuseVars(self): method testNonReuseVars (line 151) | def testNonReuseVars(self): method testReuseConvWithWD (line 160) | def testReuseConvWithWD(self): method testConvWithBatchNorm (line 174) | def testConvWithBatchNorm(self): method testReuseConvWithBatchNorm (line 185) | def testReuseConvWithBatchNorm(self): class FCTest (line 197) | class FCTest(tf.test.TestCase): method testCreateFC (line 199) | def testCreateFC(self): method testCreateFCWithScope (line 207) | def testCreateFCWithScope(self): method testCreateFcCreatesWeightsAndBiasesVars (line 214) | def testCreateFcCreatesWeightsAndBiasesVars(self): method testReuseVars (line 224) | def testReuseVars(self): method testNonReuseVars (line 233) | def testNonReuseVars(self): method testCreateFCWithoutActivation (line 242) | def testCreateFCWithoutActivation(self): method testCreateFCWithWD (line 249) | def testCreateFCWithWD(self): method testCreateFCWithoutWD (line 260) | def testCreateFCWithoutWD(self): method testReuseFCWithWD (line 268) | def testReuseFCWithWD(self): method testFCWithBatchNorm (line 281) | def testFCWithBatchNorm(self): method testReuseFCWithBatchNorm (line 292) | def testReuseFCWithBatchNorm(self): class MaxPoolTest (line 303) | class MaxPoolTest(tf.test.TestCase): method testCreateMaxPool (line 305) | def testCreateMaxPool(self): method testCreateSquareMaxPool (line 313) | def testCreateSquareMaxPool(self): method testCreateMaxPoolWithScope (line 321) | def testCreateMaxPoolWithScope(self): method testCreateMaxPoolSAME (line 328) | def testCreateMaxPoolSAME(self): method testCreateMaxPoolStrideSAME (line 335) | def testCreateMaxPoolStrideSAME(self): method testGlobalMaxPool (line 342) | def testGlobalMaxPool(self): class AvgPoolTest (line 350) | class AvgPoolTest(tf.test.TestCase): method testCreateAvgPool (line 352) | def testCreateAvgPool(self): method testCreateSquareAvgPool (line 360) | def testCreateSquareAvgPool(self): method testCreateAvgPoolWithScope (line 368) | def testCreateAvgPoolWithScope(self): method testCreateAvgPoolSAME (line 375) | def testCreateAvgPoolSAME(self): method testCreateAvgPoolStrideSAME (line 382) | def testCreateAvgPoolStrideSAME(self): method testGlobalAvgPool (line 389) | def testGlobalAvgPool(self): class OneHotEncodingTest (line 397) | class OneHotEncodingTest(tf.test.TestCase): method testOneHotEncodingCreate (line 399) | def testOneHotEncodingCreate(self): method testOneHotEncoding (line 406) | def testOneHotEncoding(self): class DropoutTest (line 416) | class DropoutTest(tf.test.TestCase): method testCreateDropout (line 418) | def testCreateDropout(self): method testCreateDropoutNoTraining (line 426) | def testCreateDropoutNoTraining(self): class FlattenTest (line 434) | class FlattenTest(tf.test.TestCase): method testFlatten4D (line 436) | def testFlatten4D(self): method testFlatten3D (line 445) | def testFlatten3D(self): method testFlattenBatchSize (line 454) | def testFlattenBatchSize(self): class BatchNormTest (line 468) | class BatchNormTest(tf.test.TestCase): method testCreateOp (line 470) | def testCreateOp(self): method testCreateVariables (line 478) | def testCreateVariables(self): method testCreateVariablesWithScale (line 492) | def testCreateVariablesWithScale(self): method testCreateVariablesWithoutCenterWithScale (line 506) | def testCreateVariablesWithoutCenterWithScale(self): method testCreateVariablesWithoutCenterWithoutScale (line 520) | def testCreateVariablesWithoutCenterWithoutScale(self): method testMovingAverageVariables (line 534) | def testMovingAverageVariables(self): method testUpdateOps (line 544) | def testUpdateOps(self): method testReuseVariables (line 557) | def testReuseVariables(self): method testReuseUpdateOps (line 570) | def testReuseUpdateOps(self): method testCreateMovingVars (line 579) | def testCreateMovingVars(self): method testComputeMovingVars (line 593) | def testComputeMovingVars(self): method testEvalMovingVars (line 623) | def testEvalMovingVars(self): method testReuseVars (line 657) | def testReuseVars(self): FILE: model_zoo/models/inception/inception/slim/scopes.py function _get_arg_stack (line 63) | def _get_arg_stack(): function _current_arg_scope (line 73) | def _current_arg_scope(): function _add_op (line 78) | def _add_op(op): function arg_scope (line 85) | def arg_scope(list_ops_or_scope, **kwargs): function add_arg_scope (line 138) | def add_arg_scope(func): function has_arg_scope (line 160) | def has_arg_scope(func): FILE: model_zoo/models/inception/inception/slim/scopes_test.py function func1 (line 26) | def func1(*args, **kwargs): function func2 (line 31) | def func2(*args, **kwargs): class ArgScopeTest (line 35) | class ArgScopeTest(tf.test.TestCase): method testEmptyArgScope (line 37) | def testEmptyArgScope(self): method testCurrentArgScope (line 41) | def testCurrentArgScope(self): method testCurrentArgScopeNested (line 49) | def testCurrentArgScopeNested(self): method testReuseArgScope (line 60) | def testReuseArgScope(self): method testReuseArgScopeNested (line 70) | def testReuseArgScopeNested(self): method testSimpleArgScope (line 86) | def testSimpleArgScope(self): method testSimpleArgScopeWithTuple (line 95) | def testSimpleArgScopeWithTuple(self): method testOverwriteArgScope (line 104) | def testOverwriteArgScope(self): method testNestedArgScope (line 112) | def testNestedArgScope(self): method testSharedArgScope (line 125) | def testSharedArgScope(self): method testSharedArgScopeTuple (line 136) | def testSharedArgScopeTuple(self): method testPartiallySharedArgScope (line 147) | def testPartiallySharedArgScope(self): FILE: model_zoo/models/inception/inception/slim/variables.py function add_variable (line 96) | def add_variable(var, restore=True): function get_variables (line 114) | def get_variables(scope=None, suffix=None): function get_variables_to_restore (line 130) | def get_variables_to_restore(): function get_variables_by_name (line 139) | def get_variables_by_name(given_name, scope=None): function get_unique_variable (line 152) | def get_unique_variable(name): class VariableDeviceChooser (line 174) | class VariableDeviceChooser(object): method __init__ (line 181) | def __init__(self, method __call__ (line 198) | def __call__(self, op): function variable_device (line 209) | def variable_device(device, name): function global_step (line 221) | def global_step(device=''): function variable (line 248) | def variable(name, shape=None, dtype=tf.float32, initializer=None, FILE: model_zoo/models/inception/inception/slim/variables_test.py class VariablesTest (line 26) | class VariablesTest(tf.test.TestCase): method testCreateVariable (line 28) | def testCreateVariable(self): method testGetVariables (line 35) | def testGetVariables(self): method testGetVariablesSuffix (line 45) | def testGetVariablesSuffix(self): method testGetVariableWithSingleVar (line 54) | def testGetVariableWithSingleVar(self): method testGetVariableWithDistractors (line 60) | def testGetVariableWithDistractors(self): method testGetVariableThrowsExceptionWithNoMatch (line 69) | def testGetVariableThrowsExceptionWithNoMatch(self): method testGetThrowsExceptionWithChildrenButNoMatch (line 75) | def testGetThrowsExceptionWithChildrenButNoMatch(self): method testGetVariablesToRestore (line 84) | def testGetVariablesToRestore(self): method testNoneGetVariablesToRestore (line 92) | def testNoneGetVariablesToRestore(self): method testGetMixedVariablesToRestore (line 101) | def testGetMixedVariablesToRestore(self): method testReuseVariable (line 112) | def testReuseVariable(self): method testVariableWithDevice (line 121) | def testVariableWithDevice(self): method testVariableWithDeviceFromScope (line 129) | def testVariableWithDeviceFromScope(self): method testVariableWithDeviceFunction (line 137) | def testVariableWithDeviceFunction(self): method testVariableWithReplicaDeviceSetter (line 167) | def testVariableWithReplicaDeviceSetter(self): method testVariableWithVariableDeviceChooser (line 190) | def testVariableWithVariableDeviceChooser(self): method testVariableGPUPlacement (line 215) | def testVariableGPUPlacement(self): method testVariableCollection (line 240) | def testVariableCollection(self): method testVariableCollections (line 247) | def testVariableCollections(self): method testVariableCollectionsWithArgScope (line 254) | def testVariableCollectionsWithArgScope(self): method testVariableCollectionsWithArgScopeNested (line 261) | def testVariableCollectionsWithArgScopeNested(self): method testVariableCollectionsWithArgScopeNonNested (line 270) | def testVariableCollectionsWithArgScopeNonNested(self): method testVariableRestoreWithArgScopeNested (line 280) | def testVariableRestoreWithArgScopeNested(self): class GetVariablesByNameTest (line 295) | class GetVariablesByNameTest(tf.test.TestCase): method testGetVariableGivenNameScoped (line 297) | def testGetVariableGivenNameScoped(self): method testGetVariablesByNameReturnsByValueWithScope (line 305) | def testGetVariablesByNameReturnsByValueWithScope(self): method testGetVariablesByNameReturnsByValueWithoutScope (line 319) | def testGetVariablesByNameReturnsByValueWithoutScope(self): class GlobalStepTest (line 333) | class GlobalStepTest(tf.test.TestCase): method testStable (line 335) | def testStable(self): method testDevice (line 341) | def testDevice(self): method testDeviceFn (line 347) | def testDeviceFn(self): method testReplicaDeviceSetter (line 365) | def testReplicaDeviceSetter(self): method testVariableWithVariableDeviceChooser (line 377) | def testVariableWithVariableDeviceChooser(self): FILE: model_zoo/models/lm_1b/data_utils.py class Vocabulary (line 24) | class Vocabulary(object): method __init__ (line 27) | def __init__(self, filename): method bos (line 58) | def bos(self): method eos (line 62) | def eos(self): method unk (line 66) | def unk(self): method size (line 70) | def size(self): method word_to_id (line 73) | def word_to_id(self, word): method id_to_word (line 78) | def id_to_word(self, cur_id): method decode (line 83) | def decode(self, cur_ids): method encode (line 87) | def encode(self, sentence): class CharsVocabulary (line 93) | class CharsVocabulary(Vocabulary): method __init__ (line 96) | def __init__(self, filename, max_word_length): method word_char_ids (line 134) | def word_char_ids(self): method max_word_length (line 138) | def max_word_length(self): method _convert_word_to_char_ids (line 141) | def _convert_word_to_char_ids(self, word): method word_to_char_ids (line 152) | def word_to_char_ids(self, word): method encode_chars (line 158) | def encode_chars(self, sentence): function get_batch (line 164) | def get_batch(generator, batch_size, num_steps, max_word_length, pad=Fal... class LM1BDataset (line 217) | class LM1BDataset(object): method __init__ (line 223) | def __init__(self, filepattern, vocab): method _load_random_shard (line 234) | def _load_random_shard(self): method _load_shard (line 238) | def _load_shard(self, shard_name): method _get_sentence (line 265) | def _get_sentence(self, forever=True): method get_batch (line 273) | def get_batch(self, batch_size, num_steps, pad=False, forever=True): method vocab (line 278) | def vocab(self): FILE: model_zoo/models/lm_1b/lm_1b_eval.py function _LoadModel (line 73) | def _LoadModel(gd_file, ckpt_file): function _EvalModel (line 120) | def _EvalModel(dataset): function _SampleSoftmax (line 158) | def _SampleSoftmax(softmax): function _SampleModel (line 162) | def _SampleModel(prefix_words, vocab): function _DumpEmb (line 213) | def _DumpEmb(vocab): function _DumpSentenceEmbedding (line 250) | def _DumpSentenceEmbedding(sentence, vocab): function main (line 290) | def main(unused_argv): FILE: model_zoo/models/namignizer/data_utils.py function read_names (line 31) | def read_names(names_path): function _letter_to_number (line 52) | def _letter_to_number(letter): function namignizer_iterator (line 58) | def namignizer_iterator(names, counts, batch_size, num_steps, epoch_size): function name_to_batch (line 97) | def name_to_batch(name, batch_size, num_steps): FILE: model_zoo/models/namignizer/model.py class NamignizerModel (line 23) | class NamignizerModel(object): method __init__ (line 26) | def __init__(self, is_training, config): method assign_lr (line 92) | def assign_lr(self, session, lr_value): method input_data (line 96) | def input_data(self): method targets (line 100) | def targets(self): method activations (line 104) | def activations(self): method weights (line 108) | def weights(self): method initial_state (line 112) | def initial_state(self): method cost (line 116) | def cost(self): method loss (line 120) | def loss(self): method final_state (line 124) | def final_state(self): method lr (line 128) | def lr(self): method train_op (line 132) | def train_op(self): FILE: model_zoo/models/namignizer/names.py class SmallConfig (line 50) | class SmallConfig(object): class LargeConfig (line 67) | class LargeConfig(object): class TestConfig (line 84) | class TestConfig(object): function run_epoch (line 101) | def run_epoch(session, m, names, counts, epoch_size, eval_op, verbose=Fa... function train (line 141) | def train(data_dir, checkpoint_path, config): function namignize (line 178) | def namignize(names, checkpoint_path, config): function namignator (line 212) | def namignator(checkpoint_path, config): FILE: model_zoo/models/neural_gpu/data_utils.py function pad (line 37) | def pad(l): function add (line 53) | def add(n1, n2, base=10): function init_data (line 73) | def init_data(task, length, nbr_cases, nclass): function to_symbol (line 206) | def to_symbol(i): function to_id (line 214) | def to_id(s): function get_batch (line 221) | def get_batch(max_length, batch_size, do_train, task, offset=None, prese... function print_out (line 255) | def print_out(s, newline=True): function decode (line 268) | def decode(output): function accuracy (line 272) | def accuracy(inpt, output, target, batch_size, nprint): function safe_exp (line 312) | def safe_exp(x): FILE: model_zoo/models/neural_gpu/neural_gpu.py function conv_linear (line 24) | def conv_linear(args, kw, kh, nin, nout, do_bias, bias_start, prefix): function sigmoid_cutoff (line 41) | def sigmoid_cutoff(x, cutoff): function tanh_cutoff (line 49) | def tanh_cutoff(x, cutoff): function conv_gru (line 57) | def conv_gru(inpts, mem, kw, kh, nmaps, cutoff, prefix): function _custom_id_grad (line 70) | def _custom_id_grad(_, grads): function quantize (line 74) | def quantize(t, quant_scale, max_value=1.0): function quantize_weights_op (line 83) | def quantize_weights_op(quant_scale, max_value): function relaxed_average (line 89) | def relaxed_average(var_name_suffix, rx_step): function relaxed_distance (line 105) | def relaxed_distance(rx_step): function make_dense (line 119) | def make_dense(targets, noclass): function check_for_zero (line 130) | def check_for_zero(sparse): class NeuralGPU (line 143) | class NeuralGPU(object): method __init__ (line 146) | def __init__(self, nmaps, vec_size, niclass, noclass, dropout, rx_step, method step (line 290) | def step(self, sess, inp, target, do_backward, noise_param=None, FILE: model_zoo/models/neural_gpu/neural_gpu_trainer.py function initialize (line 70) | def initialize(sess): function single_test (line 154) | def single_test(l, model, sess, task, nprint, batch_size, print_out=True, function multi_test (line 192) | def multi_test(l, model, sess, task, nprint, batch_size, offset=None, function train (line 218) | def train(): function animate (line 338) | def animate(l, test_data, anim_size): function evaluate (line 399) | def evaluate(): function interactive (line 429) | def interactive(): function main (line 450) | def main(_): FILE: model_zoo/models/neural_programmer/data_utils.py function return_index (line 24) | def return_index(a): function construct_vocab (line 30) | def construct_vocab(data, utility, add_word=False): function word_lookup (line 82) | def word_lookup(word, utility): function convert_to_int_2d_and_pad (line 89) | def convert_to_int_2d_and_pad(a, utility): function convert_to_bool_and_pad (line 106) | def convert_to_bool_and_pad(a, utility): function partial_match (line 121) | def partial_match(question, table, number): function exact_match (line 143) | def exact_match(question, table, number): function partial_column_match (line 173) | def partial_column_match(question, table, number): function exact_column_match (line 184) | def exact_column_match(question, table, number): function get_max_entry (line 200) | def get_max_entry(a): function list_join (line 218) | def list_join(a): function group_by_max (line 225) | def group_by_max(table, number): function pick_one (line 248) | def pick_one(a): function check_processed_cols (line 255) | def check_processed_cols(col, utility): function complete_wiki_processing (line 263) | def complete_wiki_processing(data, utility, train=True): function add_special_words (line 533) | def add_special_words(utility): function perform_word_cutoff (line 559) | def perform_word_cutoff(utility): function word_dropout (line 570) | def word_dropout(question, utility): function generate_feed_dict (line 584) | def generate_feed_dict(data, curr, batch_size, gr, train=False, utility=... FILE: model_zoo/models/neural_programmer/model.py class Graph (line 23) | class Graph(): method __init__ (line 25) | def __init__(self, utility, batch_size, max_passes, mode="train"): method LSTM_question_embedding (line 95) | def LSTM_question_embedding(self, sentence, sentence_length): method history_recurrent_step (line 127) | def history_recurrent_step(self, curr_hprev, hprev): method question_number_softmax (line 134) | def question_number_softmax(self, hidden_vectors): method perform_attention (line 187) | def perform_attention(self, context_vector, hidden_vectors, length, ma... method get_column_hidden_vectors (line 201) | def get_column_hidden_vectors(self): method create_summary_embeddings (line 210) | def create_summary_embeddings(self): method compute_column_softmax (line 220) | def compute_column_softmax(self, column_controller_vector, time_step): method compute_first_or_last (line 239) | def compute_first_or_last(self, select, first=True): method make_hard_softmax (line 265) | def make_hard_softmax(self, softmax): method compute_max_or_min (line 274) | def compute_max_or_min(self, select, maxi=True): method perform_operations (line 304) | def perform_operations(self, softmax, full_column_softmax, select, method one_pass (line 391) | def one_pass(self, select, question_embedding, hidden_vectors, hprev, method compute_lookup_error (line 429) | def compute_lookup_error(self, val): method soft_min (line 445) | def soft_min(self, x, y): method error_computation (line 451) | def error_computation(self): method batch_process (line 490) | def batch_process(self): method compute_error (line 578) | def compute_error(self): method create_graph (line 631) | def create_graph(self, params, global_step): FILE: model_zoo/models/neural_programmer/neural_programmer.py class Utility (line 81) | class Utility: method __init__ (line 83) | def __init__(self): function evaluate (line 106) | def evaluate(sess, data, batch_size, graph, i): function Train (line 121) | def Train(graph, utility, batch_size, train_data, sess, model_dir, function master (line 151) | def master(train_data, dev_data, utility): function main (line 204) | def main(args): FILE: model_zoo/models/neural_programmer/nn_utils.py function get_embedding (line 20) | def get_embedding(word, utility, params): function apply_dropout (line 24) | def apply_dropout(x, dropout_rate, mode): function LSTMCell (line 33) | def LSTMCell(x, mprev, cprev, key, params): FILE: model_zoo/models/neural_programmer/parameters.py class Parameters (line 22) | class Parameters: method __init__ (line 24) | def __init__(self, u): method parameters (line 29) | def parameters(self, utility): method RandomUniformInit (line 78) | def RandomUniformInit(self, shape): FILE: model_zoo/models/neural_programmer/wiki_data.py function is_nan_or_inf (line 34) | def is_nan_or_inf(number): function strip_accents (line 37) | def strip_accents(s): function correct_unicode (line 43) | def correct_unicode(string): function simple_normalize (line 64) | def simple_normalize(string): function full_normalize (line 75) | def full_normalize(string): function final_normalize (line 103) | def final_normalize(string): function is_number (line 118) | def is_number(x): class WikiExample (line 128) | class WikiExample(object): method __init__ (line 130) | def __init__(self, id, question, answer, table_key): class TableInfo (line 144) | class TableInfo(object): method __init__ (line 146) | def __init__(self, word_columns, word_column_names, word_column_indices, class WikiQuestionLoader (line 160) | class WikiQuestionLoader(object): method __init__ (line 162) | def __init__(self, data_name, root_folder): method num_questions (line 168) | def num_questions(self): method load_qa (line 171) | def load_qa(self): method load (line 180) | def load(self): function is_date (line 184) | def is_date(word): class WikiQuestionGenerator (line 200) | class WikiQuestionGenerator(object): method __init__ (line 202) | def __init__(self, train_name, dev_name, test_name, root_folder): method is_money (line 219) | def is_money(self, word): method remove_consecutive (line 228) | def remove_consecutive(self, ner_tags, ner_values): method pre_process_sentence (line 245) | def pre_process_sentence(self, tokens, ner_tags, ner_values): method load_annotated_data (line 285) | def load_annotated_data(self, in_file): method is_number_column (line 304) | def is_number_column(self, a): method convert_table (line 312) | def convert_table(self, table): method load_annotated_tables (line 321) | def load_annotated_tables(self): method answer_classification (line 410) | def answer_classification(self): method load (line 504) | def load(self): FILE: model_zoo/models/resnet/cifar_input.py function build_input (line 22) | def build_input(dataset, data_path, batch_size, mode): FILE: model_zoo/models/resnet/resnet_main.py function train (line 47) | def train(hps): function evaluate (line 99) | def evaluate(hps): function main (line 156) | def main(_): FILE: model_zoo/models/resnet/resnet_model.py class ResNet (line 37) | class ResNet(object): method __init__ (line 40) | def __init__(self, hps, images, labels, mode): method build_graph (line 56) | def build_graph(self): method _stride_arr (line 64) | def _stride_arr(self, stride): method _build_model (line 68) | def _build_model(self): method _build_train_op (line 127) | def _build_train_op(self): method _batch_norm (line 148) | def _batch_norm(self, name, x): method _residual (line 193) | def _residual(self, x, in_filter, out_filter, stride, method _bottleneck_residual (line 226) | def _bottleneck_residual(self, x, in_filter, out_filter, stride, method _decay (line 261) | def _decay(self): method _conv (line 271) | def _conv(self, name, x, filter_size, in_filters, out_filters, strides): method _relu (line 281) | def _relu(self, x, leakiness=0.0): method _fully_connected (line 285) | def _fully_connected(self, x, out_dim): method _global_avg_pool (line 295) | def _global_avg_pool(self, x): FILE: model_zoo/models/slim/datasets/cifar10.py function get_split (line 44) | def get_split(split_name, dataset_dir, file_pattern=None, reader=None): FILE: model_zoo/models/slim/datasets/dataset_factory.py function get_dataset (line 34) | def get_dataset(name, split_name, dataset_dir, file_pattern=None, reader... FILE: model_zoo/models/slim/datasets/dataset_utils.py function int64_feature (line 30) | def int64_feature(values): function bytes_feature (line 44) | def bytes_feature(values): function image_to_tfexample (line 56) | def image_to_tfexample(image_data, image_format, height, width, class_id): function download_and_uncompress_tarball (line 66) | def download_and_uncompress_tarball(tarball_url, dataset_dir): function write_label_file (line 87) | def write_label_file(labels_to_class_names, dataset_dir, function has_labels (line 103) | def has_labels(dataset_dir, filename=LABELS_FILENAME): function read_label_file (line 116) | def read_label_file(dataset_dir, filename=LABELS_FILENAME): FILE: model_zoo/models/slim/datasets/download_and_convert_cifar10.py function _add_to_tfrecord (line 64) | def _add_to_tfrecord(filename, tfrecord_writer, offset=0): function _get_output_filename (line 108) | def _get_output_filename(dataset_dir, split_name): function _download_and_uncompress_dataset (line 121) | def _download_and_uncompress_dataset(dataset_dir): function _clean_up_temporary_files (line 142) | def _clean_up_temporary_files(dataset_dir): function run (line 156) | def run(dataset_dir): FILE: model_zoo/models/slim/datasets/download_and_convert_flowers.py class ImageReader (line 52) | class ImageReader(object): method __init__ (line 55) | def __init__(self): method read_image_dims (line 60) | def read_image_dims(self, sess, image_data): method decode_jpeg (line 64) | def decode_jpeg(self, sess, image_data): function _get_filenames_and_classes (line 72) | def _get_filenames_and_classes(dataset_dir): function _get_dataset_filename (line 101) | def _get_dataset_filename(dataset_dir, split_name, shard_id): function _convert_dataset (line 107) | def _convert_dataset(split_name, filenames, class_names_to_ids, dataset_... function _clean_up_temporary_files (line 153) | def _clean_up_temporary_files(dataset_dir): function _dataset_exists (line 167) | def _dataset_exists(dataset_dir): function run (line 177) | def run(dataset_dir): FILE: model_zoo/models/slim/datasets/download_and_convert_mnist.py function _extract_images (line 64) | def _extract_images(filename, num_images): function _extract_labels (line 84) | def _extract_labels(filename, num_labels): function _add_to_tfrecord (line 102) | def _add_to_tfrecord(data_filename, labels_filename, num_images, function _get_output_filename (line 132) | def _get_output_filename(dataset_dir, split_name): function _download_dataset (line 145) | def _download_dataset(dataset_dir): function _clean_up_temporary_files (line 172) | def _clean_up_temporary_files(dataset_dir): function run (line 186) | def run(dataset_dir): FILE: model_zoo/models/slim/datasets/flowers.py function get_split (line 44) | def get_split(split_name, dataset_dir, file_pattern=None, reader=None): FILE: model_zoo/models/slim/datasets/imagenet.py function create_readable_names_for_imagenet_labels (line 62) | def create_readable_names_for_imagenet_labels(): function get_split (line 118) | def get_split(split_name, dataset_dir, file_pattern=None, reader=None): FILE: model_zoo/models/slim/datasets/mnist.py function get_split (line 44) | def get_split(split_name, dataset_dir, file_pattern=None, reader=None): FILE: model_zoo/models/slim/deployment/model_deploy.py function create_clones (line 145) | def create_clones(config, model_fn, args=None, kwargs=None): function _gather_clone_loss (line 200) | def _gather_clone_loss(clone, num_clones, regularization_losses): function _optimize_clone (line 243) | def _optimize_clone(optimizer, clone, num_clones, regularization_losses, function optimize_clones (line 269) | def optimize_clones(clones, optimizer, function deploy (line 314) | def deploy(config, function _sum_clones_gradients (line 419) | def _sum_clones_gradients(clone_grads): function _add_gradients_summaries (line 452) | def _add_gradients_summaries(grads_and_vars): class DeploymentConfig (line 479) | class DeploymentConfig(object): method __init__ (line 487) | def __init__(self, method num_clones (line 540) | def num_clones(self): method clone_on_cpu (line 544) | def clone_on_cpu(self): method replica_id (line 548) | def replica_id(self): method num_replicas (line 552) | def num_replicas(self): method num_ps_tasks (line 556) | def num_ps_tasks(self): method ps_device (line 560) | def ps_device(self): method worker_device (line 564) | def worker_device(self): method caching_device (line 567) | def caching_device(self): method clone_device (line 580) | def clone_device(self, clone_index): method clone_scope (line 604) | def clone_scope(self, clone_index): method optimizer_device (line 623) | def optimizer_device(self): method inputs_device (line 634) | def inputs_device(self): method variables_device (line 646) | def variables_device(self): FILE: model_zoo/models/slim/deployment/model_deploy_test.py class DeploymentConfigTest (line 29) | class DeploymentConfigTest(tf.test.TestCase): method testDefaults (line 31) | def testDefaults(self): method testCPUonly (line 42) | def testCPUonly(self): method testMultiGPU (line 52) | def testMultiGPU(self): method testPS (line 64) | def testPS(self): method testMultiGPUPS (line 88) | def testMultiGPUPS(self): method testReplicasPS (line 103) | def testReplicasPS(self): method testReplicasMultiGPUPS (line 115) | def testReplicasMultiGPUPS(self): method testVariablesPS (line 130) | def testVariablesPS(self): function LogisticClassifier (line 149) | def LogisticClassifier(inputs, labels, scope=None, reuse=None): function BatchNormClassifier (line 158) | def BatchNormClassifier(inputs, labels, scope=None, reuse=None): class CreatecloneTest (line 169) | class CreatecloneTest(tf.test.TestCase): method setUp (line 171) | def setUp(self): method testCreateLogisticClassifier (line 183) | def testCreateLogisticClassifier(self): method testCreateSingleclone (line 209) | def testCreateSingleclone(self): method testCreateMulticlone (line 235) | def testCreateMulticlone(self): method testCreateOnecloneWithPS (line 263) | def testCreateOnecloneWithPS(self): method testCreateMulticloneWithPS (line 288) | def testCreateMulticloneWithPS(self): class OptimizeclonesTest (line 316) | class OptimizeclonesTest(tf.test.TestCase): method setUp (line 318) | def setUp(self): method testCreateLogisticClassifier (line 330) | def testCreateLogisticClassifier(self): method testCreateSingleclone (line 356) | def testCreateSingleclone(self): method testCreateMulticlone (line 382) | def testCreateMulticlone(self): method testCreateMulticloneCPU (line 409) | def testCreateMulticloneCPU(self): method testCreateOnecloneWithPS (line 437) | def testCreateOnecloneWithPS(self): class DeployTest (line 465) | class DeployTest(tf.test.TestCase): method setUp (line 467) | def setUp(self): method testLocalTrainOp (line 479) | def testLocalTrainOp(self): method testNoSummariesOnGPU (line 526) | def testNoSummariesOnGPU(self): method testNoSummariesOnGPUForEvals (line 545) | def testNoSummariesOnGPUForEvals(self): FILE: model_zoo/models/slim/download_and_convert_data.py function main (line 56) | def main(_): FILE: model_zoo/models/slim/eval_image_classifier.py function main (line 85) | def main(_): FILE: model_zoo/models/slim/nets/alexnet.py function alexnet_v2_arg_scope (line 45) | def alexnet_v2_arg_scope(weight_decay=0.0005): function alexnet_v2 (line 55) | def alexnet_v2(inputs, FILE: model_zoo/models/slim/nets/alexnet_test.py class AlexnetV2Test (line 27) | class AlexnetV2Test(tf.test.TestCase): method testBuild (line 29) | def testBuild(self): method testFullyConvolutional (line 40) | def testFullyConvolutional(self): method testEndPoints (line 51) | def testEndPoints(self): method testModelVariables (line 72) | def testModelVariables(self): method testEvaluation (line 99) | def testEvaluation(self): method testTrainEvalWithReuse (line 111) | def testTrainEvalWithReuse(self): method testForward (line 134) | def testForward(self): FILE: model_zoo/models/slim/nets/cifarnet.py function cifarnet (line 28) | def cifarnet(images, num_classes=10, is_training=False, function cifarnet_arg_scope (line 93) | def cifarnet_arg_scope(weight_decay=0.004): FILE: model_zoo/models/slim/nets/inception_resnet_v2.py function block35 (line 33) | def block35(net, scale=1.0, activation_fn=tf.nn.relu, scope=None, reuse=... function block17 (line 54) | def block17(net, scale=1.0, activation_fn=tf.nn.relu, scope=None, reuse=... function block8 (line 74) | def block8(net, scale=1.0, activation_fn=tf.nn.relu, scope=None, reuse=N... function inception_resnet_v2 (line 94) | def inception_resnet_v2(inputs, num_classes=1001, is_training=True, function inception_resnet_v2_arg_scope (line 254) | def inception_resnet_v2_arg_scope(weight_decay=0.00004, FILE: model_zoo/models/slim/nets/inception_resnet_v2_test.py class InceptionTest (line 25) | class InceptionTest(tf.test.TestCase): method testBuildLogits (line 27) | def testBuildLogits(self): method testBuildEndPoints (line 38) | def testBuildEndPoints(self): method testVariablesSetDevice (line 57) | def testVariablesSetDevice(self): method testHalfSizeImages (line 73) | def testHalfSizeImages(self): method testUnknownBatchSize (line 87) | def testUnknownBatchSize(self): method testEvaluation (line 102) | def testEvaluation(self): method testTrainEvalWithReuse (line 116) | def testTrainEvalWithReuse(self): FILE: model_zoo/models/slim/nets/inception_utils.py function inception_arg_scope (line 32) | def inception_arg_scope(weight_decay=0.00004, FILE: model_zoo/models/slim/nets/inception_v1.py function inception_v1_base (line 29) | def inception_v1_base(inputs, function inception_v1 (line 248) | def inception_v1(inputs, FILE: model_zoo/models/slim/nets/inception_v1_test.py class InceptionV1Test (line 29) | class InceptionV1Test(tf.test.TestCase): method testBuildClassificationNetwork (line 31) | def testBuildClassificationNetwork(self): method testBuildBaseNetwork (line 45) | def testBuildBaseNetwork(self): method testBuildOnlyUptoFinalEndpoint (line 61) | def testBuildOnlyUptoFinalEndpoint(self): method testBuildAndCheckAllEndPointsUptoMixed5c (line 78) | def testBuildAndCheckAllEndPointsUptoMixed5c(self): method testModelHasExpectedNumberOfParameters (line 109) | def testModelHasExpectedNumberOfParameters(self): method testHalfSizeImages (line 119) | def testHalfSizeImages(self): method testUnknownImageShape (line 129) | def testUnknownImageShape(self): method testUnknowBatchSize (line 147) | def testUnknowBatchSize(self): method testEvaluation (line 164) | def testEvaluation(self): method testTrainEvalWithReuse (line 179) | def testTrainEvalWithReuse(self): method testLogitsNotSqueezed (line 196) | def testLogitsNotSqueezed(self): FILE: model_zoo/models/slim/nets/inception_v2.py function inception_v2_base (line 29) | def inception_v2_base(inputs, function inception_v2 (line 416) | def inception_v2(inputs, function _reduced_kernel_size_for_small_input (line 489) | def _reduced_kernel_size_for_small_input(input_tensor, kernel_size): FILE: model_zoo/models/slim/nets/inception_v2_test.py class InceptionV2Test (line 29) | class InceptionV2Test(tf.test.TestCase): method testBuildClassificationNetwork (line 31) | def testBuildClassificationNetwork(self): method testBuildBaseNetwork (line 45) | def testBuildBaseNetwork(self): method testBuildOnlyUptoFinalEndpoint (line 61) | def testBuildOnlyUptoFinalEndpoint(self): method testBuildAndCheckAllEndPointsUptoMixed5c (line 77) | def testBuildAndCheckAllEndPointsUptoMixed5c(self): method testModelHasExpectedNumberOfParameters (line 106) | def testModelHasExpectedNumberOfParameters(self): method testBuildEndPointsWithDepthMultiplierLessThanOne (line 116) | def testBuildEndPointsWithDepthMultiplierLessThanOne(self): method testBuildEndPointsWithDepthMultiplierGreaterThanOne (line 136) | def testBuildEndPointsWithDepthMultiplierGreaterThanOne(self): method testRaiseValueErrorWithInvalidDepthMultiplier (line 156) | def testRaiseValueErrorWithInvalidDepthMultiplier(self): method testHalfSizeImages (line 167) | def testHalfSizeImages(self): method testUnknownImageShape (line 181) | def testUnknownImageShape(self): method testUnknowBatchSize (line 199) | def testUnknowBatchSize(self): method testEvaluation (line 216) | def testEvaluation(self): method testTrainEvalWithReuse (line 231) | def testTrainEvalWithReuse(self): method testLogitsNotSqueezed (line 248) | def testLogitsNotSqueezed(self): FILE: model_zoo/models/slim/nets/inception_v3.py function inception_v3_base (line 29) | def inception_v3_base(inputs, function inception_v3 (line 419) | def inception_v3(inputs, function _reduced_kernel_size_for_small_input (line 529) | def _reduced_kernel_size_for_small_input(input_tensor, kernel_size): FILE: model_zoo/models/slim/nets/inception_v3_test.py class InceptionV3Test (line 29) | class InceptionV3Test(tf.test.TestCase): method testBuildClassificationNetwork (line 31) | def testBuildClassificationNetwork(self): method testBuildBaseNetwork (line 45) | def testBuildBaseNetwork(self): method testBuildOnlyUptoFinalEndpoint (line 62) | def testBuildOnlyUptoFinalEndpoint(self): method testBuildAndCheckAllEndPointsUptoMixed7c (line 80) | def testBuildAndCheckAllEndPointsUptoMixed7c(self): method testModelHasExpectedNumberOfParameters (line 112) | def testModelHasExpectedNumberOfParameters(self): method testBuildEndPoints (line 122) | def testBuildEndPoints(self): method testBuildEndPointsWithDepthMultiplierLessThanOne (line 146) | def testBuildEndPointsWithDepthMultiplierLessThanOne(self): method testBuildEndPointsWithDepthMultiplierGreaterThanOne (line 166) | def testBuildEndPointsWithDepthMultiplierGreaterThanOne(self): method testRaiseValueErrorWithInvalidDepthMultiplier (line 186) | def testRaiseValueErrorWithInvalidDepthMultiplier(self): method testHalfSizeImages (line 197) | def testHalfSizeImages(self): method testUnknownImageShape (line 211) | def testUnknownImageShape(self): method testUnknowBatchSize (line 228) | def testUnknowBatchSize(self): method testEvaluation (line 245) | def testEvaluation(self): method testTrainEvalWithReuse (line 260) | def testTrainEvalWithReuse(self): method testLogitsNotSqueezed (line 278) | def testLogitsNotSqueezed(self): FILE: model_zoo/models/slim/nets/inception_v4.py function block_inception_a (line 34) | def block_inception_a(inputs, scope=None, reuse=None): function block_reduction_a (line 55) | def block_reduction_a(inputs, scope=None, reuse=None): function block_inception_b (line 75) | def block_inception_b(inputs, scope=None, reuse=None): function block_reduction_b (line 99) | def block_reduction_b(inputs, scope=None, reuse=None): function block_inception_c (line 121) | def block_inception_c(inputs, scope=None, reuse=None): function inception_v4_base (line 147) | def inception_v4_base(inputs, final_endpoint='Mixed_7d', scope=None): function inception_v4 (line 257) | def inception_v4(inputs, num_classes=1001, is_training=True, FILE: model_zoo/models/slim/nets/inception_v4_test.py class InceptionTest (line 25) | class InceptionTest(tf.test.TestCase): method testBuildLogits (line 27) | def testBuildLogits(self): method testBuildWithoutAuxLogits (line 46) | def testBuildWithoutAuxLogits(self): method testAllEndPointsShapes (line 58) | def testAllEndPointsShapes(self): method testBuildBaseNetwork (line 103) | def testBuildBaseNetwork(self): method testBuildOnlyUpToFinalEndpoint (line 121) | def testBuildOnlyUpToFinalEndpoint(self): method testVariablesSetDevice (line 139) | def testVariablesSetDevice(self): method testHalfSizeImages (line 154) | def testHalfSizeImages(self): method testUnknownBatchSize (line 167) | def testUnknownBatchSize(self): method testEvaluation (line 182) | def testEvaluation(self): method testTrainEvalWithReuse (line 196) | def testTrainEvalWithReuse(self): FILE: model_zoo/models/slim/nets/lenet.py function lenet (line 26) | def lenet(images, num_classes=10, is_training=False, function lenet_arg_scope (line 79) | def lenet_arg_scope(weight_decay=0.0): FILE: model_zoo/models/slim/nets/nets_factory.py function get_network_fn (line 81) | def get_network_fn(name, num_classes, weight_decay=0.0, is_training=False): FILE: model_zoo/models/slim/nets/nets_factory_test.py class NetworksTest (line 28) | class NetworksTest(tf.test.TestCase): method testGetNetworkFn (line 30) | def testGetNetworkFn(self): FILE: model_zoo/models/slim/nets/overfeat.py function overfeat_arg_scope (line 40) | def overfeat_arg_scope(weight_decay=0.0005): function overfeat (line 50) | def overfeat(inputs, FILE: model_zoo/models/slim/nets/overfeat_test.py class OverFeatTest (line 27) | class OverFeatTest(tf.test.TestCase): method testBuild (line 29) | def testBuild(self): method testFullyConvolutional (line 40) | def testFullyConvolutional(self): method testEndPoints (line 51) | def testEndPoints(self): method testModelVariables (line 72) | def testModelVariables(self): method testEvaluation (line 99) | def testEvaluation(self): method testTrainEvalWithReuse (line 111) | def testTrainEvalWithReuse(self): method testForward (line 134) | def testForward(self): FILE: model_zoo/models/slim/nets/resnet_utils.py class Block (line 46) | class Block(collections.namedtuple('Block', ['scope', 'unit_fn', 'args'])): function subsample (line 59) | def subsample(inputs, factor, scope=None): function conv2d_same (line 77) | def conv2d_same(inputs, num_outputs, kernel_size, stride, rate=1, scope=... function stack_blocks_dense (line 126) | def stack_blocks_dense(net, blocks, output_stride=None, function resnet_arg_scope (line 209) | def resnet_arg_scope(weight_decay=0.0001, FILE: model_zoo/models/slim/nets/resnet_v1.py function bottleneck (line 69) | def bottleneck(inputs, depth, depth_bottleneck, stride, rate=1, function resnet_v1 (line 115) | def resnet_v1(inputs, function resnet_v1_50 (line 208) | def resnet_v1_50(inputs, function resnet_v1_101 (line 231) | def resnet_v1_101(inputs, function resnet_v1_152 (line 254) | def resnet_v1_152(inputs, function resnet_v1_200 (line 276) | def resnet_v1_200(inputs, FILE: model_zoo/models/slim/nets/resnet_v1_test.py function create_test_input (line 30) | def create_test_input(batch_size, height, width, channels): class ResnetUtilsTest (line 56) | class ResnetUtilsTest(tf.test.TestCase): method testSubsampleThreeByThree (line 58) | def testSubsampleThreeByThree(self): method testSubsampleFourByFour (line 65) | def testSubsampleFourByFour(self): method testConv2DSameEven (line 72) | def testConv2DSameEven(self): method testConv2DSameOdd (line 113) | def testConv2DSameOdd(self): method _resnet_plain (line 154) | def _resnet_plain(self, inputs, blocks, output_stride=None, scope=None): method testEndPointsV1 (line 162) | def testEndPointsV1(self): method _stack_blocks_nondense (line 187) | def _stack_blocks_nondense(self, net, blocks): method _atrousValues (line 201) | def _atrousValues(self, bottleneck): method testAtrousValuesBottleneck (line 247) | def testAtrousValuesBottleneck(self): class ResnetCompleteNetworkTest (line 251) | class ResnetCompleteNetworkTest(tf.test.TestCase): method _resnet_small (line 254) | def _resnet_small(self, method testClassificationEndPoints (line 282) | def testClassificationEndPoints(self): method testClassificationShapes (line 296) | def testClassificationShapes(self): method testFullyConvolutionalEndpointShapes (line 313) | def testFullyConvolutionalEndpointShapes(self): method testRootlessFullyConvolutionalEndpointShapes (line 330) | def testRootlessFullyConvolutionalEndpointShapes(self): method testAtrousFullyConvolutionalEndpointShapes (line 348) | def testAtrousFullyConvolutionalEndpointShapes(self): method testAtrousFullyConvolutionalValues (line 368) | def testAtrousFullyConvolutionalValues(self): method testUnknownBatchSize (line 395) | def testUnknownBatchSize(self): method testFullyConvolutionalUnknownHeightWidth (line 414) | def testFullyConvolutionalUnknownHeightWidth(self): method testAtrousFullyConvolutionalUnknownHeightWidth (line 429) | def testAtrousFullyConvolutionalUnknownHeightWidth(self): FILE: model_zoo/models/slim/nets/resnet_v2.py function bottleneck (line 64) | def bottleneck(inputs, depth, depth_bottleneck, stride, rate=1, function resnet_v2 (line 113) | def resnet_v2(inputs, function resnet_v2_50 (line 217) | def resnet_v2_50(inputs, function resnet_v2_101 (line 239) | def resnet_v2_101(inputs, function resnet_v2_152 (line 261) | def resnet_v2_152(inputs, function resnet_v2_200 (line 283) | def resnet_v2_200(inputs, FILE: model_zoo/models/slim/nets/resnet_v2_test.py function create_test_input (line 30) | def create_test_input(batch_size, height, width, channels): class ResnetUtilsTest (line 56) | class ResnetUtilsTest(tf.test.TestCase): method testSubsampleThreeByThree (line 58) | def testSubsampleThreeByThree(self): method testSubsampleFourByFour (line 65) | def testSubsampleFourByFour(self): method testConv2DSameEven (line 72) | def testConv2DSameEven(self): method testConv2DSameOdd (line 113) | def testConv2DSameOdd(self): method _resnet_plain (line 154) | def _resnet_plain(self, inputs, blocks, output_stride=None, scope=None): method testEndPointsV2 (line 162) | def testEndPointsV2(self): method _stack_blocks_nondense (line 187) | def _stack_blocks_nondense(self, net, blocks): method _atrousValues (line 201) | def _atrousValues(self, bottleneck): method testAtrousValuesBottleneck (line 247) | def testAtrousValuesBottleneck(self): class ResnetCompleteNetworkTest (line 251) | class ResnetCompleteNetworkTest(tf.test.TestCase): method _resnet_small (line 254) | def _resnet_small(self, method testClassificationEndPoints (line 282) | def testClassificationEndPoints(self): method testClassificationShapes (line 296) | def testClassificationShapes(self): method testFullyConvolutionalEndpointShapes (line 313) | def testFullyConvolutionalEndpointShapes(self): method testRootlessFullyConvolutionalEndpointShapes (line 330) | def testRootlessFullyConvolutionalEndpointShapes(self): method testAtrousFullyConvolutionalEndpointShapes (line 348) | def testAtrousFullyConvolutionalEndpointShapes(self): method testAtrousFullyConvolutionalValues (line 368) | def testAtrousFullyConvolutionalValues(self): method testUnknownBatchSize (line 397) | def testUnknownBatchSize(self): method testFullyConvolutionalUnknownHeightWidth (line 416) | def testFullyConvolutionalUnknownHeightWidth(self): method testAtrousFullyConvolutionalUnknownHeightWidth (line 432) | def testAtrousFullyConvolutionalUnknownHeightWidth(self): FILE: model_zoo/models/slim/nets/vgg.py function vgg_arg_scope (line 49) | def vgg_arg_scope(weight_decay=0.0005): function vgg_a (line 66) | def vgg_a(inputs, function vgg_16 (line 125) | def vgg_16(inputs, function vgg_19 (line 184) | def vgg_19(inputs, FILE: model_zoo/models/slim/nets/vgg_test.py class VGGATest (line 27) | class VGGATest(tf.test.TestCase): method testBuild (line 29) | def testBuild(self): method testFullyConvolutional (line 40) | def testFullyConvolutional(self): method testEndPoints (line 51) | def testEndPoints(self): method testModelVariables (line 77) | def testModelVariables(self): method testEvaluation (line 110) | def testEvaluation(self): method testTrainEvalWithReuse (line 122) | def testTrainEvalWithReuse(self): method testForward (line 145) | def testForward(self): class VGG16Test (line 156) | class VGG16Test(tf.test.TestCase): method testBuild (line 158) | def testBuild(self): method testFullyConvolutional (line 169) | def testFullyConvolutional(self): method testEndPoints (line 180) | def testEndPoints(self): method testModelVariables (line 211) | def testModelVariables(self): method testEvaluation (line 254) | def testEvaluation(self): method testTrainEvalWithReuse (line 266) | def testTrainEvalWithReuse(self): method testForward (line 289) | def testForward(self): class VGG19Test (line 300) | class VGG19Test(tf.test.TestCase): method testBuild (line 302) | def testBuild(self): method testFullyConvolutional (line 313) | def testFullyConvolutional(self): method testEndPoints (line 324) | def testEndPoints(self): method testModelVariables (line 359) | def testModelVariables(self): method testEvaluation (line 409) | def testEvaluation(self): method testTrainEvalWithReuse (line 421) | def testTrainEvalWithReuse(self): method testForward (line 444) | def testForward(self): FILE: model_zoo/models/slim/preprocessing/cifarnet_preprocessing.py function preprocess_for_train (line 30) | def preprocess_for_train(image, function preprocess_for_eval (line 73) | def preprocess_for_eval(image, output_height, output_width): function preprocess_image (line 98) | def preprocess_image(image, output_height, output_width, is_training=Fal... FILE: model_zoo/models/slim/preprocessing/inception_preprocessing.py function apply_with_random_selector (line 26) | def apply_with_random_selector(x, func, num_cases): function distort_color (line 45) | def distort_color(image, color_ordering=0, fast_mode=True, scope=None): function distorted_bounding_box_crop (line 99) | def distorted_bounding_box_crop(image, function preprocess_for_train (line 156) | def preprocess_for_train(image, height, width, bbox, function preprocess_for_eval (line 237) | def preprocess_for_eval(image, height, width, function preprocess_image (line 278) | def preprocess_image(image, height, width, FILE: model_zoo/models/slim/preprocessing/lenet_preprocessing.py function preprocess_image (line 26) | def preprocess_image(image, output_height, output_width, is_training): FILE: model_zoo/models/slim/preprocessing/preprocessing_factory.py function get_preprocessing (line 31) | def get_preprocessing(name, is_training=False): FILE: model_zoo/models/slim/preprocessing/vgg_preprocessing.py function _crop (line 49) | def _crop(image, offset_height, offset_width, crop_height, crop_width): function _random_crop (line 94) | def _random_crop(image_list, crop_height, crop_width): function _central_crop (line 178) | def _central_crop(image_list, crop_height, crop_width): function _mean_image_subtraction (line 203) | def _mean_image_subtraction(image, means): function _smallest_size_at_least (line 236) | def _smallest_size_at_least(height, width, smallest_side): function _aspect_preserving_resize (line 266) | def _aspect_preserving_resize(image, smallest_side): function preprocess_for_train (line 291) | def preprocess_for_train(image, function preprocess_for_eval (line 324) | def preprocess_for_eval(image, output_height, output_width, resize_side): function preprocess_image (line 343) | def preprocess_image(image, output_height, output_width, is_training=False, FILE: model_zoo/models/slim/train_image_classifier.py function _configure_learning_rate (line 224) | def _configure_learning_rate(num_samples_per_epoch, global_step): function _configure_optimizer (line 264) | def _configure_optimizer(learning_rate): function _add_variables_summaries (line 316) | def _add_variables_summaries(learning_rate): function _get_init_fn (line 324) | def _get_init_fn(): function _get_variables_to_train (line 373) | def _get_variables_to_train(): function main (line 391) | def main(_): FILE: model_zoo/models/street/cc/rnn_ops.cc type tensorflow (line 37) | namespace tensorflow { function Status (line 43) | Status AreDimsEqual(int dim1, int dim2, const string& message) { class VariableLSTMOp (line 54) | class VariableLSTMOp : public OpKernel { method VariableLSTMOp (line 56) | explicit VariableLSTMOp(OpKernelConstruction* ctx) : OpKernel(ctx) { method Compute (line 63) | void Compute(OpKernelContext* ctx) override { class VariableLSTMGradOp (line 271) | class VariableLSTMGradOp : public OpKernel { method VariableLSTMGradOp (line 273) | explicit VariableLSTMGradOp(OpKernelConstruction* ctx) : OpKernel(ct... method Compute (line 275) | void Compute(OpKernelContext* ctx) override { FILE: model_zoo/models/street/python/decoder.py class Decoder (line 38) | class Decoder(object): method __init__ (line 41) | def __init__(self, filename): method SoftmaxEval (line 62) | def SoftmaxEval(self, sess, model, num_steps): method StringFromCTC (line 123) | def StringFromCTC(self, ctc_labels, merge_dups, null_label): method _InitializeDecoder (line 180) | def _InitializeDecoder(self, filename): method _CodesFromCTC (line 206) | def _CodesFromCTC(self, ctc_labels, merge_dups, null_label): FILE: model_zoo/models/street/python/decoder_test.py function _testdata (line 22) | def _testdata(filename): class DecoderTest (line 26) | class DecoderTest(tf.test.TestCase): method testCodesFromCTC (line 28) | def testCodesFromCTC(self): method testStringFromCTC (line 46) | def testStringFromCTC(self): FILE: model_zoo/models/street/python/errorcounter.py function CountWordErrors (line 38) | def CountWordErrors(ocr_text, truth_text): function CountErrors (line 52) | def CountErrors(ocr_text, truth_text): function AddErrors (line 73) | def AddErrors(counts1, counts2): function ComputeErrorRates (line 87) | def ComputeErrorRates(label_counts, word_counts, seq_errors, num_seqs): function ComputeErrorRate (line 107) | def ComputeErrorRate(error_count, truth_count): FILE: model_zoo/models/street/python/errorcounter_test.py class ErrorcounterTest (line 20) | class ErrorcounterTest(tf.test.TestCase): method testComputeErrorRate (line 22) | def testComputeErrorRate(self): method testCountErrors (line 36) | def testCountErrors(self): method testCountWordErrors (line 74) | def testCountWordErrors(self): FILE: model_zoo/models/street/python/nn_ops.py function rnn_helper (line 25) | def rnn_helper(inp, function _variable_lstm_shape (line 100) | def _variable_lstm_shape(op): function _variable_lstm_grad (line 120) | def _variable_lstm_grad(op, act_grad, gate_grad, mem_grad): function lstm_layer (line 133) | def lstm_layer(inp, FILE: model_zoo/models/street/python/shapes.py function rotate_dimensions (line 30) | def rotate_dimensions(num_dims, src_dim, dest_dim): function transposing_reshape (line 55) | def transposing_reshape(tensor, function tensor_dim (line 179) | def tensor_dim(tensor, dim): function tensor_shape (line 203) | def tensor_shape(tensor): FILE: model_zoo/models/street/python/shapes_test.py function _rand (line 22) | def _rand(*size): class ShapesTest (line 26) | class ShapesTest(tf.test.TestCase): method __init__ (line 29) | def __init__(self, other): method testReshapeTile (line 36) | def testReshapeTile(self): method testReshapeDepth (line 49) | def testReshapeDepth(self): class DataTest (line 63) | class DataTest(tf.test.TestCase): method testTransposingReshape_2_2_3_2_1 (line 68) | def testTransposingReshape_2_2_3_2_1(self): method testTransposingReshape_2_2_3_2_3 (line 88) | def testTransposingReshape_2_2_3_2_3(self): method testTransposingReshape_2_2_3_2_2 (line 108) | def testTransposingReshape_2_2_3_2_2(self): method testTransposingReshape_2_2_3_1_2 (line 128) | def testTransposingReshape_2_2_3_1_2(self): method testTransposingReshape_2_2_3_3_2 (line 149) | def testTransposingReshape_2_2_3_3_2(self): FILE: model_zoo/models/street/python/vgsl_eval.py function main (line 41) | def main(argv): FILE: model_zoo/models/street/python/vgsl_input.py function ImageInput (line 30) | def ImageInput(input_pattern, num_threads, shape, using_ctc, reader=None): function _ReadExamples (line 86) | def _ReadExamples(filename_queue, shape, using_ctc, reader=None): function _ImageProcessing (line 134) | def _ImageProcessing(image_buffer, shape): FILE: model_zoo/models/street/python/vgsl_model.py function Train (line 40) | def Train(train_dir, function Eval (line 111) | def Eval(train_dir, function InitNetwork (line 183) | def InitNetwork(input_pattern, class VGSLImageModel (line 229) | class VGSLImageModel(object): method __init__ (line 233) | def __init__(self, mode, model_spec, initial_learning_rate, method Build (line 274) | def Build(self, input_pattern, input_spec, model_spec, output_spec, method TrainAStep (line 324) | def TrainAStep(self, sess): method Restore (line 335) | def Restore(self, checkpoint_path, sess): method RunAStep (line 347) | def RunAStep(self, sess): method _AddOutputs (line 357) | def _AddOutputs(self, prev_layer, out_dims, out_func, num_classes): method _AddOutputLayer (line 382) | def _AddOutputLayer(self, prev_layer, out_dims, out_func, num_classes): method _AddLossFunction (line 425) | def _AddLossFunction(self, logits, height_in, out_dims, out_func): method _AddOptimizer (line 464) | def _AddOptimizer(self, optimizer_type): function _PadLabels3d (line 493) | def _PadLabels3d(logits, labels): function _PadLabels2d (line 514) | def _PadLabels2d(logits_size, labels): function _ParseInputSpec (line 537) | def _ParseInputSpec(input_spec): function _ParseOutputSpec (line 562) | def _ParseOutputSpec(output_spec): function _AddRateToSummary (line 588) | def _AddRateToSummary(tag, rate, step, sw): FILE: model_zoo/models/street/python/vgsl_model_test.py function _testdata (line 24) | def _testdata(filename): function _rand (line 28) | def _rand(*size): class VgslModelTest (line 32) | class VgslModelTest(tf.test.TestCase): method testParseInputSpec (line 34) | def testParseInputSpec(self): method testParseOutputSpec (line 49) | def testParseOutputSpec(self): method testPadLabels2d (line 68) | def testPadLabels2d(self): method testPadLabels3d (line 94) | def testPadLabels3d(self): method testEndToEndSizes0d (line 172) | def testEndToEndSizes0d(self): method testEndToEndSizes1dCTC (line 196) | def testEndToEndSizes1dCTC(self): method testEndToEndSizes1dFixed (line 220) | def testEndToEndSizes1dFixed(self): FILE: model_zoo/models/street/python/vgsl_train.py function main (line 45) | def main(argv): FILE: model_zoo/models/street/python/vgslspecs.py class VGSLSpecs (line 31) | class VGSLSpecs(object): method __init__ (line 34) | def __init__(self, widths, heights, is_training): method Build (line 62) | def Build(self, prev_layer, model_str): method GetLengths (line 125) | def GetLengths(self, dim=2, factor=1): method BuildFromString (line 155) | def BuildFromString(self, prev_layer, index): method AddSeries (line 177) | def AddSeries(self, prev_layer, index): method AddParallel (line 199) | def AddParallel(self, prev_layer, index): method AddConvLayer (line 240) | def AddConvLayer(self, prev_layer, index): method AddMaxPool (line 263) | def AddMaxPool(self, prev_layer, index): method AddDropout (line 289) | def AddDropout(self, prev_layer, index): method AddReShape (line 308) | def AddReShape(self, prev_layer, index): method AddFCLayer (line 348) | def AddFCLayer(self, prev_layer, index): method AddLSTMLayer (line 380) | def AddLSTMLayer(self, prev_layer, index): method _LSTMLayer (line 421) | def _LSTMLayer(self, prev_layer, direction, dim, summarize, depth, name): method _NonLinearity (line 484) | def _NonLinearity(self, code): method _GetLayerName (line 504) | def _GetLayerName(self, op_str, index, name_str): method _SkipWhitespace (line 520) | def _SkipWhitespace(self, index): FILE: model_zoo/models/street/python/vgslspecs_test.py function _rand (line 22) | def _rand(*size): class VgslspecsTest (line 26) | class VgslspecsTest(tf.test.TestCase): method __init__ (line 28) | def __init__(self, other): method SetupInputs (line 34) | def SetupInputs(self): method ExpectScaledSize (line 46) | def ExpectScaledSize(self, spec, target_shape, factor=1): method testSameSizeConv (line 70) | def testSameSizeConv(self): method testSameSizeLSTM (line 76) | def testSameSizeLSTM(self): method testSameSizeParallel (line 82) | def testSameSizeParallel(self): method testScalingOps (line 88) | def testScalingOps(self): method testXReduction (line 94) | def testXReduction(self): method testYReduction (line 99) | def testYReduction(self): method testXYReduction (line 104) | def testXYReduction(self): method testReshapeTile (line 110) | def testReshapeTile(self): method testReshapeDepth (line 115) | def testReshapeDepth(self): FILE: model_zoo/models/swivel/analogy.cc function ReadVocab (line 64) | static std::unordered_map ReadVocab( function ReadQueries (line 83) | std::vector ReadQueries( class AnalogyEvaluator (line 129) | class AnalogyEvaluator { method AnalogyEvaluator (line 132) | AnalogyEvaluator(std::vector::const_iterator begin, method GetNumCorrect (line 153) | int GetNumCorrect() const { return correct_; } function main (line 220) | int main(int argc, char *argv[]) { FILE: model_zoo/models/swivel/fastprep.cc type cooc_t (line 84) | struct cooc_t { function NextWord (line 95) | bool NextWord(std::ifstream &fin, std::string* word) { function CreateVocabulary (line 135) | std::vector CreateVocabulary(const std::string input_filename, function ReadVocabulary (line 199) | std::vector ReadVocabulary(const std::string vocab_filename) { function WriteVocabulary (line 214) | void WriteVocabulary(const std::vector &vocab, class CoocBuffer (line 223) | class CoocBuffer { class CoocCounter (line 394) | class CoocCounter { method CoocCounter (line 396) | CoocCounter(const std::string &input_filename, const off_t start, function WriteMarginals (line 507) | void WriteMarginals(const std::vector &marginals, function main (line 516) | int main(int argc, char *argv[]) { FILE: model_zoo/models/swivel/glove_to_shards.py function make_shard_files (line 61) | def make_shard_files(coocs, nshards, vocab_sz): function main (line 134) | def main(_): FILE: model_zoo/models/swivel/prep.py function words (line 86) | def words(line): function create_vocabulary (line 91) | def create_vocabulary(lines): function write_vocab_and_sums (line 127) | def write_vocab_and_sums(vocab, sums, vocab_filename, sums_filename): function compute_coocs (line 136) | def compute_coocs(lines, vocab): function write_shards (line 216) | def write_shards(vocab, shardfiles): function main (line 288) | def main(_): FILE: model_zoo/models/swivel/swivel.py function embeddings_with_init (line 94) | def embeddings_with_init(vocab_size, embedding_dim, name): function count_matrix_input (line 102) | def count_matrix_input(filenames, submatrix_rows, submatrix_cols): function read_marginals_file (line 142) | def read_marginals_file(filename): function write_embedding_tensor_to_disk (line 148) | def write_embedding_tensor_to_disk(vocab_path, output_path, sess, embedd... function write_embeddings_to_disk (line 161) | def write_embeddings_to_disk(config, model, sess): class SwivelModel (line 180) | class SwivelModel(object): method __init__ (line 183) | def __init__(self, config): function main (line 289) | def main(_): FILE: model_zoo/models/swivel/text2bin.py function go (line 64) | def go(fhs): FILE: model_zoo/models/swivel/vecs.py class Vecs (line 20) | class Vecs(object): method __init__ (line 21) | def __init__(self, vocab_filename, rows_filename, cols_filename=None): method similarity (line 63) | def similarity(self, word1, word2): method neighbors (line 72) | def neighbors(self, query): method lookup (line 87) | def lookup(self, word): FILE: model_zoo/models/swivel/wordsim.py function evaluate (line 72) | def evaluate(lines): FILE: model_zoo/models/syntaxnet/syntaxnet/affix.cc type syntaxnet (line 33) | namespace syntaxnet { function TermHash (line 42) | int TermHash(const string &term) { function UnicodeSubstring (line 47) | static void UnicodeSubstring(const UnicodeText::const_iterator &start, function Affix (line 131) | Affix *AffixTable::AddAffixesForWord(const char *word, size_t size) { function Affix (line 189) | Affix *AffixTable::GetAffix(int id) const { function string (line 197) | string AffixTable::AffixForm(int id) const { function Affix (line 215) | Affix *AffixTable::AddNewAffix(const string &form, int length) { function Affix (line 232) | Affix *AffixTable::FindAffix(const string &form) const { FILE: model_zoo/models/syntaxnet/syntaxnet/affix.h function namespace (line 33) | namespace syntaxnet { function class (line 85) | class AffixTable { FILE: model_zoo/models/syntaxnet/syntaxnet/arc_standard_transitions.cc type syntaxnet (line 38) | namespace syntaxnet { class ArcStandardTransitionState (line 40) | class ArcStandardTransitionState : public ParserTransitionState { method ParserTransitionState (line 43) | ParserTransitionState *Clone() const override { method Init (line 48) | void Init(ParserState *state) override { state->Push(-1); } method AddParseToDocument (line 51) | void AddParseToDocument(const ParserState &state, bool rewrite_root_... method IsTokenCorrect (line 68) | bool IsTokenCorrect(const ParserState &state, int index) const overr... method string (line 73) | string ToString(const ParserState &state) const override { class ArcStandardTransitionSystem (line 93) | class ArcStandardTransitionSystem : public ParserTransitionSystem { type ParserActionType (line 96) | enum ParserActionType { method ParserAction (line 103) | static ParserAction ShiftAction() { return SHIFT; } method ParserAction (line 107) | static ParserAction LeftArcAction(int label) { return 1 + (label << ... method ParserAction (line 111) | static ParserAction RightArcAction(int label) { method ParserActionType (line 116) | static ParserActionType ActionType(ParserAction action) { method Label (line 123) | static int Label(ParserAction action) { method NumActionTypes (line 128) | int NumActionTypes() const override { return 3; } method NumActions (line 131) | int NumActions(int num_labels) const override { return 1 + 2 * num_l... method ParserAction (line 134) | ParserAction GetDefaultAction(const ParserState &state) const overri... method ParserAction (line 144) | ParserAction GetNextGoldAction(const ParserState &state) const overr... method DoneChildrenRightOf (line 174) | static bool DoneChildrenRightOf(const ParserState &state, int head) { method IsAllowedAction (line 195) | bool IsAllowedAction(ParserAction action, method IsAllowedShift (line 210) | bool IsAllowedShift(const ParserState &state) const { method IsAllowedLeftArc (line 216) | bool IsAllowedLeftArc(const ParserState &state) const { method IsAllowedRightArc (line 223) | bool IsAllowedRightArc(const ParserState &state) const { method PerformActionWithoutHistory (line 230) | void PerformActionWithoutHistory(ParserAction action, method PerformShift (line 247) | void PerformShift(ParserState *state) const { method PerformLeftArc (line 255) | void PerformLeftArc(ParserState *state, int label) const { method PerformRightArc (line 263) | void PerformRightArc(ParserState *state, int label) const { method IsDeterministicState (line 273) | bool IsDeterministicState(const ParserState &state) const override { method IsFinalState (line 279) | bool IsFinalState(const ParserState &state) const override { method string (line 284) | string ActionAsString(ParserAction action, method ParserTransitionState (line 298) | ParserTransitionState *NewTransitionState(bool training_mode) const ... FILE: model_zoo/models/syntaxnet/syntaxnet/arc_standard_transitions_test.cc type syntaxnet (line 32) | namespace syntaxnet { class ArcStandardTransitionTest (line 34) | class ArcStandardTransitionTest : public ::testing::Test { method ArcStandardTransitionTest (line 36) | ArcStandardTransitionTest() method SetUpForDocument (line 42) | void SetUpForDocument(const Sentence &document) { method ParserState (line 54) | ParserState *NewClonedState(Sentence *sentence) { method GoldParse (line 63) | void GoldParse(Sentence *sentence) { method DefaultParse (line 83) | void DefaultParse(Sentence *sentence) { function TEST_F (line 103) | TEST_F(ArcStandardTransitionTest, SingleSentenceDocumentTest) { FILE: model_zoo/models/syntaxnet/syntaxnet/base.h type char32 (line 46) | typedef signed int char32; FILE: model_zoo/models/syntaxnet/syntaxnet/beam_reader_ops.cc type syntaxnet (line 56) | namespace syntaxnet { type ParserStateWithHistory (line 60) | struct ParserStateWithHistory { method ParserStateWithHistory (line 63) | explicit ParserStateWithHistory(const ParserState &s) : state(s.Clon... method ParserStateWithHistory (line 67) | ParserStateWithHistory(const ParserStateWithHistory &next, type BatchStateOptions (line 89) | struct BatchStateOptions { class BeamState (line 118) | class BeamState { type State (line 143) | enum State { ALIVE = 0, DYING = 1, DEAD = 2 } method BeamState (line 145) | explicit BeamState(const BatchStateOptions &options) : options_(opti... method Reset (line 147) | void Reset() { method UpdateAllFinal (line 163) | void UpdateAllFinal() { method Advance (line 184) | void Advance(const ScoreMatrixType &scores) { method PopulateFeatureOutputs (line 233) | void PopulateFeatureOutputs( method BeamSize (line 243) | int BeamSize() const { return slots_.size(); } method IsAlive (line 245) | bool IsAlive() const { return state_ == ALIVE; } method IsDead (line 247) | bool IsDead() const { return state_ == DEAD; } method AllFinal (line 249) | bool AllFinal() const { return all_final_; } method AdvanceSentence (line 280) | void AdvanceSentence() { method AdvanceGold (line 291) | void AdvanceGold() { method PruneBeam (line 306) | void PruneBeam() { method MaybeInsertWithNewAction (line 324) | void MaybeInsertWithNewAction(const AgendaItem &item, const int slot, method MaybeInsert (line 345) | void MaybeInsert(AgendaItem *item) { class BatchState (line 366) | class BatchState { method BatchState (line 368) | explicit BatchState(const BatchStateOptions &options) method Init (line 373) | void Init(TaskContext *task_context) { method ResetBeams (line 414) | void ResetBeams() { method ResetOffsets (line 429) | void ResetOffsets() { method AdvanceBeam (line 435) | void AdvanceBeam(const int beam_id, method UpdateOffsets (line 445) | void UpdateOffsets() { method PopulateFeatureOutputs (line 459) | tensorflow::Status PopulateFeatureOutputs(OpKernelContext *context) { method GetOffset (line 499) | int GetOffset(const int step, const int beam_id) const { method FeatureSize (line 503) | int FeatureSize() const { return features_.embedding_dims().size(); } method NumActions (line 505) | int NumActions() const { method BatchSize (line 509) | int BatchSize() const { return options_.batch_size; } method BeamState (line 511) | const BeamState &Beam(const int i) const { return beams_[i]; } method Epoch (line 513) | int Epoch() const { return epoch_; } method string (line 515) | const string &ScoringType() const { return options_.scoring_type; } class BeamParseReader (line 551) | class BeamParseReader : public OpKernel { method BeamParseReader (line 553) | explicit BeamParseReader(OpKernelConstruction *context) : OpKernel(c... method Compute (line 607) | void Compute(OpKernelContext *context) override { class BeamParser (line 643) | class BeamParser : public OpKernel { method BeamParser (line 645) | explicit BeamParser(OpKernelConstruction *context) : OpKernel(contex... method Compute (line 657) | void Compute(OpKernelContext *context) override { class BeamParserOutput (line 702) | class BeamParserOutput : public OpKernel { method BeamParserOutput (line 704) | explicit BeamParserOutput(OpKernelConstruction *context) : OpKernel(... method Compute (line 711) | void Compute(OpKernelContext *context) override { class BeamEvalOutput (line 829) | class BeamEvalOutput : public OpKernel { method BeamEvalOutput (line 831) | explicit BeamEvalOutput(OpKernelConstruction *context) : OpKernel(co... method Compute (line 837) | void Compute(OpKernelContext *context) override { method ComputeTokenAccuracy (line 873) | void ComputeTokenAccuracy(const ParserState &state, FILE: model_zoo/models/syntaxnet/syntaxnet/beam_reader_ops_test.py class ParsingReaderOpsTest (line 37) | class ParsingReaderOpsTest(test_util.TensorFlowTestCase): method setUp (line 39) | def setUp(self): method MakeGraph (line 59) | def MakeGraph(self, method Train (line 102) | def Train(self, **kwargs): method PathScores (line 166) | def PathScores(self, iterations, beam_size, max_steps, batch_size): method testParseUntilNotAlive (line 191) | def testParseUntilNotAlive(self): method testParseMomentum (line 201) | def testParseMomentum(self): method testPathScoresAgree (line 209) | def testPathScoresAgree(self): method testBatchPathScoresAgree (line 215) | def testBatchPathScoresAgree(self): method testBatchOneStepPathScoresAgree (line 221) | def testBatchOneStepPathScoresAgree(self): FILE: model_zoo/models/syntaxnet/syntaxnet/binary_segment_state.cc type syntaxnet (line 22) | namespace syntaxnet { function ParserTransitionState (line 24) | ParserTransitionState *BinarySegmentState::Clone() const { function string (line 28) | string BinarySegmentState::ToString(const ParserState &state) const { FILE: model_zoo/models/syntaxnet/syntaxnet/binary_segment_state.h function namespace (line 22) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/binary_segment_state_test.cc type syntaxnet (line 25) | namespace syntaxnet { class BinarySegmentStateTest (line 27) | class BinarySegmentStateTest : public ::testing::Test { method SetUp (line 29) | void SetUp() override { function TEST_F (line 48) | TEST_F(BinarySegmentStateTest, AddStartLastStartNumStartsTest) { function TEST_F (line 73) | TEST_F(BinarySegmentStateTest, AddParseToDocumentTest) { function TEST_F (line 144) | TEST_F(BinarySegmentStateTest, SpaceDocumentTest) { function TEST_F (line 172) | TEST_F(BinarySegmentStateTest, DocumentBeginWithSpaceTest) { function TEST_F (line 208) | TEST_F(BinarySegmentStateTest, EmptyDocumentTest) { FILE: model_zoo/models/syntaxnet/syntaxnet/binary_segment_transitions.cc type syntaxnet (line 22) | namespace syntaxnet { class BinarySegmentTransitionSystem (line 33) | class BinarySegmentTransitionSystem : public ParserTransitionSystem { method BinarySegmentTransitionSystem (line 35) | BinarySegmentTransitionSystem() {} method ParserTransitionState (line 36) | ParserTransitionState *NewTransitionState(bool train_mode) const ove... type ParserActionType (line 41) | enum ParserActionType { method StartAction (line 47) | static int StartAction() { return 0; } method MergeAction (line 48) | static int MergeAction() { return 1; } method ParserAction (line 51) | ParserAction GetDefaultAction(const ParserState &state) const overri... method NumActionTypes (line 56) | int NumActionTypes() const override { method NumActions (line 61) | int NumActions(int num_labels) const override { method ParserAction (line 70) | ParserAction GetNextGoldAction(const ParserState &state) const overr... method IsAllowedAction (line 78) | bool IsAllowedAction( method PerformActionWithoutHistory (line 85) | void PerformActionWithoutHistory( method BackOffToBestAllowableTransition (line 95) | bool BackOffToBestAllowableTransition() const override { return true; } method IsDeterministicState (line 98) | bool IsDeterministicState(const ParserState &state) const override { method IsFinalState (line 104) | bool IsFinalState(const ParserState &state) const override { method string (line 109) | string ActionAsString( method BinarySegmentState (line 115) | static BinarySegmentState *MutableTransitionState(ParserState *state) { class OffsetFeatureLocator (line 125) | class OffsetFeatureLocator : public ParserIndexLocator &target) { function TEST_F (line 120) | TEST_F(SegmentationTransitionTest, GoldNextActionTest) { function TEST_F (line 150) | TEST_F(SegmentationTransitionTest, DefaultActionTest) { function TEST_F (line 174) | TEST_F(SegmentationTransitionTest, LastWordFeatureTest) { FILE: model_zoo/models/syntaxnet/syntaxnet/char_properties.cc type CharPropertyImplementation (line 89) | struct CharPropertyImplementation { method CharPropertyImplementation (line 92) | CharPropertyImplementation() { method AddChar (line 97) | void AddChar(char *buf, int len) { method HoldsFor (line 125) | bool HoldsFor(const char *buf) const { function CharProperty (line 266) | const CharProperty *CharProperty::Lookup(const char *subclass) { function string (line 286) | string CharProperty::UnicodeToString(int c) { FILE: model_zoo/models/syntaxnet/syntaxnet/char_properties.h function namespace (line 84) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/char_properties_test.cc type syntaxnet (line 41) | namespace syntaxnet { class CharPropertiesTest (line 52) | class CharPropertiesTest : public testing::Test { method CollectChars (line 55) | void CollectChars(const std::set &chars) { method CollectArray (line 60) | void CollectArray(const char32 arr[], int len) { method CollectCharProperty (line 65) | void CollectCharProperty(const char *name) { method CollectAsciiPredicate (line 77) | void CollectAsciiPredicate(AsciiPredicate *pred) { method ExpectCharPropertyEqualsCollectedSet (line 87) | void ExpectCharPropertyEqualsCollectedSet(const char *name) { method ExpectCharPropertyContainsCollectedSet (line 118) | void ExpectCharPropertyContainsCollectedSet(const char *name) { method string (line 128) | string EncodeAsUTF8(const char32 *in, int size) { method EncodeAsUTF8Char (line 139) | int EncodeAsUTF8Char(char32 in, char *out) { function TEST_F (line 225) | TEST_F(CharPropertiesTest, TestDigit) { function TEST_F (line 230) | TEST_F(CharPropertiesTest, TestWavyDash) { function TEST_F (line 235) | TEST_F(CharPropertiesTest, TestDigitOrWavyDash) { function TEST_F (line 241) | TEST_F(CharPropertiesTest, TestPunctuationPlus) { function TEST_F (line 252) | TEST_F(CharPropertiesTest, StartSentencePunc) { function TEST_F (line 257) | TEST_F(CharPropertiesTest, EndSentencePunc) { function TEST_F (line 262) | TEST_F(CharPropertiesTest, OpenExprPunc) { function TEST_F (line 267) | TEST_F(CharPropertiesTest, CloseExprPunc) { function TEST_F (line 272) | TEST_F(CharPropertiesTest, OpenQuote) { function TEST_F (line 277) | TEST_F(CharPropertiesTest, CloseQuote) { function TEST_F (line 282) | TEST_F(CharPropertiesTest, OpenBookquote) { function TEST_F (line 287) | TEST_F(CharPropertiesTest, CloseBookquote) { function TEST_F (line 292) | TEST_F(CharPropertiesTest, OpenPunc) { function TEST_F (line 298) | TEST_F(CharPropertiesTest, ClosePunc) { function TEST_F (line 304) | TEST_F(CharPropertiesTest, LeadingSentencePunc) { function TEST_F (line 311) | TEST_F(CharPropertiesTest, TrailingSentencePunc) { function TEST_F (line 318) | TEST_F(CharPropertiesTest, NoncurrencyTokenPrefixSymbol) { function TEST_F (line 323) | TEST_F(CharPropertiesTest, TokenSuffixSymbol) { function TEST_F (line 328) | TEST_F(CharPropertiesTest, TokenPrefixSymbol) { function TEST_F (line 334) | TEST_F(CharPropertiesTest, SubscriptSymbol) { function TEST_F (line 339) | TEST_F(CharPropertiesTest, SuperscriptSymbol) { function TEST_F (line 344) | TEST_F(CharPropertiesTest, CurrencySymbol) { function TEST_F (line 349) | TEST_F(CharPropertiesTest, DirectionalFormattingCode) { function TEST_F (line 354) | TEST_F(CharPropertiesTest, Punctuation) { function TEST_F (line 359) | TEST_F(CharPropertiesTest, Separator) { FILE: model_zoo/models/syntaxnet/syntaxnet/conll2tree.py function to_dict (line 41) | def to_dict(sentence): function main (line 77) | def main(unused_argv): FILE: model_zoo/models/syntaxnet/syntaxnet/document_filters.cc type syntaxnet (line 42) | namespace syntaxnet { function GetTaskContext (line 46) | void GetTaskContext(OpKernelConstruction *context, TaskContext *task_c... function OutputDocuments (line 57) | void OutputDocuments(OpKernelContext *context, class DocumentSource (line 71) | class DocumentSource : public OpKernel { method DocumentSource (line 73) | explicit DocumentSource(OpKernelConstruction *context) : OpKernel(co... method Compute (line 84) | void Compute(OpKernelContext *context) override { method OutputLast (line 101) | void OutputLast(OpKernelContext *context, bool last) { class DocumentSink (line 122) | class DocumentSink : public OpKernel { method DocumentSink (line 124) | explicit DocumentSink(OpKernelConstruction *context) : OpKernel(cont... method Compute (line 132) | void Compute(OpKernelContext *context) override { class WellFormedFilter (line 159) | class WellFormedFilter : public OpKernel { method WellFormedFilter (line 161) | explicit WellFormedFilter(OpKernelConstruction *context) : OpKernel(... method Compute (line 167) | void Compute(OpKernelContext *context) override { method ShouldKeep (line 184) | bool ShouldKeep(const Sentence &doc) { class ProjectivizeFilter (line 227) | class ProjectivizeFilter : public OpKernel { method ProjectivizeFilter (line 229) | explicit ProjectivizeFilter(OpKernelConstruction *context) method Compute (line 236) | void Compute(OpKernelContext *context) override { method Process (line 252) | bool Process(Sentence *doc) { FILE: model_zoo/models/syntaxnet/syntaxnet/document_format.cc type syntaxnet (line 18) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/document_format.h function namespace (line 30) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/embedding_feature_extractor.cc type syntaxnet (line 25) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/embedding_feature_extractor.h function namespace (line 34) | namespace syntaxnet { function Preprocess (line 160) | void Preprocess(WorkspaceSet *workspaces, OBJ *obj) const { function ExtractFeatures (line 181) | void ExtractFeatures(const WorkspaceSet &workspaces, const OBJ &obj, FILE: model_zoo/models/syntaxnet/syntaxnet/feature_extractor.cc type syntaxnet (line 21) | namespace syntaxnet { function FeatureValue (line 66) | FeatureValue GenericFeatureExtractor::GetDomainSize() const { function string (line 81) | string GenericFeatureFunction::GetParameter(const string &name) const { function FeatureType (line 109) | FeatureType *GenericFeatureFunction::GetFeatureType() const { FILE: model_zoo/models/syntaxnet/syntaxnet/feature_extractor.h function namespace (line 58) | namespace syntaxnet { function set_prefix (line 272) | void set_prefix(const string &prefix) { prefix_ = prefix; } function set_feature_type (line 280) | void set_feature_type(FeatureType *feature_type) { function virtual (line 320) | virtual void Preprocess(WorkspaceSet *workspaces, OBJ *object) const {} function virtual (line 325) | virtual void Evaluate(const WorkspaceSet &workspaces, const OBJ &object, function Self (line 343) | static Self *Instantiate(GenericFeatureExtractor *extractor, function GetFeatureTypes (line 386) | void GetFeatureTypes(vector *types) const override { function Setup (line 393) | void Setup(TaskContext *context) override { function Preprocess (line 448) | void Preprocess(WorkspaceSet *workspaces, OBJ *object) const override { function Evaluate (line 475) | void Evaluate(const WorkspaceSet &workspaces, const OBJ &object, FILE: model_zoo/models/syntaxnet/syntaxnet/feature_types.h type int64 (line 31) | typedef int64 Predicate; type Predicate (line 32) | typedef Predicate FeatureValue; function class (line 39) | class FeatureType { FILE: model_zoo/models/syntaxnet/syntaxnet/fml_parser.cc type syntaxnet (line 24) | namespace syntaxnet { function ToFMLFunction (line 224) | void ToFMLFunction(const FeatureFunctionDescriptor &function, string *... function ToFML (line 246) | void ToFML(const FeatureFunctionDescriptor &function, string *output) { function ToFML (line 261) | void ToFML(const FeatureExtractorDescriptor &extractor, string *output) { function string (line 268) | string AsFML(const FeatureFunctionDescriptor &function) { function string (line 274) | string AsFML(const FeatureExtractorDescriptor &extractor) { function StripFML (line 280) | void StripFML(string *fml_string) { FILE: model_zoo/models/syntaxnet/syntaxnet/fml_parser.h function namespace (line 48) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/graph_builder.py function BatchedSparseToDense (line 29) | def BatchedSparseToDense(sparse_indices, output_size): function EmbeddingLookupFeatures (line 45) | def EmbeddingLookupFeatures(params, sparse_features, allow_weights): class GreedyParser (line 79) | class GreedyParser(object): method __init__ (line 112) | def __init__(self, method embedding_size (line 207) | def embedding_size(self): method _AddParam (line 213) | def _AddParam(self, method GetStep (line 258) | def GetStep(self): method _AddVariable (line 263) | def _AddVariable(self, shape, dtype, name, initializer=None): method _ReluWeightInitializer (line 272) | def _ReluWeightInitializer(self): method _EmbeddingMatrixInitializer (line 277) | def _EmbeddingMatrixInitializer(self, index, embedding_size): method _AddEmbedding (line 285) | def _AddEmbedding(self, method _BuildNetwork (line 306) | def _BuildNetwork(self, feature_endpoints, return_average=False): method _AddGoldReader (line 375) | def _AddGoldReader(self, task_context, batch_size, corpus_name): method _AddDecodedReader (line 388) | def _AddDecodedReader(self, task_context, batch_size, transition_scores, method _AddCostFunction (line 403) | def _AddCostFunction(self, batch_size, gold_actions, logits): method AddEvaluation (line 415) | def AddEvaluation(self, method _IncrementCounter (line 453) | def _IncrementCounter(self, counter): method _AddLearningRate (line 456) | def _AddLearningRate(self, initial_learning_rate, decay_steps): method AddPretrainedEmbeddings (line 475) | def AddPretrainedEmbeddings(self, index, embeddings_path, task_context): method AddTraining (line 490) | def AddTraining(self, method AddSaver (line 550) | def AddSaver(self, slim_model=False): FILE: model_zoo/models/syntaxnet/syntaxnet/graph_builder_test.py class GraphBuilderTest (line 38) | class GraphBuilderTest(test_util.TensorFlowTestCase): method setUp (line 40) | def setUp(self): method MakeBuilder (line 60) | def MakeBuilder(self, use_averaging=True, **kw_args): method FindNode (line 67) | def FindNode(self, name): method NodeFound (line 73) | def NodeFound(self, name): method testScope (line 76) | def testScope(self): method testNestedScope (line 110) | def testNestedScope(self): method testUseCustomGraphs (line 128) | def testUseCustomGraphs(self): method testTrainingAndEvalAreIndependent (line 158) | def testTrainingAndEvalAreIndependent(self): method testReproducibility (line 185) | def testReproducibility(self): method testAddTrainingAndEvalOrderIndependent (line 208) | def testAddTrainingAndEvalOrderIndependent(self): method testEvalMetrics (line 251) | def testEvalMetrics(self): method MakeSparseFeatures (line 271) | def MakeSparseFeatures(self, ids, weights): method testEmbeddingOp (line 278) | def testEmbeddingOp(self): method testOnlyTrainSomeParameters (line 299) | def testOnlyTrainSomeParameters(self): FILE: model_zoo/models/syntaxnet/syntaxnet/lexicon_builder.cc type syntaxnet (line 44) | namespace syntaxnet { class LexiconBuilder (line 53) | class LexiconBuilder : public OpKernel { method LexiconBuilder (line 55) | explicit LexiconBuilder(OpKernelConstruction *context) : OpKernel(co... method Compute (line 72) | void Compute(OpKernelContext *context) override { method HasSpaces (line 159) | static bool HasSpaces(const string &word) { method WriteAffixTable (line 167) | static void WriteAffixTable(const AffixTable &affixes, class FeatureSize (line 189) | class FeatureSize : public OpKernel { method FeatureSize (line 191) | explicit FeatureSize(OpKernelConstruction *context) : OpKernel(conte... method Compute (line 213) | void Compute(OpKernelContext *context) override { FILE: model_zoo/models/syntaxnet/syntaxnet/lexicon_builder_test.py class LexiconBuilderTest (line 76) | class LexiconBuilderTest(test_util.TensorFlowTestCase): method setUp (line 78) | def setUp(self): method AddInput (line 86) | def AddInput(self, name, file_pattern, record_format, context): method WriteContext (line 92) | def WriteContext(self, corpus_format): method ReadNextDocument (line 103) | def ReadNextDocument(self, sess, doc_source): method ValidateDocuments (line 112) | def ValidateDocuments(self): method ValidateTagToCategoryMap (line 130) | def ValidateTagToCategoryMap(self): method LoadMap (line 137) | def LoadMap(self, map_name): method ValidateCharMap (line 146) | def ValidateCharMap(self): method ValidateWordMap (line 152) | def ValidateWordMap(self): method BuildLexicon (line 157) | def BuildLexicon(self): method testCoNLLFormat (line 161) | def testCoNLLFormat(self): method testCoNLLFormatExtraNewlinesAndComments (line 173) | def testCoNLLFormatExtraNewlinesAndComments(self): method testTokenizedTextFormat (line 182) | def testTokenizedTextFormat(self): method testTokenizedTextFormatExtraNewlines (line 189) | def testTokenizedTextFormatExtraNewlines(self): FILE: model_zoo/models/syntaxnet/syntaxnet/morpher_transitions.cc type syntaxnet (line 39) | namespace syntaxnet { class MorphologyTransitionState (line 41) | class MorphologyTransitionState : public ParserTransitionState { method MorphologyTransitionState (line 43) | explicit MorphologyTransitionState(const MorphologyLabelSet *label_set) method MorphologyTransitionState (line 46) | explicit MorphologyTransitionState(const MorphologyTransitionState *... method ParserTransitionState (line 53) | ParserTransitionState *Clone() const override { method Init (line 58) | void Init(ParserState *state) override { method Tag (line 73) | int Tag(int index) const { method SetTag (line 80) | void SetTag(int index, int tag) { method GoldTag (line 87) | int GoldTag(int index) const { method TokenMorphology (line 95) | const TokenMorphology &TagAsProto(int tag) const { method AddParseToDocument (line 103) | void AddParseToDocument(const ParserState &state, bool rewrite_root_... method IsTokenCorrect (line 113) | bool IsTokenCorrect(const ParserState &state, int index) const overr... method string (line 118) | string ToString(const ParserState &state) const override { class MorphologyTransitionSystem (line 147) | class MorphologyTransitionSystem : public ParserTransitionSystem { method Setup (line 152) | void Setup(TaskContext *context) override { method Init (line 157) | void Init(TaskContext *context) override { method ParserAction (line 165) | static ParserAction ShiftAction(int tag) { return tag; } method AllowsNonProjective (line 169) | bool AllowsNonProjective() const override { return true; } method NumActionTypes (line 172) | int NumActionTypes() const override { return 1; } method NumActions (line 175) | int NumActions(int num_labels) const override { return label_set_->S... method ParserAction (line 178) | ParserAction GetDefaultAction(const ParserState &state) const overri... method ParserAction (line 184) | ParserAction GetNextGoldAction(const ParserState &state) const overr... method IsAllowedAction (line 192) | bool IsAllowedAction(ParserAction action, method PerformActionWithoutHistory (line 199) | void PerformActionWithoutHistory(ParserAction action, method IsFinalState (line 211) | bool IsFinalState(const ParserState &state) const override { method string (line 216) | string ActionAsString(ParserAction action, method IsDeterministicState (line 223) | bool IsDeterministicState(const ParserState &state) const override { method ParserTransitionState (line 228) | ParserTransitionState *NewTransitionState(bool training_mode) const ... method MorphologyTransitionState (line 234) | static const MorphologyTransitionState &TransitionState( method MorphologyTransitionState (line 242) | static MorphologyTransitionState *MutableTransitionState(ParserState... class PredictedMorphTagFeatureFunction (line 259) | class PredictedMorphTagFeatureFunction : public ParserIndexFeatureFunc... method PredictedMorphTagFeatureFunction (line 261) | PredictedMorphTagFeatureFunction() {} method Setup (line 264) | void Setup(TaskContext *context) override { method Init (line 269) | void Init(TaskContext *context) override { method FeatureValue (line 279) | FeatureValue Compute(const WorkspaceSet &workspaces, const ParserSta... FILE: model_zoo/models/syntaxnet/syntaxnet/morphology_label_set.cc type syntaxnet (line 18) | namespace syntaxnet { function TokenMorphology (line 41) | const TokenMorphology &MorphologyLabelSet::Lookup(int i) const { function string (line 71) | string MorphologyLabelSet::StringForMatch(const TokenMorphology &morph... function string (line 81) | string FullLabelFeatureType::GetFeatureValueName(FeatureValue value) c... FILE: model_zoo/models/syntaxnet/syntaxnet/morphology_label_set.h function namespace (line 29) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/morphology_label_set_test.cc type syntaxnet (line 24) | namespace syntaxnet { class MorphologyLabelSetTest (line 26) | class MorphologyLabelSetTest : public ::testing::Test { function TEST_F (line 32) | TEST_F(MorphologyLabelSetTest, AddLookupExisting) { function TEST_F (line 78) | TEST_F(MorphologyLabelSetTest, Serialization) { FILE: model_zoo/models/syntaxnet/syntaxnet/ops/parser_ops.cc type syntaxnet (line 18) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/parser_eval.py function RewriteContext (line 63) | def RewriteContext(task_context): function Eval (line 76) | def Eval(sess): function main (line 154) | def main(unused_argv): FILE: model_zoo/models/syntaxnet/syntaxnet/parser_features.cc type syntaxnet (line 24) | namespace syntaxnet { function string (line 38) | string RootFeatureType::GetFeatureValueName(FeatureValue value) const { function FeatureValue (line 43) | FeatureValue RootFeatureType::GetDomainSize() const { class InputParserLocator (line 51) | class InputParserLocator : public ParserLocator { method GetFocus (line 54) | int GetFocus(const WorkspaceSet &workspaces, const ParserState &stat... class StackParserLocator (line 64) | class StackParserLocator : public ParserLocator { method GetFocus (line 67) | int GetFocus(const WorkspaceSet &workspaces, const ParserState &stat... class HeadFeatureLocator (line 78) | class HeadFeatureLocator : public ParserIndexLocator ParserFeatureFunction; type FeatureFunction (line 47) | typedef FeatureFunction ParserIndexFeatureFunction; type FeatureExtractor (line 67) | typedef FeatureExtractor ParserFeatureExtractor; function class (line 70) | class RootFeatureType : public FeatureType { function Init (line 107) | void Init(TaskContext *context) override { function RequestWorkspaces (line 115) | void RequestWorkspaces(WorkspaceRegistry *registry) override { function Preprocess (line 119) | void Preprocess(WorkspaceSet *workspaces, ParserState *state) const over... FILE: model_zoo/models/syntaxnet/syntaxnet/parser_features_test.cc type syntaxnet (line 32) | namespace syntaxnet { class ParserFeatureFunctionTest (line 38) | class ParserFeatureFunctionTest : public ::testing::Test { method SetUp (line 41) | void SetUp() override { method string (line 85) | string ExtractFeature(const string &feature_name) { function TEST_F (line 112) | TEST_F(ParserFeatureFunctionTest, TagFeatureFunction) { function TEST_F (line 122) | TEST_F(ParserFeatureFunctionTest, LabelFeatureFunction) { FILE: model_zoo/models/syntaxnet/syntaxnet/parser_state.cc type syntaxnet (line 23) | namespace syntaxnet { function ParserState (line 51) | ParserState *ParserState::Clone() const { function string (line 236) | string ParserState::LabelAsString(int label) const { function string (line 244) | string ParserState::ToString() const { FILE: model_zoo/models/syntaxnet/syntaxnet/parser_state.h function namespace (line 29) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/parser_trainer.py function StageName (line 86) | def StageName(): function OutputPath (line 90) | def OutputPath(path): function RewriteContext (line 94) | def RewriteContext(): function WriteStatus (line 107) | def WriteStatus(num_steps, eval_metric, best_eval_metric): function Eval (line 118) | def Eval(sess, parser, num_steps, best_eval_metric): function Train (line 161) | def Train(sess, num_actions, feature_sizes, domain_sizes, embedding_dims): function main (line 256) | def main(unused_argv): FILE: model_zoo/models/syntaxnet/syntaxnet/parser_transitions.cc type syntaxnet (line 20) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/parser_transitions.h function namespace (line 27) | namespace tensorflow { type ParserAction (line 41) | typedef int ParserAction; function LabelType (line 44) | enum class LabelType { FILE: model_zoo/models/syntaxnet/syntaxnet/populate_test_inputs.cc type syntaxnet (line 34) | namespace syntaxnet { function string (line 139) | string PopulateTestInputs::AddPart(TaskInput *input, const string &fil... FILE: model_zoo/models/syntaxnet/syntaxnet/populate_test_inputs.h function namespace (line 71) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/proto_io.h function namespace (line 42) | namespace syntaxnet { function class (line 146) | class TextReader { function class (line 210) | class TextWriter { FILE: model_zoo/models/syntaxnet/syntaxnet/reader_ops.cc type syntaxnet (line 57) | namespace syntaxnet { class ParsingReader (line 59) | class ParsingReader : public OpKernel { method ParsingReader (line 61) | explicit ParsingReader(OpKernelConstruction *context) : OpKernel(con... method AdvanceSentence (line 108) | virtual void AdvanceSentence(int index) { method Compute (line 119) | void Compute(OpKernelContext *context) override { method default_outputs (line 196) | std::vector default_outputs() const { method max_batch_size (line 203) | int max_batch_size() const { return max_batch_size_; } method batch_size (line 204) | int batch_size() const { return sentence_batch_->size(); } method additional_output_index (line 205) | int additional_output_index() const { return feature_size_ + 1; } method ParserState (line 206) | ParserState *state(int i) const { return states_[i].get(); } method ParserTransitionSystem (line 207) | const ParserTransitionSystem &transition_system() const { method TaskContext (line 212) | const TaskContext &task_context() const { return task_context_; } method string (line 214) | const string &arg_prefix() const { return arg_prefix_; } class GoldParseReader (line 259) | class GoldParseReader : public ParsingReader { method GoldParseReader (line 261) | explicit GoldParseReader(OpKernelConstruction *context) method PerformActions (line 271) | void PerformActions(OpKernelContext *context) override { method AddAdditionalOutputs (line 281) | void AddAdditionalOutputs(OpKernelContext *context) const override { class DecodedParseReader (line 319) | class DecodedParseReader : public ParsingReader { method DecodedParseReader (line 321) | explicit DecodedParseReader(OpKernelConstruction *context) method AdvanceSentence (line 335) | void AdvanceSentence(int index) override { method ComputeTokenAccuracy (line 343) | void ComputeTokenAccuracy(const ParserState &state) { method PerformActions (line 356) | void PerformActions(OpKernelContext *context) override { method AddAdditionalOutputs (line 389) | void AddAdditionalOutputs(OpKernelContext *context) const override { class WordEmbeddingInitializer (line 438) | class WordEmbeddingInitializer : public OpKernel { method WordEmbeddingInitializer (line 440) | explicit WordEmbeddingInitializer(OpKernelConstruction *context) method Compute (line 457) | void Compute(OpKernelContext *context) override { method SetNormalizedRow (line 497) | void SetNormalizedRow(const TokenEmbedding::Vector &vector, const in... method CopyToTmpPath (line 513) | static tensorflow::Status CopyToTmpPath(const string &source_path, FILE: model_zoo/models/syntaxnet/syntaxnet/reader_ops_test.py class ParsingReaderOpsTest (line 40) | class ParsingReaderOpsTest(test_util.TensorFlowTestCase): method setUp (line 42) | def setUp(self): method GetMaxId (line 62) | def GetMaxId(self, sparse_features): method testParsingReaderOp (line 72) | def testParsingReaderOp(self): method testParsingReaderOpWhileLoop (line 129) | def testParsingReaderOpWhileLoop(self): method testWordEmbeddingInitializer (line 171) | def testWordEmbeddingInitializer(self): FILE: model_zoo/models/syntaxnet/syntaxnet/registry.cc type syntaxnet (line 18) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/registry.h function namespace (line 62) | namespace syntaxnet { function class (line 100) | class RegistryMetadata : public ComponentMetadata { type ComponentRegistry (line 122) | typedef ComponentRegistry Self; function class (line 125) | class Registrar : public ComponentMetadata { function Registrar (line 161) | const Registrar *GetComponent(const char *type) const { function T (line 171) | T *Lookup(const char *type) const { return GetComponent(type)->object(); } function T (line 172) | T *Lookup(const string &type) const { return Lookup(type.c_str()); } type ComponentRegistry (line 196) | typedef ComponentRegistry Registry; function T (line 199) | static T *Create(const string &type) { return registry()->Lookup(type)(); } function Registry (line 202) | static Registry *registry() { return ®istry_; } FILE: model_zoo/models/syntaxnet/syntaxnet/segmenter_utils.cc type syntaxnet (line 21) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/segmenter_utils.h function namespace (line 27) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/segmenter_utils_test.cc type syntaxnet (line 26) | namespace syntaxnet { function Sentence (line 29) | static Sentence GetKoSentence() { function GetStartEndBytes (line 61) | static void GetStartEndBytes(const string &text, function TEST (line 75) | TEST(SegmenterUtilsTest, GetCharsTest) { function TEST (line 118) | TEST(SegmenterUtilsTest, SetCharsAsTokensTest) { FILE: model_zoo/models/syntaxnet/syntaxnet/sentence_batch.cc type syntaxnet (line 24) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/sentence_batch.h function namespace (line 34) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/sentence_features.cc type syntaxnet (line 23) | namespace syntaxnet { function string (line 46) | string TermFrequencyMapFeature::GetFeatureValueName(FeatureValue value... function string (line 55) | string TermFrequencyMapFeature::WorkspaceName() const { function string (line 80) | string TermFrequencyMapSetFeature::WorkspaceName() const { function GetUTF8Chars (line 86) | void GetUTF8Chars(const string &word, vector ... function UTF8FirstLetterNumBytes (line 94) | int UTF8FirstLetterNumBytes(const char *utf8_str) { function string (line 137) | string Hyphen::GetFeatureValueName(FeatureValue value) const { function FeatureValue (line 147) | FeatureValue Hyphen::ComputeValue(const Token &token) const { function string (line 169) | string Capitalization::GetFeatureValueName(FeatureValue value) const { function FeatureValue (line 185) | FeatureValue Capitalization::ComputeValueWithFocus(const Token &token, function string (line 214) | string PunctuationAmount::GetFeatureValueName(FeatureValue value) const { function FeatureValue (line 226) | FeatureValue PunctuationAmount::ComputeValue(const Token &token) const { function string (line 245) | string Quote::GetFeatureValueName(FeatureValue value) const { function FeatureValue (line 259) | FeatureValue Quote::ComputeValue(const Token &token) const { function string (line 298) | string Digit::GetFeatureValueName(FeatureValue value) const { function FeatureValue (line 310) | FeatureValue Digit::ComputeValue(const Token &token) const { function string (line 338) | string AffixTableFeature::WorkspaceName() const { function AffixTable (line 345) | static AffixTable *CreateAffixTable(const string &filename, function FeatureValue (line 376) | FeatureValue AffixTableFeature::ComputeValue(const Token &token) const { function string (line 394) | string AffixTableFeature::GetFeatureValueName(FeatureValue value) const { FILE: model_zoo/models/syntaxnet/syntaxnet/sentence_features.h function namespace (line 31) | namespace syntaxnet { function class (line 99) | class TokenLookupSetFeature : public SentenceFeature { function virtual (line 119) | virtual string WorkspaceName() const = 0; function vector (line 140) | const vector &GetCachedValueSet(const WorkspaceSet &workspaces, function Evaluate (line 152) | void Evaluate(const WorkspaceSet &workspaces, const Sentence &sentence, function FeatureValue (line 165) | FeatureValue Compute(const WorkspaceSet &workspaces, const Sentence &sen... function class (line 176) | class TermFrequencyMapFeature : public TokenLookupFeature { function class (line 224) | class TermFrequencyMapSetFeature : public TokenLookupSetFeature { function class (line 298) | class Word : public TermFrequencyMapFeature { function class (line 308) | class Char : public TermFrequencyMapFeature { function class (line 338) | class LowercaseWord : public TermFrequencyMapFeature { function class (line 348) | class Tag : public TermFrequencyMapFeature { function class (line 357) | class Label : public TermFrequencyMapFeature { function class (line 366) | class CharNgram : public TermFrequencyMapSetFeature { function class (line 389) | class MorphologySet : public TermFrequencyMapSetFeature { function class (line 407) | class LexicalCategoryFeature : public TokenLookupFeature { function class (line 429) | class Hyphen : public LexicalCategoryFeature { function class (line 451) | class Capitalization : public LexicalCategoryFeature { function class (line 492) | class PunctuationAmount : public LexicalCategoryFeature { function class (line 516) | class Quote : public LexicalCategoryFeature { function class (line 542) | class Digit : public LexicalCategoryFeature { function class (line 567) | class AffixTableFeature : public TokenLookupFeature { function class (line 613) | class PrefixFeature : public AffixTableFeature { function class (line 620) | class SuffixFeature : public AffixTableFeature { function class (line 626) | class Offset : public Locator { type FeatureExtractor (line 634) | typedef FeatureExtractor SentenceExtractor; FILE: model_zoo/models/syntaxnet/syntaxnet/sentence_features_test.cc type syntaxnet (line 33) | namespace syntaxnet { class SentenceFeaturesTest (line 37) | class SentenceFeaturesTest : public ::testing::Test { method SentenceFeaturesTest (line 39) | explicit SentenceFeaturesTest(const string &prototxt) method Sentence (line 43) | static Sentence ParseASCII(const string &prototxt) { method PrepareFeature (line 52) | virtual void PrepareFeature(const string &fml) { method string (line 67) | virtual string ExtractFeature(int index) { method ExtractMultiFeature (line 76) | virtual vector ExtractMultiFeature(int index) { method AddInputToContext (line 88) | void AddInputToContext(const string &name, const string &file_pattern, method CheckVectorWorkspace (line 99) | void CheckVectorWorkspace(const VectorIntWorkspace &workspace, class CommonSentenceFeaturesTest (line 118) | class CommonSentenceFeaturesTest : public SentenceFeaturesTest { method CommonSentenceFeaturesTest (line 120) | CommonSentenceFeaturesTest() function TEST_F (line 147) | TEST_F(CommonSentenceFeaturesTest, TagFeature) { function TEST_F (line 157) | TEST_F(CommonSentenceFeaturesTest, TagFeaturePassesArgs) { function TEST_F (line 167) | TEST_F(CommonSentenceFeaturesTest, OffsetPlusTag) { function TEST_F (line 182) | TEST_F(CommonSentenceFeaturesTest, CharNgramFeature) { function TEST_F (line 201) | TEST_F(CommonSentenceFeaturesTest, MorphologySetFeature) { function TEST_F (line 219) | TEST_F(CommonSentenceFeaturesTest, CapitalizationProcessesCorrectly) { class CharFeatureTest (line 237) | class CharFeatureTest : public SentenceFeaturesTest { method CharFeatureTest (line 239) | CharFeatureTest() function TEST_F (line 251) | TEST_F(CharFeatureTest, CharFeature) { FILE: model_zoo/models/syntaxnet/syntaxnet/shared_store.cc type syntaxnet (line 22) | namespace syntaxnet { function string (line 64) | string SharedStoreUtils::CreateDefaultName() { return string(); } function string (line 66) | string SharedStoreUtils::ToString(const string &input) { function string (line 70) | string SharedStoreUtils::ToString(const char *input) { function string (line 74) | string SharedStoreUtils::ToString(tensorflow::StringPiece input) { function string (line 79) | string SharedStoreUtils::ToString(bool input) { function string (line 83) | string SharedStoreUtils::ToString(float input) { function string (line 87) | string SharedStoreUtils::ToString(double input) { FILE: model_zoo/models/syntaxnet/syntaxnet/shared_store.h function class (line 33) | class SharedStore { FILE: model_zoo/models/syntaxnet/syntaxnet/shared_store_test.cc type syntaxnet (line 26) | namespace syntaxnet { type NoArgs (line 28) | struct NoArgs { method NoArgs (line 29) | NoArgs() { type OneArg (line 34) | struct OneArg { method OneArg (line 36) | explicit OneArg(const string &n) : name(n) { type TwoArgs (line 41) | struct TwoArgs { method TwoArgs (line 44) | TwoArgs(const string &n, int a) : name(n), age(a) { type Slow (line 49) | struct Slow { method Slow (line 51) | Slow() { type CountCalls (line 57) | struct CountCalls { method CountCalls (line 58) | CountCalls() { method Reset (line 68) | static void Reset() { class PointerSet (line 80) | class PointerSet { method PointerSet (line 82) | PointerSet() { } method Add (line 84) | void Add(const void *p) { method size (line 89) | int size() { class SharedStoreTest (line 99) | class SharedStoreTest : public testing::Test { function TEST_F (line 109) | TEST_F(SharedStoreTest, ConstructorArgs) { function TEST_F (line 116) | TEST_F(SharedStoreTest, Shared) { function TEST_F (line 126) | TEST_F(SharedStoreTest, DifferentTypes) { function OneArg (line 136) | OneArg *MakeOneArg(const string &n) { method OneArg (line 36) | explicit OneArg(const string &n) : name(n) { function TEST_F (line 140) | TEST_F(SharedStoreTest, ClosureGet) { function TEST_F (line 149) | TEST_F(SharedStoreTest, PermanentCallback) { function NoArgs (line 158) | NoArgs *BogusMakeNoArgs(NoArgs *ob) { method NoArgs (line 29) | NoArgs() { function CountCalls (line 163) | CountCalls *MakeFailedCountCalls() { method CountCalls (line 58) | CountCalls() { method Reset (line 68) | static void Reset() { function TEST_F (line 171) | TEST_F(SharedStoreTest, FailedClosureGet) { function TEST_F (line 184) | TEST_F(SharedStoreDeathTest, ClosureGetOrDie) { function TEST_F (line 190) | TEST_F(SharedStoreTest, Release) { function TEST_F (line 200) | TEST_F(SharedStoreTest, Clear) { function GetSharedObject (line 214) | void GetSharedObject(PointerSet *ps) { function TEST_F (line 225) | TEST_F(SharedStoreTest, ThreadSafety) { FILE: model_zoo/models/syntaxnet/syntaxnet/structured_graph_builder.py function AddCrossEntropy (line 32) | def AddCrossEntropy(batch_size, n): class StructuredGraphBuilder (line 60) | class StructuredGraphBuilder(graph_builder.GreedyParser): method __init__ (line 71) | def __init__(self, *args, **kwargs): method _AddBeamReader (line 76) | def _AddBeamReader(self, method _BuildSequence (line 95) | def _BuildSequence(self, method AddTraining (line 134) | def AddTraining(self, method AddEvaluation (line 222) | def AddEvaluation(self, FILE: model_zoo/models/syntaxnet/syntaxnet/tagger_transitions.cc type syntaxnet (line 38) | namespace syntaxnet { class TaggerTransitionState (line 40) | class TaggerTransitionState : public ParserTransitionState { method TaggerTransitionState (line 42) | explicit TaggerTransitionState(const TermFrequencyMap *tag_map, method TaggerTransitionState (line 46) | explicit TaggerTransitionState(const TaggerTransitionState *state) method ParserTransitionState (line 53) | ParserTransitionState *Clone() const override { method Init (line 58) | void Init(ParserState *state) override { method Tag (line 68) | int Tag(int index) const { method SetTag (line 75) | void SetTag(int index, int tag) { method GoldTag (line 82) | int GoldTag(int index) const { method string (line 90) | string TagAsString(int tag) const { method AddParseToDocument (line 98) | void AddParseToDocument(const ParserState &state, bool rewrite_root_... method IsTokenCorrect (line 110) | bool IsTokenCorrect(const ParserState &state, int index) const overr... method string (line 115) | string ToString(const ParserState &state) const override { class TaggerTransitionSystem (line 146) | class TaggerTransitionSystem : public ParserTransitionSystem { method Setup (line 151) | void Setup(TaskContext *context) override { method Init (line 158) | void Init(TaskContext *context) override { method ParserAction (line 171) | static ParserAction ShiftAction(int tag) { return tag; } method AllowsNonProjective (line 175) | bool AllowsNonProjective() const override { return true; } method NumActionTypes (line 178) | int NumActionTypes() const override { return 1; } method NumActions (line 181) | int NumActions(int num_labels) const override { return tag_map_->Siz... method ParserAction (line 184) | ParserAction GetDefaultAction(const ParserState &state) const overri... method ParserAction (line 190) | ParserAction GetNextGoldAction(const ParserState &state) const overr... method IsAllowedAction (line 198) | bool IsAllowedAction(ParserAction action, method PerformActionWithoutHistory (line 205) | void PerformActionWithoutHistory(ParserAction action, method IsFinalState (line 217) | bool IsFinalState(const ParserState &state) const override { method string (line 222) | string ActionAsString(ParserAction action, method IsDeterministicState (line 229) | bool IsDeterministicState(const ParserState &state) const override { method ParserTransitionState (line 234) | ParserTransitionState *NewTransitionState(bool training_mode) const ... method TaggerTransitionState (line 240) | static const TaggerTransitionState &TransitionState( method TaggerTransitionState (line 248) | static TaggerTransitionState *MutableTransitionState(ParserState *st... class PredictedTagFeatureFunction (line 273) | class PredictedTagFeatureFunction method PredictedTagFeatureFunction (line 276) | PredictedTagFeatureFunction() {} method FeatureValue (line 280) | FeatureValue Compute(const WorkspaceSet &workspaces, const ParserSta... FILE: model_zoo/models/syntaxnet/syntaxnet/tagger_transitions_test.cc type syntaxnet (line 31) | namespace syntaxnet { class TaggerTransitionTest (line 33) | class TaggerTransitionTest : public ::testing::Test { method TaggerTransitionTest (line 35) | TaggerTransitionTest() method SetUpForDocument (line 41) | void SetUpForDocument(const Sentence &document) { method ParserState (line 54) | ParserState *NewClonedState(Sentence *sentence) { method GoldParse (line 63) | void GoldParse(Sentence *sentence) { method DefaultParse (line 79) | void DefaultParse(Sentence *sentence) { function TEST_F (line 99) | TEST_F(TaggerTransitionTest, SingleSentenceDocumentTest) { FILE: model_zoo/models/syntaxnet/syntaxnet/task_context.cc type syntaxnet (line 21) | namespace syntaxnet { function TaskInput (line 28) | TaskInput *TaskContext::GetInput(const string &name) { function TaskInput (line 40) | TaskInput *TaskContext::GetInput(const string &name, const string &fil... function string (line 75) | string TaskContext::GetParameter(const string &name) const { function int64 (line 90) | int64 TaskContext::GetInt64Parameter(const string &name) const { function string (line 105) | string TaskContext::Get(const string &name, const char *defval) const { function string (line 115) | string TaskContext::Get(const string &name, const string &defval) const { function int64 (line 124) | int64 TaskContext::Get(const string &name, int64 defval) const { function string (line 139) | string TaskContext::InputFile(const TaskInput &input) { FILE: model_zoo/models/syntaxnet/syntaxnet/task_context.h function namespace (line 25) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/term_frequency_map.cc type syntaxnet (line 28) | namespace syntaxnet { type TermFrequencyMap::SortByFrequencyThenTerm (line 107) | struct TermFrequencyMap::SortByFrequencyThenTerm { function string (line 159) | const string &TagToCategoryMap::GetCategory(const string &tag) const { FILE: model_zoo/models/syntaxnet/syntaxnet/term_frequency_map.h function namespace (line 28) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/test_main.cc function GTEST_API_ (line 32) | GTEST_API_ int main(int argc, char **argv) { FILE: model_zoo/models/syntaxnet/syntaxnet/text_formats.cc type syntaxnet (line 29) | namespace syntaxnet { class CoNLLSyntaxFormat (line 63) | class CoNLLSyntaxFormat : public DocumentFormat { method CoNLLSyntaxFormat (line 65) | CoNLLSyntaxFormat() {} method Setup (line 67) | void Setup(TaskContext *context) override { method ReadRecord (line 73) | bool ReadRecord(tensorflow::io::BufferedInputStream *buffer, method ConvertFromString (line 85) | void ConvertFromString(const string &key, const string &value, method ConvertToString (line 166) | void ConvertToString(const Sentence &sentence, string *key, method string (line 192) | string UnderscoreIfEmpty(const string &field) { method AddMorphAttributes (line 198) | void AddMorphAttributes(const string &attributes, Token *token) { method string (line 229) | string GetMorphAttributes(const Token &token) { method JoinCategoryToPos (line 244) | void JoinCategoryToPos(Token *token) { method SplitCategoryFromPos (line 250) | void SplitCategoryFromPos(Token *token) { method AddPosAsAttribute (line 259) | void AddPosAsAttribute(Token *token) { method RemovePosFromAttributes (line 269) | void RemovePosFromAttributes(Token *token) { class SegmentationTrainingDataFormat (line 320) | class SegmentationTrainingDataFormat : public CoNLLSyntaxFormat { method ConvertFromString (line 327) | void ConvertFromString(const string &key, const string &value, class TokenizedTextFormat (line 406) | class TokenizedTextFormat : public DocumentFormat { method TokenizedTextFormat (line 408) | TokenizedTextFormat() {} method ReadRecord (line 411) | bool ReadRecord(tensorflow::io::BufferedInputStream *buffer, method ConvertFromString (line 416) | void ConvertFromString(const string &key, const string &value, method ConvertToString (line 443) | void ConvertToString(const Sentence &sentence, string *key, class UntokenizedTextFormat (line 472) | class UntokenizedTextFormat : public TokenizedTextFormat { method UntokenizedTextFormat (line 474) | UntokenizedTextFormat() {} method ConvertFromString (line 476) | void ConvertFromString(const string &key, const string &value, class EnglishTextFormat (line 512) | class EnglishTextFormat : public TokenizedTextFormat { method EnglishTextFormat (line 514) | EnglishTextFormat() {} method ConvertFromString (line 516) | void ConvertFromString(const string &key, const string &value, FILE: model_zoo/models/syntaxnet/syntaxnet/text_formats_test.py class TextFormatsTest (line 37) | class TextFormatsTest(test_util.TensorFlowTestCase): method setUp (line 39) | def setUp(self): method AddInput (line 47) | def AddInput(self, name, file_pattern, record_format, context): method AddParameter (line 53) | def AddParameter(self, name, value, context): method WriteContext (line 58) | def WriteContext(self, corpus_format): method ReadNextDocument (line 69) | def ReadNextDocument(self, sess, sentence): method CheckTokenization (line 78) | def CheckTokenization(self, sentence, tokenization): method CheckUntokenizedDoc (line 90) | def CheckUntokenizedDoc(self, sentence, words, starts, ends): method testUntokenized (line 107) | def testUntokenized(self): method testSegmentationTrainingData (line 113) | def testSegmentationTrainingData(self): method CheckSegmentationTrainingData (line 136) | def CheckSegmentationTrainingData(self, doc_lines, doc_text, doc_words, method testSimple (line 156) | def testSimple(self): method testUrl (line 172) | def testUrl(self): FILE: model_zoo/models/syntaxnet/syntaxnet/unpack_sparse_features.cc type syntaxnet (line 42) | namespace syntaxnet { class UnpackSparseFeatures (line 45) | class UnpackSparseFeatures : public OpKernel { method UnpackSparseFeatures (line 47) | explicit UnpackSparseFeatures(OpKernelConstruction *context) method Compute (line 53) | void Compute(OpKernelContext *context) override { FILE: model_zoo/models/syntaxnet/syntaxnet/utils.cc type syntaxnet (line 19) | namespace syntaxnet { type utils (line 20) | namespace utils { function ParseInt32 (line 22) | bool ParseInt32(const char *c_str, int *value) { function ParseInt64 (line 28) | bool ParseInt64(const char *c_str, int64 *value) { function ParseDouble (line 34) | bool ParseDouble(const char *c_str, double *value) { function string (line 42) | string CEscape(const string &src) { function Split (line 84) | std::vector Split(const string &text, char delim) { function SplitOne (line 98) | std::vector SplitOne(const string &text, char delim) { function IsAbsolutePath (line 108) | bool IsAbsolutePath(tensorflow::StringPiece path) { function string (line 114) | string JoinPath(std::initializer_list paths) { function RemoveLeadingWhitespace (line 145) | size_t RemoveLeadingWhitespace(tensorflow::StringPiece *text) { function RemoveTrailingWhitespace (line 156) | size_t RemoveTrailingWhitespace(tensorflow::StringPiece *text) { function RemoveWhitespaceContext (line 167) | size_t RemoveWhitespaceContext(tensorflow::StringPiece *text) { function uint32 (line 175) | inline uint32 DecodeFixed32(const char *ptr) { function uint32 (line 183) | static inline uint32 ByteAs32(char c) { return static_cast(c... function uint32 (line 186) | uint32 Hash32(const char *data, size_t n, uint32 seed) { function string (line 228) | string Lowercase(tensorflow::StringPiece s) { function NormalizeDigits (line 263) | void NormalizeDigits(string *form) { FILE: model_zoo/models/syntaxnet/syntaxnet/utils.h function namespace (line 30) | namespace syntaxnet { FILE: model_zoo/models/syntaxnet/syntaxnet/workspace.cc type syntaxnet (line 20) | namespace syntaxnet { function string (line 22) | string WorkspaceRegistry::DebugString() const { function string (line 43) | string VectorIntWorkspace::TypeName() { return "Vector"; } function string (line 48) | string VectorVectorIntWorkspace::TypeName() { return "VectorVector"; } FILE: model_zoo/models/syntaxnet/syntaxnet/workspace.h function namespace (line 31) | namespace syntaxnet { function class (line 89) | class WorkspaceSet { function class (line 144) | class SingletonIntWorkspace : public Workspace { function class (line 167) | class VectorIntWorkspace : public Workspace { function class (line 196) | class VectorVectorIntWorkspace : public Workspace { FILE: model_zoo/models/syntaxnet/third_party/utf/rune.c function charntorune (line 65) | int function chartorune (line 168) | int function isvalidcharntorune (line 246) | int function runetochar (line 252) | int function runelen (line 309) | int function runenlen (line 317) | int function fullrune (line 340) | int FILE: model_zoo/models/syntaxnet/third_party/utf/runestrcat.c function Rune (line 19) | Rune* FILE: model_zoo/models/syntaxnet/third_party/utf/runestrchr.c function Rune (line 19) | const FILE: model_zoo/models/syntaxnet/third_party/utf/runestrcmp.c function runestrcmp (line 19) | int FILE: model_zoo/models/syntaxnet/third_party/utf/runestrcpy.c function Rune (line 19) | Rune* FILE: model_zoo/models/syntaxnet/third_party/utf/runestrdup.c function Rune (line 20) | Rune* FILE: model_zoo/models/syntaxnet/third_party/utf/runestrecpy.c function Rune (line 19) | Rune* FILE: model_zoo/models/syntaxnet/third_party/utf/runestrlen.c function runestrlen (line 19) | long FILE: model_zoo/models/syntaxnet/third_party/utf/runestrncat.c function Rune (line 19) | Rune* FILE: model_zoo/models/syntaxnet/third_party/utf/runestrncmp.c function runestrncmp (line 19) | int FILE: model_zoo/models/syntaxnet/third_party/utf/runestrncpy.c function Rune (line 19) | Rune* FILE: model_zoo/models/syntaxnet/third_party/utf/runestrrchr.c function Rune (line 19) | const FILE: model_zoo/models/syntaxnet/third_party/utf/runestrstr.c function Rune (line 23) | const FILE: model_zoo/models/syntaxnet/third_party/utf/runetype.c function Rune (line 17) | static function isideographicrune (line 59) | int FILE: model_zoo/models/syntaxnet/third_party/utf/runetypebody.c function isspacerune (line 17) | int function isdigitrune (line 73) | int function isalpharune (line 576) | int function isupperrune (line 748) | int function islowerrune (line 931) | int function istitlerune (line 1062) | int function Rune (line 1250) | Rune function Rune (line 1436) | Rune function Rune (line 1622) | Rune FILE: model_zoo/models/syntaxnet/third_party/utf/utf.h type Rune (line 19) | typedef signed int Rune; FILE: model_zoo/models/syntaxnet/third_party/utf/utfdef.h type uchar (line 8) | typedef unsigned char uchar; type ushort (line 9) | typedef unsigned short ushort; type uint (line 10) | typedef unsigned int uint; type ulong (line 11) | typedef unsigned long ulong; FILE: model_zoo/models/syntaxnet/third_party/utf/utflen.c function utflen (line 19) | int FILE: model_zoo/models/syntaxnet/third_party/utf/utfnlen.c function utfnlen (line 19) | int FILE: model_zoo/models/syntaxnet/util/utf8/gtest_main.cc function main (line 23) | int main(int argc, char **argv) { FILE: model_zoo/models/syntaxnet/util/utf8/unicodetext.cc function CodepointDistance (line 30) | static int CodepointDistance(const char* start, const char* end) { function CodepointCount (line 39) | static int CodepointCount(const char* utf8, int len) { function distance (line 43) | UnicodeText::const_iterator::difference_type function ConvertToInterchangeValid (line 51) | static int ConvertToInterchangeValid(char* start, int len) { function string (line 169) | string UnicodeText::Repr::DebugString() const { function string (line 198) | string UnicodeText::UTF8Substring(const const_iterator& first, function UnicodeText (line 207) | UnicodeText& UnicodeText::operator=(const UnicodeText& src) { function UnicodeText (line 214) | UnicodeText& UnicodeText::Copy(const UnicodeText& src) { function UnicodeText (line 219) | UnicodeText& UnicodeText::CopyUTF8(const char* buffer, int byte_length) { function UnicodeText (line 228) | UnicodeText& UnicodeText::UnsafeCopyUTF8(const char* buffer, function UnicodeText (line 236) | UnicodeText& UnicodeText::TakeOwnershipOfUTF8(char* buffer, function UnicodeText (line 247) | UnicodeText& UnicodeText::UnsafeTakeOwnershipOfUTF8(char* buffer, function UnicodeText (line 256) | UnicodeText& UnicodeText::PointToUTF8(const char* buffer, int byte_lengt... function UnicodeText (line 267) | UnicodeText& UnicodeText::UnsafePointToUTF8(const char* buffer, function UnicodeText (line 273) | UnicodeText& UnicodeText::PointTo(const UnicodeText& src) { function UnicodeText (line 278) | UnicodeText& UnicodeText::PointTo(const const_iterator &first, function UnicodeText (line 287) | UnicodeText& UnicodeText::append(const UnicodeText& u) { function UnicodeText (line 292) | UnicodeText& UnicodeText::append(const const_iterator& first, function UnicodeText (line 299) | UnicodeText& UnicodeText::UnsafeAppendUTF8(const char* utf8, int len) { function string (line 381) | string UnicodeText::DebugString() const { function char32 (line 421) | char32 UnicodeText::const_iterator::operator*() const { function string (line 468) | string UnicodeText::const_iterator::get_utf8_string() const { function string (line 495) | string UnicodeText::const_iterator::DebugString() const { function string (line 502) | string CodepointString(const UnicodeText& t) { FILE: model_zoo/models/syntaxnet/util/utf8/unicodetext.h function class (line 116) | class UnicodeText { function string (line 229) | string get_utf8_string() const; function const_iterator (line 246) | const_iterator begin() const; function string (line 261) | string get_utf8_string() const { function HasReplacementChar (line 286) | bool HasReplacementChar() const; function class (line 335) | class Repr { // A byte-string. type pair (line 386) | typedef pair& flow, Mat& dst, float m... function writeOpticalFlowToFile (line 132) | static void writeOpticalFlowToFile(const Mat_& flow, const stri... function convertFlowToImage (line 155) | static void convertFlowToImage(const Mat &flow_x, Mat &img_x, double low... function main (line 169) | int main(int argc, const char* argv[]) FILE: optical_flow/main.cpp function isFlowCorrect (line 16) | inline bool isFlowCorrect(Point2f u) function Vec3b (line 21) | static Vec3b computeColor(float fx, float fy) function drawOpticalFlow (line 91) | static void drawOpticalFlow(const Mat_& flow, Mat& dst, float m... function writeOpticalFlowToFile (line 130) | static void writeOpticalFlowToFile(const Mat_& flow, const stri... function convertFlowToImage (line 153) | static void convertFlowToImage(const Mat &flow_x, Mat &img_x, double low... function main (line 167) | int main(int argc, const char* argv[]) FILE: process_dataset.py function train_and_val_test (line 15) | def train_and_val_test(modality='rgb'): FILE: test_models.py function return_something_path (line 44) | def return_something_path(modality): class AverageMeter (line 64) | class AverageMeter(object): method __init__ (line 66) | def __init__(self): method reset (line 69) | def reset(self): method update (line 75) | def update(self, val, n=1): function accuracy (line 81) | def accuracy(output, target, topk=(1,)): function eval_video (line 193) | def eval_video(video_data): FILE: transforms.py class GroupRandomCrop (line 14) | class GroupRandomCrop(object): method __init__ (line 15) | def __init__(self, size): method __call__ (line 21) | def __call__(self, img_group): class GroupCenterCrop (line 41) | class GroupCenterCrop(object): method __init__ (line 42) | def __init__(self, size): method __call__ (line 45) | def __call__(self, img_group): class GroupRandomHorizontalFlip (line 49) | class GroupRandomHorizontalFlip(object): method __init__ (line 52) | def __init__(self, is_flow=False): method __call__ (line 55) | def __call__(self, img_group, is_flow=False): class GroupNormalize (line 67) | class GroupNormalize(object): method __init__ (line 68) | def __init__(self, mean, std): method __call__ (line 72) | def __call__(self, tensor): class GroupScale (line 83) | class GroupScale(object): method __init__ (line 92) | def __init__(self, size, interpolation=Image.BILINEAR): method __call__ (line 95) | def __call__(self, img_group): class GroupOverSample (line 99) | class GroupOverSample(object): method __init__ (line 100) | def __init__(self, crop_size, scale_size=None): method __call__ (line 108) | def __call__(self, img_group): class GroupMultiScaleCrop (line 136) | class GroupMultiScaleCrop(object): method __init__ (line 138) | def __init__(self, input_size, scales=None, max_distort=1, fix_crop=Tr... method __call__ (line 146) | def __call__(self, img_group): method _sample_crop_size (line 156) | def _sample_crop_size(self, im_size): method _sample_fix_offset (line 180) | def _sample_fix_offset(self, image_w, image_h, crop_w, crop_h): method fill_fix_offset (line 185) | def fill_fix_offset(more_fix_crop, image_w, image_h, crop_w, crop_h): class GroupRandomSizedCrop (line 210) | class GroupRandomSizedCrop(object): method __init__ (line 217) | def __init__(self, size, interpolation=Image.BILINEAR): method __call__ (line 221) | def __call__(self, img_group): class Stack (line 257) | class Stack(object): method __init__ (line 259) | def __init__(self, roll=False): method __call__ (line 262) | def __call__(self, img_group): class ToTorchFormatTensor (line 272) | class ToTorchFormatTensor(object): method __init__ (line 275) | def __init__(self, div=True): method __call__ (line 278) | def __call__(self, pic): class IdentityTransform (line 292) | class IdentityTransform(object): method __call__ (line 294) | def __call__(self, data):