File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/boltz_binder_design/losses Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This file incorporates portions of code from the esm2quinox library,
2
+ # created by Patrick Kidger and licensed under the Apache License,
3
+ # Version 2.0 (the "License"); you may not use this file except in compliance
4
+ # with the License. You may obtain a copy of the License at
5
+ #
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ #
8
+ # Unless required by applicable law or agreed to in writing, software
9
+ # distributed under the License is distributed on an "AS IS" BASIS,
10
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ # See the License for the specific language governing permissions and
12
+ # limitations under the License.
13
+
1
14
import jax
2
15
import numpy as np
3
16
import equinox as eqx
@@ -18,6 +31,7 @@ def boltz_to_esm_matrix():
18
31
return T
19
32
20
33
def apply_trunk (esm , x , is_pad ):
34
+ """Trunk portion of the forward pass of esm2quinox._esm2.ESM2"""
21
35
dynamic_layers , static_layer = eqx .partition (esm .layers , eqx .is_array )
22
36
23
37
def f (x , dynamic_layer ):
You can’t perform that action at this time.
0 commit comments