Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SpaceToDepth (0.71 sec)

  1. tensorflow/compiler/mlir/tensorflow/g3doc/space_to_depth.md

    disable this feature as well.
    
    ### Fuse SpaceToDepth with Automatic Double Transpose
    
    The transpose and reshape op in SpaceToDepthOp on TPU hosts may cause image
    model to be infeed bound. To reduce host time, space to depth transform can be
    fused with `automatic double transpose` to reduce extra overhead on the host.
    
    ### Extend from Conv2D to Conv3D
    
    SpaceToDepth not only helps with 2D image models but also 3D image models such
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Oct 24 02:51:43 UTC 2020
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/fuzzing/op_fuzzing.bzl

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 07 19:14:57 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/tpu_space_to_depth_pass.mlir

        %1 = "tf.IteratorGetNext"(%arg5) {device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<!tf_type.resource>) -> tensor<2x224x224x3xf32>
        // CHECK-DAG: %[[SPACETODEPTH0:.*]] = "tf.SpaceToDepth"([[INPUT:.*]]) <{block_size = 2 : i64, data_format = "NHWC"}> : (tensor<2x224x224x3xf32>) -> tensor<2x112x112x12xf32>
        %2 = "tf.AddV2"(%arg2, %arg3) {device = ""} : (tensor<i32>, tensor<i32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 37.4K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/array_grad.cc

      TF_RETURN_IF_ERROR(
          GetNodeAttr(op.node()->attrs(), "block_size", &block_size));
      grad_outputs->push_back(DepthToSpace(scope, grad_inputs[0], block_size));
      return scope.status();
    }
    REGISTER_GRADIENT_OP("SpaceToDepth", SpaceToDepthGrad);
    
    Status DepthToSpaceGrad(const Scope& scope, const Operation& op,
                            const std::vector<Output>& grad_inputs,
                            std::vector<Output>* grad_outputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  5. tensorflow/cc/gradients/array_grad_test.cc

    }
    
    TEST_F(ArrayGradTest, SpaceToDepthGrad) {
      TensorShape x_shape({1, 2, 2, 1});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      TensorShape y_shape({1, 1, 1, 4});
      auto y = SpaceToDepth(scope_, x, /* block_size */ 2);
      RunTest(x, x_shape, y, y_shape);
    }
    
    TEST_F(ArrayGradTest, DepthToSpaceGrad) {
      TensorShape x_shape({1, 1, 1, 4});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

        pad_op = dyn_cast_or_null<TF::PadOp>(next_input.getDefiningOp());
        cast_op = dyn_cast_or_null<TF::CastOp>(next_input.getDefiningOp());
      }
    
      return std::nullopt;
    }
    
    // Checks if a convoluton can apply SpaceToDepth transform.
    // Only the first convolution in the graph whose batch size smaller than 8
    // and its input feature size smaller than 8 can be transformed.
    std::optional<BlockArgumentInfo> GetConv2DInputArgNum(TF::Conv2DOp conv2d) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        SameOperandsAndResultsScale,
        PredOpTrait<"input and output must have same element type",
          TFL_TCresVTEtIsSameAsOp<0, 0>>,
        TFL_OperandHasRankAtMost<0, 4>
      ]> {
      let summary = "SpaceToDepth operator";
    
      let description = [{
        Rearranges blocks of spatial data, into depth. More specifically,
        this op outputs a copy of the input tensor where values from the `height`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/mark_for_compilation_pass.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

        ```mlir
        module {
          func @while_body {
            %input = "tf.IteratorGetNext"(...) {device = "/CPU:0"} -> tensor<2x224x224x3xf32>
            %space_to_depth = "tf.SpaceToDepth"(%input) {block_size = 2, ...}: (tensor<2x224x224x3xf32>) -> tensor<2x112x112x12xf32>
            %device_launch = "tf_device.cluster_func"(%space_to_depth,...) {func = @_func,...)
            return ...
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  10. RELEASE.md

    *   Fixes a division by zero in optimized pooling implementations in TFLite
        ([CVE-2021-29586](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29586))
    *   Fixes a division by zero in TFLite's implementation of `SpaceToDepth`
        ([CVE-2021-29587](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29587))
    *   Fixes a division by zero in TFLite's implementation of `GatherNd`
    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