Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for backprop (0.22 sec)

  1. tensorflow/cc/framework/gradients.cc

      DCHECK(while_ctx != nullptr);
    
      // Record 'summed_grads' as the backprop input associated with 'exit_node'
      std::map<Node*, Output>& backprops = while_backprops_[while_ctx];
      DCHECK(backprops.find(exit_node) == backprops.end());
      backprops[exit_node] = summed_grads;
    
      // Wait until we have all exit nodes' backprops collected before processing
      // the while loop.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 22K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/while_gradients.cc

      return result;
    }
    
    // The backprop loop counter and main backprop loop run in their own execution
    // frame (conceptually, the main forward loop and forward loop counter run
    // together in a frame, then the backprop loop counter and backprop loop run
    // together in a different frame). This returns the frame name to use for the
    // backprop while loops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      // Build new BackPropFilterOp.
      auto loc = backprop.getLoc();
      auto new_backprop = builder.create<TF::Conv2DBackpropFilterOp>(
          loc, new_result_type, input, new_filter_sizes, backprop.getOutBackprop(),
          strides, backprop.getUseCudnnOnGpu(), backprop.getPadding(),
          backprop.getExplicitPaddings(), backprop.getDataFormat(),
          backprop.getDilations());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/gradients/nn_grad_test.cc

        absl::Span<AbstractTensorHandle*> outputs) {
      AbstractTensorHandle* loss;
      AbstractTensorHandle* backprop;
      TF_RETURN_IF_ERROR(ops::SparseSoftmaxCrossEntropyWithLogits(
          ctx, inputs[0], inputs[1], &loss, &backprop,
          "SparseSoftmaxCrossEntropyWithLogits"));
      // `gradient_checker` only works with model that returns only 1 tensor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    // computes loss and backprop of the loss with respect to 'features'.
    //
    // Softmax cross entropy loss is defined as follows:
    //
    //  loss = Sum(-labels * Log(Exp(features) / Sum(Exp(features)))
    //  loss = Sum(-labels * LogSoftmax(features))
    //
    // Computing gradient of the loss with respect to features gives us,
    //
    //  backprop = (Exp(features) / Sum(Exp(features))) - labels
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/tape.h

    // any gradients to be computed).
    //
    // Finally, we start a backprop stack with a set of tape entries for which we
    // have all gradients available. This set usually is a subset of the set of
    // targets (not all since targets which have outputs in the tape will not have
    // gradients available initially).
    //
    // Then we repeatedly pop an entry from the stack, run its backprop, and update
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc

          });
        }
        filter_value = filter.getValue();
        mul_value = multiplier.getValue();
        // In MHLO, Conv filter is in HWIO format, Depthwise conv filter is in HW1O
        // format and backprop input conv filter is in HWOI format.
        // Only fuses multiplier if all dimensions other than the out channel
        // dimension are equal to 1.
        if (!TFL::IsDimensionsDegenerateExceptLastOne(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 22:21:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. tensorflow/c/while_loop_test.cc

          Add(params_->body_inputs[0], {one, 0}, params_->body_graph, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      params_->body_outputs[0] = {add, 0};
    
      ExpectOK();
    
      // Create backprop graph
      TF_Output grad_output;
      TF_AddGradients(graph_, outputs_.data(), outputs_.size(), inputs_.data(), 1,
                      nullptr, s_, &grad_output);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    example, suppose y = f(x) and we wish to apply a custom function g for backprop
    such that dx = g(dy). In Python,
    
    ```python
    with tf.get_default_graph().gradient_override_map(
        {'IdentityN': 'OverrideGradientWithG'}):
      y, _ = identity_n([f(x), x])
    
    @tf.RegisterGradient('OverrideGradientWithG')
    def ApplyG(op, dy, _):
      return [None, g(dy)]  # Do not backprop to f(x).
    ```
      }];
    
      let arguments = (ins
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  10. RELEASE.md

            *   `tf.compat.v1.nn.fused_batch_norm` backprop to `offset` when
                `is_training=False`
            *   `tf.image.adjust_contrast` forward
            *   `tf.nn.depthwise_conv2d` backprop to `filter` when not using cuDNN
                convolution
            *   `tf.image.resize` with `method=ResizeMethod.NEAREST` backprop
            *   `tf.math.bincount` - TODO: confirm exception added
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top