Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for kernel_size (0.27 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.cc

      data.h_in = op_type.getShape()[2];
      data.w_in = op_type.getShape()[3];
    
      std::vector<int32_t> kernel_size;
      GetI32VectorFromDenseI64CompositeAttr(composite_attrs, "kernel_size",
                                            &kernel_size);
      data.kh = kernel_size[0];
      data.kw = kernel_size[1];
    
      std::vector<int32_t> padding;
      GetI32VectorFromDenseI64CompositeAttr(composite_attrs, "padding", &padding);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool_patterns.td

                                        ConstantAttr<RankedI32ElementsAttr<[4]>,"{0, 2, 3, 1}">)),
                                /*filter_height*/(GetI32At<0> (GetAsVectorAttr<"kernel_size"> $attrs)),
                                /*filter_width*/(GetI32At<1> (GetAsVectorAttr<"kernel_size"> $attrs)),
                                /*padding*/(GetAvgPoolOpPadAttr $old_val),
                                /*stride_h*/(GetI32At<0> (GetAsVectorAttr<"stride"> $attrs)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/composite-lowering.mlir

    func.func @avg_pool2d_1(%arg0: tensor<1x3x6x6xf32>) -> (tensor<*xf32>) {
      %0 = mhlo.composite "aten.avg_pool2d.default" %arg0 {composite_attributes = {ceil_mode = false, count_include_pad = true, divisor_override = "py_None", kernel_size = dense<3> : tensor<2xi64>, padding = dense<0> : tensor<2xi64>, stride = dense<1> : tensor<2xi64>}, decomposition = @XlaCallModule_aten.avg_pool2d.default.impl_0} : (tensor<1x3x6x6xf32>) -> tensor<1x3x4x4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/g3doc/space_to_depth.md

        kernel of shape [7, 7, 3, 64] to [4, 4, 12, 84].
    
        ```python
        conv0 = tf.compat.v1.layers.Conv2D(
         filters=filters,
         kernel_size=kernel_size,
         strides=2,
         padding=('SAME' if strides == 1 else 'VALID'),
         use_bias=False,
         kernel_initializer=tf.variance_scaling_initializer(),
         data_format=data_format)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Oct 24 02:51:43 UTC 2020
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

        }
      }
      return success();
    }
    
    // Handles padding before convolution for space to depth transform.
    LogicalResult HandlePad(TF::PadOp op, int32_t kernel_size, int32_t block_size) {
      auto ranked_type = mlir::dyn_cast<RankedTensorType>(op.getInput().getType());
      if (!ranked_type) return failure();
      auto pad_input_shape = ranked_type.getShape();
      Location loc = op.getLoc();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  6. tensorflow/c/kernels_test.cc

        TF_Buffer* buf = TF_GetRegisteredKernelsForOp(op_name, status);
        EXPECT_EQ(TF_OK, TF_GetCode(status));
        KernelList list;
        list.ParseFromArray(buf->data, buf->length);
        ASSERT_EQ(1, list.kernel_size());
        ASSERT_EQ(device_name, list.kernel(0).device_type());
        TF_DeleteBuffer(buf);
        TF_DeleteStatus(status);
      }
    
      {
        Status status;
        std::unique_ptr<OpKernel> kernel =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      KernelList kernel_list;
      kernel_list.ParseFromArray(kernel_list_buf->data, kernel_list_buf->length);
      ASSERT_GT(kernel_list.kernel_size(), 0);
      TF_DeleteBuffer(kernel_list_buf);
      TF_DeleteStatus(status);
    }
    
    TEST(TestKernel, TestGetRegisteredKernelsForOp) {
      TF_Status* status = TF_NewStatus();
      TF_Buffer* kernel_list_buf =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

          // 2. Output size respects the `VALID` padding scenario
          if ((padding[2 * i] == padding[2 * i + 1]) &&
              (((kernel_size - 1) != padding[2 * i]) ||
               (output_size != (stride * (input_size - 1)) + kernel_size))) {
            // padding[2 * i] == padding[2 * i + 1] means equal padding is applied
            // on both sides of a spatial dimension.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top