Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ResizeNearestNeighbor (0.23 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.h

    // Adds all the necessary passes to lower a TF module to StableHLO.
    // `skip_resize` enables or disables skipping conversion of tf.ResizeBilinear
    // and tf.ResizeNearestNeighbor ops.
    // `smuggle_disallowed_ops` enables or disables converting disallowed ops
    // like tf.ResizeBilinear or tf.ResizeNearestNeighbor to mhlo.custom_call ops.
    void AddTFToStablehloPasses(OpPassManager& pm, bool skip_resize,
                                bool smuggle_disallowed_ops);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 01:08:27 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

          *this, "skip-quantization-ops",
          ::llvm::cl::desc("Skip quantization ops")};
    
      Option<bool> skip_resize_{
          *this, "skip-resize",
          ::llvm::cl::desc("Skip tf.ResizeBilinear and tf.ResizeNearestNeighbor")};
    
      Option<bool> skip_partitioned_calls_{
          *this, "skip-partitioned-calls",
          ::llvm::cl::desc(
              "Skip tf.StatefulPartitionedCall and tf.PartitionedCall")};
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/image_grad_test.cc

                  Output* x, Output* y) {
        *x = Const<T>(scope_, x_data);
        switch (op_type) {
          case RESIZE_NEAREST:
            *y = ResizeNearestNeighbor(
                scope_, *x, y_shape,
                ResizeNearestNeighbor::AlignCorners(align_corners));
            return;
          case RESIZE_BILINEAR:
            *y = ResizeBilinear(scope_, *x, y_shape,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 15 04:08:05 UTC 2019
    - 12.1K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/image_grad.cc

          internal::ResizeNearestNeighborGrad::AlignCorners(align_corners)
              .HalfPixelCenters(half_pixel_centers)));
      grad_outputs->push_back(NoGradient());
      return scope.status();
    }
    REGISTER_GRADIENT_OP("ResizeNearestNeighbor", ResizeNearestNeighborGradHelper);
    
    Status ResizeBilinearGradHelper(const Scope& scope, const Operation& op,
                                    const std::vector<Output>& grad_inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 11 00:29:23 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

                          llvm::cl::Optional, llvm::cl::init(false));
    
    // NOLINTNEXTLINE
    opt<bool> skip_resize(
        "skip-resize",
        llvm::cl::desc(
            "Skip converting tf.ResizeBilinear and tf.ResizeNearestNeighbor ops."),
        llvm::cl::Optional, llvm::cl::init(true));
    
    // NOLINTNEXTLINE
    opt<bool> smuggle_disallowed_ops(
        "smuggle-disallowed-ops",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/compilability_check_util.cc

      // b/135640736: MatrixInverse performance issues.
      // b/111271662: MatrixSolve performance issues.
      // https://github.com/tensorflow/tensorflow/pull/31012:
      //    ResizeNearestNeighbor, ResizeBilinear, and ResizeBilinearGrad sometimes
      //    create convolutions too large for CuDNN to handle.
      return node.type_string() == "SelfAdjointEigV2" ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

      // CHECK: [[VAL5:%.+]] = "tf.GatherV2"([[VAL4]], [[VAL3]], [[VAL0]]) <{batch_dims = 0 : i64}>
      // CHECK: [[VAL6:%.+]] = "tf.Reshape"([[VAL5]], [[VAL1]])
      // CHECK: return [[VAL6]]
      %resize = "tf.ResizeNearestNeighbor"(%arg0, %shape) {align_corners = false, device = "", half_pixel_centers = false} : (tensor<1x7x7x1xi32>, tensor<2xi32>) -> tensor<1x3x3x1xi32>
      func.return %resize: tensor<1x3x3x1xi32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

          Operation *op = rewriter.create(state);
          result = op->getResult(0);
        }
        rewriter.replaceOp(op, {result});
        return success();
      }
    };
    
    // Lowers ResizeNearestNeighbor to an indices computations with a gather along
    // the combined spatial dimensions. Generating the indices along the
    // width/height index could be used to gather along each of W and H dimension
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // CHECK: return %[[RESULT]] : tensor<8x16xf32>
    }
    
    func.func @resize_nearest_neighbor(%arg0: tensor<1x100x100x3xf32>, %arg1: tensor<4xi32>) -> tensor<?xf32> {
      %0 = "tf.ResizeNearestNeighbor"(%arg0, %arg1) {align_corners = true} : (tensor<1x100x100x3xf32>, tensor<4xi32>) -> tensor<?xf32>
      func.return %0 : tensor<?xf32>
      // CHECK-LABEL: resize_nearest_neighbor
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  10. 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)
Back to top