Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 114 for GetBody (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

    // returned.
    Operation* GetIslandInnerOpOrSelf(mlir::Operation* op) {
      auto island = llvm::dyn_cast<mlir::tf_executor::IslandOp>(op);
      if (island) return &island.GetBody().front();
      return op;
    }
    
    // Stateful helper class to export a function into a Graph.
    class Exporter {
     public:
      // Converts the given Module to a Graph. The given module should only contain
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

    // returned.
    Operation* GetIslandInnerOpOrSelf(mlir::Operation* op) {
      auto island = llvm::dyn_cast<mlir::tf_executor::IslandOp>(op);
      if (island) return &island.GetBody().front();
      return op;
    }
    
    // Stateful helper class to export a function into a Graph.
    class Exporter {
     public:
      // Converts the given Module to a Graph. The given module should only contain
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

      func.setType(updated_type);
    }
    
    // TODO(jpienaar): Remove when recursive side-effect modeling is added.
    bool IsSideEffectFree(func::FuncOp func) {
      return !func.getBody()
                  .walk([&](Operation* op) {
                    if (!isMemoryEffectFree(op) &&
                        !op->hasTrait<OpTrait::IsTerminator>())
                      return WalkResult::interrupt();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

        if (!symbol_attr) continue;
    
        func::FuncOp target_func = dyn_cast_or_null<func::FuncOp>(
            symbol_table.lookup(symbol_attr.getValue()));
        if (!target_func) continue;
    
        if (!target_func.getBody()
                 .getOps<TF::CalibrationStatisticsSaverOp>()
                 .empty()) {
          return true;
        }
      }
      return false;
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

      if (shared_name.empty()) return false;
    
      for (func::FuncOp init_func_op :
           tf_saved_model::GetInitializerFunctions(module_op)) {
        for (Operation& op : init_func_op.getBody().getOps()) {
          StringRef other_shared_name = GetSharedName(&op);
          if (IsHashTableOp(&op) && other_shared_name == shared_name) {
            return true;
          }
        }
      }
      return false;
    }
    
    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. src/net/http/transport_internal_test.go

    	if err != nil {
    		panic(err)
    	}
    	return req
    }
    
    func dummyRequestWithBodyNoGetBody(method string) *Request {
    	req := dummyRequestWithBody(method)
    	req.GetBody = nil
    	return req
    }
    
    // issue22091Error acts like a golang.org/x/net/http2.ErrNoCachedConn.
    type issue22091Error struct{}
    
    func (issue22091Error) IsHTTP2NoCachedConnError() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

      subgraphs_metadata.reserve(funcs.size());
      for (auto& func : funcs) {
        subgraphs_metadata.push_back(
            CreateSubgraphMetadata(hardware_map, &func.getBody(), &fb_builder));
      }
      auto runtime_metadata =
          CreateRuntimeMetadata(fb_builder, hardware_metadata_offset,
                                fb_builder.CreateVector(subgraphs_metadata));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

          builder.create<tf_device::ClusterOp>(loc, return_types, policy);
    
      // Create block in cluster_op's region and move 'cluster.operations' into
      // it.
      auto block = builder.createBlock(&cluster_op.getBody());
      auto block_end = block->end();
      for (auto op : cluster.operations) op->moveBefore(block, block_end);
    
      // Add 'tf_device::ReturnOp' at the end of the block.
      builder.setInsertionPointToEnd(block);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

        return it->second;
      }
    
      // Returns backtracking analysis for the given function.
      const InfoT& GetAnalysisForFunc(func::FuncOp func) const {
        return GetAnalysisForRegion(func.getBody());
      }
    
      // Backtracks the given value.
      Value BacktrackValue(Value value);
    
     private:
      // Returns the analysis for the given region (analyzing the region if it has
      // not yet been analyzed).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

          arg.setType(new_arg_type);
        }
    
        // Update the function type.
        func.setType(mlir::FunctionType::get(module.getContext(),
                                             func.getBody().getArgumentTypes(),
                                             func.getFunctionType().getResults()));
      }
      return success();
    }
    
    }  // namespace tf_saved_model
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top