Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for call_op (0.14 sec)

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

      if_op.erase();
      return success();
    }
    
    LogicalResult ConvertCaseOp(CaseOp case_op) {
      OpBuilder builder(case_op);
      auto case_region = builder.create<TF::CaseRegionOp>(
          case_op.getLoc(), case_op.getResultTypes(), case_op.getBranchIndex(),
          case_op.getIsStateless(), case_op.getBranches().size());
      CopyDeviceAndUnderscoredAttributes(case_op, case_region);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      // only executes ops with no side effects.
      mutable llvm::SmallDenseMap<Operation*, bool> is_pure_function_;
    };
    
    bool OpSideEffectCollector::IsCallToPureFunction(Operation* callOp) const {
      auto call = llvm::dyn_cast<CallOpInterface>(callOp);
      if (!call)
        return false;  // not a call
      func::FuncOp func_op = dyn_cast<func::FuncOp>(call.resolveCallable(
          &symbol_table_collection_));
      return IsPureFunction(func_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        rewriter.replaceOpWithNewOp<TFR::ConstOp>(bl_op, array_attr);
        return success();
      }
    };
    
    quant::QuantizedType getQuantizedElementType(CastOp cast_op) {
      if (!cast_op || !cast_op.getInputElementType()) {
        return {};
      }
      return cast_op.getInputElementType()
          .cast<TypeAttr>()
          .getValue()
          .dyn_cast<quant::QuantizedType>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

          auto uses = func.getSymbolUses(module);
          if (!uses) continue;
          for (auto& use : *uses) {
            // Only `mlir::func::CallOp` is supported as this requires knowing how
            // to rewrite arguments and results to a function.
            if (!isa<mlir::func::CallOp>(use.getUser())) continue;
            auto caller_parent_func =
                use.getUser()->getParentOfType<func::FuncOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

        }
      });
    }
    
    std::vector<quantfork::QuantizeRegionOp> QuantizeContext::GetAllOps() {
      std::vector<quantfork::QuantizeRegionOp> all_ops;
      all_ops.reserve(128);
      func_.walk([&](quantfork::QuantizeRegionOp op) { all_ops.push_back(op); });
      return all_ops;
    }
    
    KernelSpecs::Signature QuantizeContext::GetSignature(
        quantfork::QuantizeRegionOp op) {
      KernelSpecs::Signature signature;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. tests/integration/security/egress_gateway_origination_test.go

    					newTLSGatewayTest(t).
    						Run(func(t framework.TestContext, from echo.Instance, to echo.Target) {
    							callOpt := newTLSGatewayCallOpts(to, host, tc.statusCode, tc.useGateway)
    							from.CallOrFail(t, callOpt)
    						})
    				})
    			}
    		})
    }
    
    // TestMutualTlsOrigination test MUTUAL TLS mode with TLS origination happening at Gateway proxy
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

          parent_module_symbol_table.insert(cloned_func_op);
        }
    
        // When the `XlaCallModuleOp`'s callee accepts a platform index argument,
        // remove it. This is because when converted to `CallOp` there will be a
        // mismatch btw. the number of arguments passed and number of parameters
        // accepted (the platform index argument is an extra argument that is not
        // expressed by the operands of XlaCallModuleOp).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td

        // the op using the builder.
        CPred<"ArgTypesMatchCallee(&*$_builder.getInsertionPoint(), $1, $2)">>;
    
    foreach callOp = [TF_PartitionedCallOp, TF_StatefulPartitionedCallOp] in {
      def : Pat<(callOp:$op $args, FlatSymbolRefAttr:$f,
                 $config, $config_proto, $executor_type),
                (CallOp $f, $args),
              [(ArgTypesMatchCallee $op, $args, $f)]>;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

    // to functions).
    bool IsAlreadyOutlined(WhileOp while_op) {
      auto just_call = [](Region& region) {
        auto it = region.front().begin();
        if (!isa<func::CallOp>(*it)) return false;
        ++it;
        if (!isa<YieldOp>(*it)) return false;
        return true;
      };
      return just_call(while_op.getBody()) && just_call(while_op.getCond());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

                                             while_region.getBody()));
        } else if (auto case_op = dyn_cast<CaseOp>(op)) {
          llvm::SmallVector<func::FuncOp, 4> functions;
          case_op.get_branch_functions(functions);
          AnalyzeFunctionalCaseOrIfOp(case_op, functions, backtrack_analysis);
        } else if (auto if_op = dyn_cast<IfOp>(op)) {
          AnalyzeFunctionalCaseOrIfOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top