tensorflow/python/ops/nn_impl.py
File nn_impl.py
has 1879 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Function _compute_sampled_logits
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _compute_sampled_logits(weights,
Function sampled_softmax_loss
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sampled_softmax_loss(weights,
Function batch_norm_with_global_normalization
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def batch_norm_with_global_normalization(t=None,
Function fused_batch_norm
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def fused_batch_norm(
Function nce_loss
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def nce_loss(weights,
Function sampled_softmax_loss_v2
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sampled_softmax_loss_v2(weights,
Function nce_loss_v2
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def nce_loss_v2(weights,
Function separable_conv2d
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def separable_conv2d(input,
Function separable_conv2d_v2
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def separable_conv2d_v2(
Function depthwise_conv2d
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def depthwise_conv2d(input,
Function batch_norm_with_global_normalization_v2
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def batch_norm_with_global_normalization_v2(input,
Function depthwise_conv2d_v2
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def depthwise_conv2d_v2(input,
Function batch_normalization
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def batch_normalization(x,
Function moments
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def moments(
Function weighted_moments
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def weighted_moments(x, axes, frequency_weights, name=None, keep_dims=None,
Function sufficient_statistics
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sufficient_statistics(x, axes, shift=None, keep_dims=None, name=None,
Function normalize_moments
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def normalize_moments(counts, mean_ss, variance_ss, shift, name=None):
Function weighted_cross_entropy_with_logits
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def weighted_cross_entropy_with_logits(labels=None,
Function moments_v2
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def moments_v2(
Function sufficient_statistics_v2
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def sufficient_statistics_v2(x, axes, shift=None, keepdims=False, name=None):
Function l2_normalize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def l2_normalize(x, axis=None, epsilon=1e-12, name=None, dim=None):
Function weighted_moments_v2
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def weighted_moments_v2(x, axes, frequency_weights, keepdims=False, name=None):