Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for reduce_sum (0.14 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

            self.w = np.random.uniform(low=-2, high=2, size=w_shape).astype('f4')
    
          @def_function.function
          def condition(self, x, w):
            return math_ops.reduce_sum(x, keepdims=False) < 100
    
          @def_function.function
          def body(self, x, w):
            z = nn_ops.conv2d(x, w, padding='SAME')
            return z, w
    
          @def_function.function(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/math_grad.cc

      auto reduce =
          internal::BroadcastGradientArgs(scope, x_batch_shape, y_batch_shape);
      (*grad_outputs)[0] =
          Reshape(scope, ReduceSum(scope, (*grad_outputs)[0], reduce.r0), sx);
      (*grad_outputs)[1] =
          Reshape(scope, ReduceSum(scope, (*grad_outputs)[1], reduce.r1), sy);
      return scope.status();
    }
    REGISTER_GRADIENT_OP("BatchMatMulV2", BatchMatMulV2Grad);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        auto loc = op.getLoc();
    
        // Note that the TensorFlow Softmax op verifies that the input rank is
        // greater than or equal to one so the following sequence is valid.
        auto reduce_dim =
            rewriter.create<TF::ConstOp>(loc, GetI64ElementsAttr({-1}, &rewriter));
    
        // Exponential of input values and then their sum can be very large here.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
Back to top