Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 107 for eraseOp (0.19 sec)

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

          return success();
        }
    
        // Remove TPU operations.
        if (isa<TF::TPUReplicateMetadataOp, TF::TPUCompilationResultOp,
                TF::TPUOrdinalSelectorOp>(op)) {
          op->erase();
        } else if (auto replicated_input_op =
                       dyn_cast_or_null<TF::TPUReplicatedInputOp>(op)) {
          // TODO(b/267700110): Handle multiple input/output cases.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

      Operation* launch_op = launch.getOperation();
      launch_op->getBlock()->getOperations().splice(
          launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(),
          body.end());
    
      launch.erase();
    
      return success();
    }
    
    void LaunchToDeviceAttributePass::runOnOperation() {
      const Dialect* tf_dialect = getContext().getLoadedDialect("tf");
      if (!tf_dialect) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc

          block.addArgument(read_operand.getType(), loc);
    
        func.setType(FunctionType::get(&getContext(), block.getArgumentTypes(),
                                       func.getResultTypes()));
        cluster_func.erase();
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateTPUResourceReadForWritePass() {
      return std::make_unique<TPUResourceReadForWritePass>();
    }
    
    }  // namespace TFTPU
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/internal/chacha8rand/chacha8.go

    	if s.c == ctrMax-ctrInc {
    		s.n = uint32(len(s.buf)) - reseed
    	}
    }
    
    // Reseed reseeds the state with new random values.
    // After a call to Reseed, any previously returned random values
    // have been erased from the memory of the state and cannot be
    // recovered.
    func (s *State) Reseed() {
    	var seed [4]uint64
    	for i := range seed {
    		for {
    			x, ok := s.Next()
    			if ok {
    				seed[i] = x
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/trim_functions_tf.cc

          }
        } else {
          funcs_to_trim.push_back(func);
        }
      }
    
      // remove all unexported functions from the module.
      for (auto func : funcs_to_trim) {
        func.erase();
      }
      return true;
    }
    
    // validate that all reachable functions from the remaining functions are
    // also in the allowlist.
    void TrimFunctionsPass::Verify() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

      absl::flat_hash_map<std::string, SignatureDef> signature_def_map(
          signatures.begin(), signatures.end());
    
      // Init op is only used during initialization and it's not a target for
      // quantization.
      signature_def_map.erase(kSavedModelInitOpSignatureKey);
      return signature_def_map;
    }
    
    // Retrieves the function name -> function alias mapping from the
    // `SavedModelBundle`.
    // TODO: b/314124142 - Remove the need for this function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc

          // Build TFL custom op, replace composite with custom op.
          TFL::CustomOp tfl_custom_op =
              BuildCustomOp(composite, custom_option_buffer);
          composite->replaceAllUsesWith(tfl_custom_op);
          composite->erase();
        });
      }
    };
    
    static PassRegistration<LegalizeCompositeToCustomOpPass> pass;
    
    }  // namespace odml
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc

      for (auto result :
           llvm::zip(results_to_remap, new_parallel_execute.getResults()))
        std::get<0>(result).replaceAllUsesWith(std::get<1>(result));
    
      parallel_execute.erase();
    }
    
    void TPUParallelExecuteSinkResourceWrite::runOnOperation() {
      llvm::SmallVector<tf_device::ParallelExecuteOp, 4> parallel_executes;
      getOperation().walk([&](tf_device::ParallelExecuteOp parallel_execute) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 06 04:46:18 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

                                    builder.getContext(), kSessionInitFuncName)));
      if (session_init_op) {
        session_init_op->replaceAllUsesWith(new_session_init_op);
        session_init_op->erase();
      }
      return func;
    }
    
    func::FuncOp GetOrCreateSessionInitFunc(ModuleOp module) {
      SessionInitializerOp session_init_op = GetSessionInitializerOp(module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc

        GraphOp graph = fetch->getParentOfType<GraphOp>();
        int num_control_fetches = fetch.getNumOperands() - graph.getNumResults();
        if (num_control_fetches > 0) {
          fetch.getFetchesMutable().erase(graph.getNumResults(),
                                          num_control_fetches);
          num_control_inputs_removed += num_control_fetches;
        }
      }
    }
    
    void SetControlInputs(
        Operation* op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 07:53:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top