Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for StatefulPartitionedCallOp (0.3 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

            }
          }
        }
      }
      return LogicalResult::success();
    }
    
    struct Callers {
      TF::StatefulPartitionedCallOp forward;
      TF::StatefulPartitionedCallOp core_tpu;
      TF::StatefulPartitionedCallOp backward;
      TF::StatefulPartitionedCallOp non_tpu;
    };
    
    template <typename InputContainer>
    std::vector<Type> GetValueTypes(const InputContainer& input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h

    // cluster) ops to a separate parallel_execute region to run on CPU.
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>>
    CreateExtractOutsideCompilationPass();
    
    // Create a pass that encapsulates StatefulPartitionedCallOp within a cluster.
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>>
    CreateXlaClusterFormationPass();
    
    // Creates a pass that marks unsupported ops in device cluster for outside
    // compilation.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

                operations->insert(successor);
              }
            }
          }
        }
        ops_to_process.swap(new_ops);
        new_ops.clear();
      }
    }
    
    TF::StatefulPartitionedCallOp MakeFuncCaller(
        mlir::OpBuilder& builder, const Location& loc, func::FuncOp func,
        const llvm::SetVector<Value>& operands) {
      // Constructs a tf.StatefulPartitionedCall to the function provided in 'func'
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util_test.cc

      EXPECT_EQ(entry_funcs[0].getSymName(), "entry_func");
      llvm::SmallVector<mlir::SymbolUserOpInterface> outermost_pcall_ops;
      auto result =
          mlir::GetFirstOpsOfType<mlir::TF::StatefulPartitionedCallOp,
                                  mlir::TF::PartitionedCallOp>(
              entry_funcs[0], symtab, has_compile_device_type, outermost_pcall_ops)
              .succeeded();
      ASSERT_TRUE(result);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

      llvm::SmallVector<SymbolUserOpInterface> noinline_pcall_ops,
          outermost_pcall_ops;
      if (mlir::failed(
              mlir::GetOpsOfTypeUntilMiss<mlir::TF::StatefulPartitionedCallOp,
                                          mlir::TF::PartitionedCallOp>(
                  func, symtab, /*predicate*/ has_no_compile_device_type,
                  /*hits*/ noinline_pcall_ops,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

        target.addLegalOp<TF::ResizeBilinearOp>();
        target.addLegalOp<TF::ResizeNearestNeighborOp>();
      }
      if (skip_partitioned_calls_) {
        target.addLegalOp<TF::PartitionedCallOp>();
        target.addLegalOp<TF::StatefulPartitionedCallOp>();
      }
    
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
      if (failed(applyPartialConversion(func, target, frozen_patterns))) {
        return signalPassFailure();
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

          SymbolTable::getSymbolUses(func, &module.getBodyRegion());
      if (!function_uses.has_value()) return false;
      for (auto& function_use : function_uses.value()) {
        if (!llvm::isa<TF::PartitionedCallOp, TF::StatefulPartitionedCallOp>(
                function_use.getUser())) {
          return false;
        }
      }
      return true;
    }
    
    // Returns the `shared_name` attribute value if exists. If not, returns an
    // empty string.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

        runOnOperation() {
      ModuleOp module_op = getOperation();
    
      func::FuncOp main_func = FindMainFuncOp(module_op);
      if (!main_func) return;
    
      // In case the model has tf.StatefulPartitionedCallOp or tf.PartitionedCallOp,
      // we recursively find called functions and process StableHLO ops in them.
      SmallVector<func::FuncOp> func_ops;
      func_ops.push_back(main_func);
      int stablehlo_func_id = -1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

    bool IsAlwaysAllowlistedOp(Operation *op) {
      return llvm::isa<
          // clang-format off
          // go/keep-sorted start
          TF::ConstOp,
          TF::IdentityOp,
          TF::PartitionedCallOp,
          TF::StatefulPartitionedCallOp
          // go/keep-sorted end
          // clang-format on
          >(op);
    }
    
    // LINT.IfChange
    // The list of quantizable ops in the Legacy Integer mode.
    ABSL_ATTRIBUTE_NOINLINE const std::set<std::string>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

    // subcomputation in the TF/XLA bridge.
    bool SupportsCommunicationComputation(Operation* op) {
      return isa<TF::IfRegionOp, TF::WhileRegionOp, TF::CaseRegionOp,
                 TF::XlaCallModuleOp, TF::StatefulPartitionedCallOp,
                 TF::PartitionedCallOp, TF::LegacyCallOp>(op);
    }
    
    #define GEN_PASS_DEF_PREPARETPUCOMPUTATIONFORTFEXPORTPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top