Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 90 for func_20 (0.32 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        mlir::SymbolRefAttr func = op.getComputation();
        auto func_op = cast<mlir::func::FuncOp>(SymbolTable::lookupSymbolIn(
            op->getParentOfType<mlir::ModuleOp>(), func));
        auto func_ty = func_op.getFunctionType();
        BuildBodyWithCall(rewriter, loc, func, func_ty,
                          &reduce_window_op.getBody());
    
        rewriter.replaceOp(op, reduce_window_op.getResults());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      // Quantizer via the tf_quant.composite_function UnitAttr attached to
      // func ops. We remove this attribute as this interferes with VHLO conversion.
      // Remove this temporary hack.
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        func_op->removeAttr(kFusedFunctionAttr);
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

               operations.back().hasTrait<OpTrait::IsTerminator>())) {
            to_remove.push_back(init_func_op);
          } else {
            to_keep.push_back(sym_ref);
          }
        }
    
        for (auto func_op : to_remove) rewriter.eraseOp(func_op);
    
        if (to_keep.empty())
          rewriter.eraseOp(op);
        else
          op->setAttr("initializers", rewriter.getArrayAttr(to_keep));
    
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/subst.go

    				// and copy all variables
    				new := make([]*Var, len(in))
    				copy(new, out)
    				out = new
    				copied = true
    			}
    			out[i] = w
    		}
    	}
    	return
    }
    
    func (subst *subster) func_(f *Func) *Func {
    	if f != nil {
    		if typ := subst.typ(f.typ); typ != f.typ {
    			return substFunc(f, typ)
    		}
    	}
    	return f
    }
    
    func substFunc(f *Func, typ Type) *Func {
    	copy := *f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/go/types/subst.go

    				// and copy all variables
    				new := make([]*Var, len(in))
    				copy(new, out)
    				out = new
    				copied = true
    			}
    			out[i] = w
    		}
    	}
    	return
    }
    
    func (subst *subster) func_(f *Func) *Func {
    	if f != nil {
    		if typ := subst.typ(f.typ); typ != f.typ {
    			return substFunc(f, typ)
    		}
    	}
    	return f
    }
    
    func substFunc(f *Func, typ Type) *Func {
    	copy := *f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

      TF_ASSERT_OK_AND_ASSIGN(TupleOp root_tuple,
                              ImportXlaComputationIntoModule(computation));
      EXPECT_TRUE(root_tuple);
    
      int num_func_ops = 0;
      module_->walk([&num_func_ops](func::FuncOp func_op) { num_func_ops++; });
    
      // Ensure that only a single computation was imported.
      EXPECT_EQ(num_func_ops, 1);
    }
    
    TEST_F(Tf2XlaRewriterTest, InsertsConstantParameters) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      std::vector<Type> output_types = GetValueTypes(outputs);
      builder.setInsertionPointToEnd(&module.getBodyRegion().back());
      func::FuncOp func_op = builder.create<func::FuncOp>(
          module.getLoc(), name,
          builder.getFunctionType(input_types, output_types));
      func_op.setPrivate();
    
      return func_op;
    }
    
    TF::StatefulPartitionedCallOp EncapsulateOpsInFunc(
        OpBuilder& builder, const llvm::SetVector<Operation*>& ops,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/hoist_invariant_ops.mlir

    module attributes {tf_saved_model.semantics} {
    
    // Test not hoisting in TPU functions.
    
    // CHECK-LABEL: func @_tfrt_resource_init
    // CHECK-NEXT: return
    
    // CHECK-LABEL: func private @func2
    func.func private @func2(%arg: tensor<i1>) -> tensor<i32> {
      // CHECK-NOT: tf._TfrtGetResource
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 23:54:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      mlir::SymbolTable sub_symbol_table(*sub_module);
      auto func_op = sub_symbol_table.lookup<mlir::func::FuncOp>(sig_def_key);
      TF_RET_CHECK(func_op)
          << "Graphdef importer should have created a function named "
          << sig_def_key << ".";
    
      // Use unique SignatureDef key as exported name.
      func_op->setAttr(kTfSavedModelExportedNamesAttr,
                       builder.getStrArrayAttr({sig_def_key}));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

        // results and arguments.
        llvm::DenseMap<OpValue, int> operand_states_;
        llvm::DenseMap<OpValue, int> result_states_;
      };
    
      func::FuncOp func_;
    
      DeviceTarget target_spec_;
    
      StatesManager states_manager_;
    };
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top