Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 128 for get_shape (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

      auto shape = mlir::cast<ShapedType>(value.getType());
      if (shape.getRank() != 1) {
        SmallVector<int64_t> new_shape;
        new_shape.push_back(shape.getNumElements());
        value = builder.create<TF::ReshapeOp>(
            loc, value, Create1DConstValue(builder, loc, new_shape));
      }
      return ConstantFoldOpIfPossible(value.getDefiningOp()).front();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.cc

      TorchAvgPoolData data;
    
      auto op_type = mlir::cast<RankedTensorType>(op.getOperand(0).getType());
    
      data.n = op_type.getShape()[0];
      data.c = op_type.getShape()[1];
      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",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

              "$0.getType().cast<ShapedType>().getShape() =="
              "$1.getType().cast<ShapedType>().getShape()">,
        "have the same static shape">;
    
    def IsPermutationNCHW : Constraint<CPred<"IsPermutationNCHW($0)">>;
    
    def IsBiasShape : Constraint<
        CPred<"$0.getType().cast<ShapedType>().getRank() == 4 && "
              "$0.getType().cast<ShapedType>().getShape()[2] == 1 && "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        // Thus, we fail to match if the consuming reshape rank is larger.
        ArrayRef<int64_t> input_shape = input_type.getShape();
        if (reshape_shape.size() > input_shape.size()) return failure();
    
        // Extend the input shape with leading 1s to match the broadcast shape.
        ArrayRef<int64_t> broadcast_shape = output_type.getShape();
        SmallVector<int64_t, 4> input_shape_extended;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

            if ( dunc.charAt(0) != '\\' ) {
                log.warn("No slash at start of remaining DFS path " + dunc);
            }
    
            this.unc = dunc;
            if ( dr.getShare() != null && !dr.getShare().isEmpty() ) {
                this.share = dr.getShare();
            }
            if ( reqPath != null && reqPath.endsWith("\\") && !dunc.endsWith("\\") ) {
                dunc += "\\";
            }
            return dunc;
        }
    
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jul 20 08:24:53 UTC 2019
    - 23.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      auto output_types = fused_lstm_func_.getFunctionType().getResults();
      SmallVector<int64_t, 2> output_shape{1, mlir::ShapedType::kDynamic};
      EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getShape().size(),
                output_shape.size());
      for (int i = 0; i < output_shape.size(); i++) {
        EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getDimSize(i),
                  output_shape[i]);
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

      Value temp_padding =
          CreateConstValue<int32_t>(builder, loc, {num_dims, 2}, padding_values);
      SmallVector<int64_t> output_shape(input_shape.getShape().begin(),
                                        input_shape.getShape().end());
      for (int i : spatial_dims) {
        output_shape[i] += padding_values[2 * i] + padding_values[2 * i + 1];
      }
    
      return builder.create<TF::PadV2Op>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc

              bmm_op->getLoc(), permuation_tensor_type,
              DenseElementsAttr::get(permuation_tensor_type, permute));
    
          auto input_shape = input_type.getShape();
          llvm::SmallVector<int64_t, 4> permuted_shape(input_shape.begin(),
                                                       input_shape.end());
          // Swaps z dimension and x dimension to get permuted shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/export_utils.h

    // ShapeContainerT is any type with the following methods:
    //   bool hasRank()
    //   ArrayRef<int64_t> getShape()
    // This includes mlir::TF::ShapeAttr and mlir::ShapedType.
    template <typename ShapeContainerT>
    void SetTensorShapeProto(ShapeContainerT shape, TensorShapeProto* proto) {
      if (shape.hasRank()) {
        for (int64_t dim : shape.getShape()) {
          proto->add_dim()->set_size(mlir::ShapedType::isDynamic(dim) ? -1 : dim);
        }
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. tests/test_dependency_contextmanager.py

        "sync_bg": "not set",
    }
    
    errors = []
    
    
    async def get_state():
        return state
    
    
    class AsyncDependencyError(Exception):
        pass
    
    
    class SyncDependencyError(Exception):
        pass
    
    
    class OtherDependencyError(Exception):
        pass
    
    
    async def asyncgen_state(state: Dict[str, str] = Depends(get_state)):
        state["/async"] = "asyncgen started"
        yield state["/async"]
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top