Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 180 for eraseOp (0.41 sec)

  1. tensorflow/cc/saved_model/util_test.cc

    }
    
    TEST_F(GetInputValuesTest, RequestContainsNoInputs) {
      google::protobuf::Map<std::string, TensorProto> local_request = request_;
      local_request.erase("x");
      local_request.erase("y");
    
      std::vector<std::pair<string, Tensor>> inputs;
      TF_EXPECT_OK(GetInputValues(sig_, local_request, inputs));
    
      std::vector<std::pair<string, TensorProto>> exp_inputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc

          it.first->eraseOperands(it.second);
        }
    
        func.eraseArguments(args_to_erase);
      }
    
      // Erase all global tensors that were frozen.
      for (auto global_tensor : frozen_global_tensors) {
        remaining_global_tensor_ops.erase(global_tensor);
        global_tensor->erase();
      }
    
      // Verify that there are no remaining global tensors.
      if (!allow_mutable_tensors && !remaining_global_tensor_ops.empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

        // Updates usage and erases rewritten reduce_dataset op based on the number
        // of state variables.
        for (int i = 0; i < state_size; ++i) {
          reduce_dataset.getResult(i).replaceAllUsesWith(
              dataset_while.getResult(i + 1));
        }
        reduce_dataset.erase();
    
        return WalkResult::advance();
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc

      }
    
      // Relocate the main function's FetchOp to the last.
      main_body.push_back(main_fetch_op->clone(mapper));
      main_fetch_op.erase();
    
      auto cloned_fetch_op = cast<FetchOp>(src_graph_op.GetFetch()->clone(mapper));
      Value control_fetch = *cloned_fetch_op.getFetches().begin();
      cloned_fetch_op.erase();
    
      return control_fetch;
    }
    
    // Creates a new `IdentityOp` wrapped by an `IslandOp`. The identity op returns
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

        if (failed(LiftHashTableOpsToArguments(module_op, caller_func))) {
          return failure();
        }
      }
    
      // Erase the lifted operations explicitly.
      for (auto [lifted_op, arg_idx] : lifted_op_and_arg_idx) {
        lifted_op->erase();
      }
    
      return success();
    }
    
    void LiftHashTableOpsAsArgsPass::runOnOperation() {
      auto module_op = getOperation();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/informer.go

    )
    
    var _ Informer[runtime.Object] = informer[runtime.Object]{}
    
    type informer[T runtime.Object] struct {
    	cache.SharedIndexInformer
    	lister[T]
    }
    
    // Creates a generic informer around a type-erased cache.SharedIndexInformer
    // It is incumbent on the caller to ensure that the generic type argument is
    // consistent with the type of the objects stored inside the SharedIndexInformer
    // as they will be casted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

                 /*caller_region=*/if_region.getElseBranch(), if_op.getInput(),
                 /*use_region_args=*/false,
                 /*forward_block_args=*/false);
      if_op.replaceAllUsesWith(if_region.getResults());
      if_op.erase();
      return success();
    }
    
    LogicalResult ConvertCaseOp(CaseOp case_op) {
      OpBuilder builder(case_op);
      auto case_region = builder.create<TF::CaseRegionOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

        fused_ln_lstm_func_ = createLstmCompositeFunc(builder_.get(), true, false);
      }
    
      void TearDown() override {
        fused_lstm_func_.erase();
        fused_lstm_func_cifg_.erase();
        fused_ln_lstm_func_.erase();
        builder_.reset();
      }
    
      func::FuncOp fused_lstm_func_;
      func::FuncOp fused_lstm_func_cifg_;
      func::FuncOp fused_ln_lstm_func_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        rewriter.create<OutfeedOp>(op.getLoc(), token_type, op.getInputs(), token,
                                   /*outfeed_config=*/rewriter.getStringAttr(""));
        rewriter.eraseOp(op);
        return success();
      }
    };
    
    // Converts tf.TopKV2 to chlo.top_k.
    class ConvertTopKV2Op : public OpRewritePattern<TF::TopKV2Op> {
     public:
      using OpRewritePattern::OpRewritePattern;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ProgramParserAnnotationErasureTest.kt

    package org.gradle.kotlin.dsl.execution
    
    import org.junit.Test
    
    
    class ProgramParserAnnotationErasureTest {
    
        @Test
        fun `empty Stage 1 with non-empty Stage 2 parse to Stage 2 with Stage 1 fragments erased`() {
            val scriptOnlySource =
                programSourceWith("""
                    @Suppress("unused_variable")
                    println("Stage 2")""".trimIndent())
    
            assertProgramOf(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top