Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 406 for onStop (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

      Type resultType = RankedTensorType::get(shape, element_type);
      auto constant_attr = DenseElementsAttr::get(shape_spec_type, shape);
      auto shape_tensor =
          rewriter.create<TF::ConstOp>(loc, shape_spec_type, constant_attr);
      return rewriter.create<TF::ReshapeOp>(loc, resultType, /*tensor=*/value,
                                            /*shape=*/shape_tensor);
    }
    
    template <typename BatchMatMulOpType>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

      explicit CastBf16OpsToF32(MLIRContext* context)
          : RewritePattern(MatchAnyOpTypeTag(), /*benefit=*/1, context) {}
    
     private:
      LogicalResult match(Operation* op) const override {
        if (isa<TF::CastOp, TF::ConstOp>(op) ||
            op->getName().hasTrait<OpTrait::ZeroOperands>()) {
          return failure();
        }
        for (Value input : op->getOperands()) {
          if (getElementTypeOrSelf(input).isBF16()) {
            return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

    }
    
    TF::ConstOp Create1DConstantOp(const std::vector<int>& value, Location loc,
                                   OpBuilder* builder) {
      auto type =
          mlir::RankedTensorType::get(value.size(), builder->getIntegerType(32));
      auto dense_values = mlir::DenseIntElementsAttr::get(type, value);
      return builder->create<TF::ConstOp>(loc, dense_values);
    }
    
    TF::ConstOp CreateScalarConstantOp(int value, Location loc,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/common/utils.h

    inline bool IsNonConstOp(Operation* op) {
      if (!op) return false;
      if (llvm::isa<arith::ConstantOp, mlir::func::ConstantOp>(op)) return false;
      if (op->hasTrait<OpTrait::ConstantLike>()) return false;
      if (llvm::isa<TFL::ConstOp, TFL::QConstOp>(op)) return false;
      return true;
    }
    
    // Returns true if 'op' is a terminator op, otherwise false.
    bool IsTerminatorOp(Operation* op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    	tests := []struct {
    		name       string
    		pod        *v1.Pod
    		node       *v1.Node
    		wantStatus *framework.Status
    	}{
    		{
    			name: "A pod having no tolerations can't be scheduled onto a node with nonempty taints",
    			pod:  podWithTolerations("pod1", []v1.Toleration{}),
    			node: nodeWithTaints("nodeA", []v1.Taint{{Key: "dedicated", Value: "user1", Effect: "NoSchedule"}}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/configdump_test.go

    	tests := []struct {
    		name           string
    		wantOutputFile string
    		callPrime      bool
    		wantErr        bool
    	}{
    		{
    			name:           "returns expected bootstrap dump from Envoy onto Stdout",
    			callPrime:      true,
    			wantOutputFile: "testdata/bootstrapdump.json",
    		},
    		{
    			name:    "errors if config dump is not primed",
    			wantErr: true,
    		},
    	}
    	for _, tt := range tests {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 23:08:06 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/unfreeze_constants.mlir

        return %cst_0 : tensor<8xf32>
      }
    }
    
    // -----
    
    // Tests the case when there is no ConstOp.
    module attributes {tf_saved_model.semantics} {
    
    // Check that nothing happens when there's no ConstOp in the graph.
    // CHECK-NOT: "tf_saved_model.session_initializer"()
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

      ASSERT_THAT(test_func, NotNull());
    
      Operation* mul_op = FindOperationOfType<TF::MulOp>(test_func);
      SmallVector<Value> results = ConstantFoldOpIfPossible(mul_op);
      EXPECT_THAT(results, SizeIs(1));
      EXPECT_TRUE(isa<TF::ConstOp>(results[0].getDefiningOp()));
    }
    
    TEST_F(ConstantFoldingTest, NotFoldingIdentity) {
      constexpr absl::string_view kModuleCode = R"mlir(
        module {
          func.func @test_fold_constant() -> (tensor<1024x24x24x3xf32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc

          auto qcast = b.create<quantfork::QuantizeCastOp>(
              q.getLoc(), q.getOutput().getType(), q.getInput());
          q.getOutput().replaceAllUsesWith(qcast);
          q.erase();
        } else if (auto q = llvm::dyn_cast<ConstOp>(op)) {
          auto value = q.getValue();
          auto type = q.getResult().getType();
          if (arith::ConstantOp::isBuildableWith(value, type)) {
            auto c = b.create<arith::ConstantOp>(q.getLoc(), q.getValue());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 02:50:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/freeze_saved_model_assets.cc

              tensorflow::io::JoinPath(saved_model_dir, asset_filename);
          ShapedType shaped_type =
              RankedTensorType::get({1}, TF::StringType::get(builder.getContext()));
          auto const_op = builder.create<TF::ConstOp>(
              asset.getLoc(),
              DenseStringElementsAttr::get(shaped_type, {filename}));
          for (auto init_op : init_table_from_text_file_ops_to_erase) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 30 01:12:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top